Class ScaleManager
java.lang.Object
org.openspaces.admin.internal.pu.scale_horizontal.ScaleManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertToInstanceId(String idFromName) static ClusterTopologygetClusterTopology(AttributeStore attributeStore, String puName, int generation) static ClusterTopologyStategetClusterTopologyState(AttributeStore attributeStore, String puName) getLatestChunksMap(String puName) static InternalQuiesceDetailsgetQuiesceDetails(AttributeStore attributeStore, String puName) booleanisRESTScaleRequest(String puName) booleanstatic booleanbooleanpostScaleRequest(String puName) voidscaleIn(DefaultProcessingUnit pu, int factor, InternalAdminDriver driver) voidscaleOutUnSafe(DefaultProcessingUnit pu, int factor, String memory, String cpu, InternalAdminDriver driver) static voidsetClusterTopology(AttributeStore attributeStore, String puName, ClusterTopology topology) static voidsetClusterTopologyState(AttributeStore attributeStore, String puName, ClusterTopologyState topologyState) voidvoidsetScaleOutDetailsOnZK(DefaultProcessingUnit pu, int factor, String memory, String cpu, String requestId) static voidupdateGenerationAfterScaleOut(DefaultProcessingUnit pu, ClusterTopology currentMap, ClusterTopology newMap, AttributeStore attributeStore)
-
Constructor Details
-
ScaleManager
-
-
Method Details
-
getClusterTopologyState
public static ClusterTopologyState getClusterTopologyState(AttributeStore attributeStore, String puName) throws IOException - Throws:
IOException
-
getClusterTopology
public static ClusterTopology getClusterTopology(AttributeStore attributeStore, String puName, int generation) throws IOException - Throws:
IOException
-
setScaleOutDetailsOnZK
public void setScaleOutDetailsOnZK(DefaultProcessingUnit pu, int factor, String memory, String cpu, String requestId) throws IOException - Throws:
IOException
-
setRollbackDetailsOnZK
- Throws:
IOException
-
scaleIn
public void scaleIn(DefaultProcessingUnit pu, int factor, InternalAdminDriver driver) throws IOException, TransactionException, ExecutionException, InterruptedException -
scaleOutUnSafe
public void scaleOutUnSafe(DefaultProcessingUnit pu, int factor, String memory, String cpu, InternalAdminDriver driver) throws ExecutionException, InterruptedException, IOException, TransactionException -
updateGenerationAfterScaleOut
public static void updateGenerationAfterScaleOut(DefaultProcessingUnit pu, ClusterTopology currentMap, ClusterTopology newMap, AttributeStore attributeStore) throws IOException - Throws:
IOException
-
setClusterTopologyState
public static void setClusterTopologyState(AttributeStore attributeStore, String puName, ClusterTopologyState topologyState) -
setClusterTopology
public static void setClusterTopology(AttributeStore attributeStore, String puName, ClusterTopology topology) -
killPartitionInstances
-
convertToInstanceId
-
getQuiesceDetails
public static InternalQuiesceDetails getQuiesceDetails(AttributeStore attributeStore, String puName) throws IOException - Throws:
IOException
-
getLatestChunksMap
- Throws:
IOException
-
isScaling
- Throws:
IOException
-
isRESTScaleRequest
- Throws:
Exception
-
postScaleRequest
- Throws:
Exception
-