@ThreadSafe public class ReplicaSetDiscovery extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_DATABASE_NAME
The database that might be used to check for member information in a replica set.
|
static String |
CONFIG_DATABASE_NAME
The database that might be used to check for replica set information in a sharded cluster.
|
private MongoDbTaskContext |
context |
private org.slf4j.Logger |
logger |
private String |
seedAddresses |
| Constructor and Description |
|---|
ReplicaSetDiscovery(MongoDbTaskContext context)
Create a cluster component.
|
| Modifier and Type | Method and Description |
|---|---|
ReplicaSets |
getReplicaSets()
Connect to the shard cluster or replica set defined by the seed addresses, and obtain the specifications for each of the
replica sets.
|
public static final String CONFIG_DATABASE_NAME
public static final String ADMIN_DATABASE_NAME
private final org.slf4j.Logger logger
private final MongoDbTaskContext context
private final String seedAddresses
public ReplicaSetDiscovery(MongoDbTaskContext context)
context - the replication context; may not be nullpublic ReplicaSets getReplicaSets()
Copyright © 2018 JBoss by Red Hat. All rights reserved.