final class SingleServerCluster extends BaseCluster
| Modifier and Type | Field and Description |
|---|---|
private static java.util.logging.Logger |
LOGGER |
private ClusterableServer |
server |
| Constructor and Description |
|---|
SingleServerCluster(java.lang.String clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory,
ClusterListener clusterListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes connections to the servers in the cluster.
|
protected void |
connect()
Try to connect to all servers
|
protected ClusterableServer |
getServer(ServerAddress serverAddress)
Return the server at the given address.
|
private void |
publishDescription(ServerDescription serverDescription) |
createServer, fireChangeEvent, getCurrentDescription, getDescription, getServer, getSettings, isClosed, updateDescriptionprivate static final java.util.logging.Logger LOGGER
private final ClusterableServer server
public SingleServerCluster(java.lang.String clusterId,
ClusterSettings settings,
ClusterableServerFactory serverFactory,
ClusterListener clusterListener)
protected void connect()
BaseClusterconnect in class BaseClusterprivate void publishDescription(ServerDescription serverDescription)
protected ClusterableServer getServer(ServerAddress serverAddress)
BaseClustergetServer in class BaseClusterserverAddress - the addresspublic void close()
Clusterclose in interface Clusterclose in class BaseCluster