| | |
| | | import org.opends.server.tasks.InitializeTargetTask; |
| | | import org.opends.server.tasks.InitializeTask; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.HostPort; |
| | | |
| | | /** |
| | | * This class should be used as a base for Replication implementations. |
| | |
| | | * @return the name of the replicationServer to which this domain |
| | | * is currently connected. |
| | | */ |
| | | public String getReplicationServer() |
| | | public HostPort getReplicationServer() |
| | | { |
| | | if (broker != null) |
| | | { |
| | |
| | | * |
| | | * @return The local address. |
| | | */ |
| | | String getLocalUrl() |
| | | HostPort getLocalUrl() |
| | | { |
| | | final ReplicationBroker tmp = broker; |
| | | return tmp != null ? tmp.getLocalUrl() : ""; |
| | | return tmp != null ? tmp.getLocalUrl() : ReplicationBroker.NO_CONNECTED_SERVER; |
| | | } |
| | | |
| | | /** |