Skip navigation links
A C E G I J L M R V 

A

ACTIVE_DATA_CENTER - Static variable in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
ACTIVE_DATACENTER - Static variable in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 
addMasterSlaveListener(String, MasterSlaveListener) - Method in enum com.cisco.oss.foundation.cluster.registry.MasterSlaveRegistry
starts a new thread to control master/slave state.

C

com.cisco.oss.foundation.cluster.mongo - package com.cisco.oss.foundation.cluster.mongo
 
com.cisco.oss.foundation.cluster.registry - package com.cisco.oss.foundation.cluster.registry
 
com.cisco.oss.foundation.cluster.utils - package com.cisco.oss.foundation.cluster.utils
 
COMPONENT - Static variable in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 
COMPONENT_NAME - Static variable in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 

E

enableAuthentication(String, String) - Method in enum com.cisco.oss.foundation.cluster.mongo.MongoClient
call this method first if you want to enable authenticated mongo db access

G

getComponentName() - Static method in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
getDataCenterCollection() - Method in enum com.cisco.oss.foundation.cluster.mongo.MongoClient
 
getMasterSlaveCollection() - Method in enum com.cisco.oss.foundation.cluster.mongo.MongoClient
 
getMasterSlaveLeaseTime(String) - Static method in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
getMongodbName() - Static method in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
getMongodbServers() - Static method in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
read pairs of host and port from configuration.
getUniqueProcessName() - Static method in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
goMaster() - Method in interface com.cisco.oss.foundation.cluster.registry.MasterSlaveListener
callback method to indicate this running instance is now master
goMaster() - Method in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 
goSlave() - Method in interface com.cisco.oss.foundation.cluster.registry.MasterSlaveListener
callback method to indicate this running instance is now slave
goSlave() - Method in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 

I

ID - Static variable in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 
INSTANCE_ID - Static variable in class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
IS_DB_UP - Variable in enum com.cisco.oss.foundation.cluster.mongo.MongoClient
 

J

JOB - Static variable in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 

L

LEASE_RENEWED - Static variable in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 

M

MASTER_INSTANCE_ID - Static variable in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 
MasterSlaveConfigurationUtil - Class in com.cisco.oss.foundation.cluster.utils
Helper method for reading properties from the config object.
MasterSlaveConfigurationUtil() - Constructor for class com.cisco.oss.foundation.cluster.utils.MasterSlaveConfigurationUtil
 
MasterSlaveListener - Interface in com.cisco.oss.foundation.cluster.registry
Implement this listener for each logical unit of work you want to run in master and not run in slave Created by Yair Ogen (yaogen) on 14/01/2016.
MasterSlaveRegistry - Enum in com.cisco.oss.foundation.cluster.registry
Register your #MasterSlaveListener instances with this class.
MasterSlaveRunnable - Class in com.cisco.oss.foundation.cluster.registry
Runnable to do all the logic of acquiring mastership.
MasterSlaveRunnable(String, MasterSlaveListener) - Constructor for class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 
MongoClient - Enum in com.cisco.oss.foundation.cluster.mongo
Singleton wrapper over the Mongo Client Driver Created by Yair Ogen (yaogen) on 14/01/2016.

R

removeMasterSlaveListener(String) - Method in enum com.cisco.oss.foundation.cluster.registry.MasterSlaveRegistry
remove a listener and stop its thread.
run() - Method in class com.cisco.oss.foundation.cluster.registry.MasterSlaveRunnable
 

V

valueOf(String) - Static method in enum com.cisco.oss.foundation.cluster.mongo.MongoClient
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.cisco.oss.foundation.cluster.registry.MasterSlaveRegistry
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.cisco.oss.foundation.cluster.mongo.MongoClient
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cisco.oss.foundation.cluster.registry.MasterSlaveRegistry
Returns an array containing the constants of this enum type, in the order they are declared.
A C E G I J L M R V 
Skip navigation links

Copyright © 2016 Cisco. All rights reserved.