public enum MongoClient extends Enum<MongoClient>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Field and Description |
|---|---|
AtomicBoolean |
IS_DB_UP |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(com.mongodb.MongoClient mongoDBClient) |
com.mongodb.client.MongoCollection |
getDataCenterCollection() |
com.mongodb.client.MongoCollection |
getMasterSlaveCollection() |
static MongoClient |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MongoClient[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MongoClient INSTANCE
public AtomicBoolean IS_DB_UP
public static MongoClient[] values()
for (MongoClient c : MongoClient.values()) System.out.println(c);
public static MongoClient valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void connect(com.mongodb.MongoClient mongoDBClient)
public com.mongodb.client.MongoCollection getDataCenterCollection()
public com.mongodb.client.MongoCollection getMasterSlaveCollection()
Copyright © 2017 Cisco. All rights reserved.