public class MasterSlaveConfigurationUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTIVE_DATA_CENTER |
static String |
COMPONENT_NAME |
static String |
INSTANCE_ID |
| Constructor and Description |
|---|
MasterSlaveConfigurationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getComponentName() |
static int |
getMasterSlaveLeaseTime(String name) |
static String |
getMongodbName() |
static List<org.apache.commons.lang3.tuple.Pair<String,Integer>> |
getMongodbServers()
read pairs of host and port from configuration.
|
static String |
getUniqueProcessName() |
public static final String INSTANCE_ID
public static final String COMPONENT_NAME
public static final String ACTIVE_DATA_CENTER
public static List<org.apache.commons.lang3.tuple.Pair<String,Integer>> getMongodbServers()
public static String getMongodbName()
public static int getMasterSlaveLeaseTime(String name)
name - the logical name used in the registry classpublic static String getUniqueProcessName()
public static String getComponentName()
Copyright © 2016 Cisco. All rights reserved.