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 |
|---|---|
com.allanbank.mongodb.MongoCollection |
getDataCenterCollection() |
com.allanbank.mongodb.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 com.allanbank.mongodb.MongoCollection getDataCenterCollection()
public com.allanbank.mongodb.MongoCollection getMasterSlaveCollection()
Copyright © 2016 Cisco. All rights reserved.