Package com.hazelcast.kubernetes
Class RuntimeContext
java.lang.Object
com.hazelcast.kubernetes.RuntimeContext
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatefulSetInfo
(String name, RuntimeContext.StatefulSetInfo info, String resourceVersion) int
Returns the total number of current replicas.int
Returns the total number of ready replicas.Returns the last resource version specified viaaddStatefulSetInfo(java.lang.String, com.hazelcast.kubernetes.RuntimeContext.StatefulSetInfo, java.lang.String)
.int
Returns the total number of specified replicas.int
toString()
-
Constructor Details
-
RuntimeContext
public RuntimeContext() -
RuntimeContext
-
-
Method Details
-
getSpecifiedReplicaCount
public int getSpecifiedReplicaCount()Returns the total number of specified replicas. If the context is empty, returns -1. -
getReadyReplicas
public int getReadyReplicas()Returns the total number of ready replicas. If the context is empty, returns -1. -
getCurrentReplicas
public int getCurrentReplicas()Returns the total number of current replicas. If the context is empty, returns -1. -
getResourceVersion
Returns the last resource version specified viaaddStatefulSetInfo(java.lang.String, com.hazelcast.kubernetes.RuntimeContext.StatefulSetInfo, java.lang.String)
. -
getStatefulSetCount
public int getStatefulSetCount() -
addStatefulSetInfo
public void addStatefulSetInfo(String name, @Nonnull RuntimeContext.StatefulSetInfo info, String resourceVersion) -
toString
-