Class ZookeeperScaleOutHandler
java.lang.Object
com.gigaspaces.internal.server.space.repartitioning.ZookeeperScaleOutHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckIfScaleIsCanceled(AttributeStore attributeStore, String puName) static ClusterTopologyStategetOldTopologyState(AttributeStore attributeStore, String puName) getParticipantPartitions(AttributeStore attributeStore, String puName) static QuiesceTokengetQuiesceToken(AttributeStore attributeStore, String puName) static StringgetScaleOutLastStep(AttributeStore attributeStore, String puName) static StringgetScaleOutMetaData(AttributeStore attributeStore, String puName, String key) static StringgetScaleOutPath(String puName) static ScaleRequestInfogetScaleRequestInfoIfExist(AttributeStore attributeStore, String requestId, List<String> pusName) static StatusgetScaleStatusOnCompletion(AttributeStore attributeStore, String puName) static StringgetScaleStepsPath(String puName, String step) static StringgetStepDetails(AttributeStore attributeStore, String puName, String step, String key) static booleanisScaleInProgress(AttributeStore attributeStore, String puName) static voidsetOldTopologyState(AttributeStore attributeStore, String puName, ClusterTopologyState topologyState) static voidsetQuiesceToken(AttributeStore attributeStore, String puName, Object value) static voidsetScaleOutLastStep(AttributeStore attributeStore, String puName, String step) static voidsetScaleOutMetaData(AttributeStore attributeStore, String puName, String key, String value) static booleansetStepIfPossible(AttributeStore attributeStore, String puName, String step, String key, String value)
-
Constructor Details
-
ZookeeperScaleOutHandler
public ZookeeperScaleOutHandler()
-
-
Method Details
-
getScaleOutPath
-
getScaleStepsPath
-
getStepDetails
public static String getStepDetails(AttributeStore attributeStore, String puName, String step, String key) throws IOException - Throws:
IOException
-
setScaleOutMetaData
public static void setScaleOutMetaData(AttributeStore attributeStore, String puName, String key, String value) throws IOException - Throws:
IOException
-
getScaleOutMetaData
public static String getScaleOutMetaData(AttributeStore attributeStore, String puName, String key) throws IOException - Throws:
IOException
-
setScaleOutLastStep
public static void setScaleOutLastStep(AttributeStore attributeStore, String puName, String step) throws IOException - Throws:
IOException
-
setQuiesceToken
public static void setQuiesceToken(AttributeStore attributeStore, String puName, Object value) throws IOException - Throws:
IOException
-
getQuiesceToken
public static QuiesceToken getQuiesceToken(AttributeStore attributeStore, String puName) throws IOException - Throws:
IOException
-
getScaleOutLastStep
public static String getScaleOutLastStep(AttributeStore attributeStore, String puName) throws IOException - Throws:
IOException
-
getParticipantPartitions
public static List<Integer> getParticipantPartitions(AttributeStore attributeStore, String puName) throws IOException - Throws:
IOException
-
setStepIfPossible
public static boolean setStepIfPossible(AttributeStore attributeStore, String puName, String step, String key, String value) -
isScaleInProgress
-
getScaleStatusOnCompletion
-
checkIfScaleIsCanceled
-
setOldTopologyState
public static void setOldTopologyState(AttributeStore attributeStore, String puName, ClusterTopologyState topologyState) -
getOldTopologyState
public static ClusterTopologyState getOldTopologyState(AttributeStore attributeStore, String puName) -
getScaleRequestInfoIfExist
public static ScaleRequestInfo getScaleRequestInfoIfExist(AttributeStore attributeStore, String requestId, List<String> pusName) throws IOException - Throws:
IOException
-