Package com.mapr.baseutils.zookeeper
Class KSStateManager
java.lang.Object
com.mapr.baseutils.zookeeper.KSStateManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mapr.fs.cldb.proto.CLDBProto.KSStateResponsevoidnoteService(String service) voidvoidrestartConfiguredService(String service) voidrestartService(String service) intcom.mapr.fs.cldb.proto.CLDBProto.KSStateResponsesetKSState(com.mapr.fs.cldb.proto.CLDBProto.KSStateInfo info) voidstartService(String service) voidstopService(String service) voidstopService(String service, String masterAtLast) voidstopServiceForNode(String service, String node)
-
Field Details
-
LOG
public static final org.apache.commons.logging.Log LOG -
ZK_KS_ROOT_PATH
- See Also:
-
SERVICES_PATH
- See Also:
-
SERVICES_CONFIG_PATH
- See Also:
-
ZK_KS_SERVICE_PATH
- See Also:
-
ZK_KS_STATE_PATH
- See Also:
-
ZK_PATH_SEPERATOR
- See Also:
-
-
Constructor Details
-
KSStateManager
public KSStateManager(org.apache.zookeeper.ZooKeeper zk)
-
-
Method Details
-
getKSState
public com.mapr.fs.cldb.proto.CLDBProto.KSStateResponse getKSState() -
setDefaultKsState
public int setDefaultKsState() -
setKSState
public com.mapr.fs.cldb.proto.CLDBProto.KSStateResponse setKSState(com.mapr.fs.cldb.proto.CLDBProto.KSStateInfo info) -
resetKSState
public void resetKSState() -
restartService
-
restartConfiguredService
-
noteService
-
stopService
-
stopServiceForNode
-
stopService
-
startService
-