| | |
| | | */ |
| | | public HostPort getReplicationServerHostPort() |
| | | { |
| | | return isReplicationServer() ? getReplicationServer(getHostName(), getReplicationServerPort()) : null; |
| | | return isReplicationServer() ? new HostPort(getHostName(), getReplicationServerPort()) : null; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns the replication server normalized String for a given host name |
| | | * and replication port. |
| | | * @param hostName the host name. |
| | | * @param replicationPort the replication port. |
| | | * @return the replication server normalized String for a given host name |
| | | * and replication port. |
| | | */ |
| | | public static HostPort getReplicationServer(String hostName, int replicationPort) |
| | | { |
| | | return new HostPort(hostName, replicationPort); |
| | | } |
| | | |
| | | /** |
| | | * Returns a representation of a base DN for a set of servers. |
| | | * @param baseDN the base DN. |
| | | * @param servers the servers. |