class DefaultClusterableServerFactory extends java.lang.Object implements ClusterableServerFactory
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
applicationName |
private ClusterId |
clusterId |
private ClusterSettings |
clusterSettings |
private CommandListener |
commandListener |
private java.util.List<MongoCompressor> |
compressorList |
private ConnectionPoolSettings |
connectionPoolSettings |
private java.util.List<MongoCredential> |
credentialList |
private StreamFactory |
heartbeatStreamFactory |
private MongoDriverInformation |
mongoDriverInformation |
private ServerSettings |
serverSettings |
private StreamFactory |
streamFactory |
Constructor and Description |
---|
DefaultClusterableServerFactory(ClusterId clusterId,
ClusterSettings clusterSettings,
ServerSettings serverSettings,
ConnectionPoolSettings connectionPoolSettings,
StreamFactory streamFactory,
StreamFactory heartbeatStreamFactory,
java.util.List<MongoCredential> credentialList,
CommandListener commandListener,
java.lang.String applicationName,
MongoDriverInformation mongoDriverInformation,
java.util.List<MongoCompressor> compressorList) |
Modifier and Type | Method and Description |
---|---|
ClusterableServer |
create(ServerAddress serverAddress,
ServerListener serverListener,
ClusterClock clusterClock) |
ServerSettings |
getSettings() |
private final ClusterId clusterId
private final ClusterSettings clusterSettings
private final ServerSettings serverSettings
private final ConnectionPoolSettings connectionPoolSettings
private final StreamFactory streamFactory
private final java.util.List<MongoCredential> credentialList
private final StreamFactory heartbeatStreamFactory
private final CommandListener commandListener
private final java.lang.String applicationName
private final MongoDriverInformation mongoDriverInformation
private final java.util.List<MongoCompressor> compressorList
DefaultClusterableServerFactory(ClusterId clusterId, ClusterSettings clusterSettings, ServerSettings serverSettings, ConnectionPoolSettings connectionPoolSettings, StreamFactory streamFactory, StreamFactory heartbeatStreamFactory, java.util.List<MongoCredential> credentialList, CommandListener commandListener, java.lang.String applicationName, MongoDriverInformation mongoDriverInformation, java.util.List<MongoCompressor> compressorList)
public ClusterableServer create(ServerAddress serverAddress, ServerListener serverListener, ClusterClock clusterClock)
create
in interface ClusterableServerFactory
public ServerSettings getSettings()
getSettings
in interface ClusterableServerFactory