Package com.hazelcast.kubernetes
Class RuntimeContext
java.lang.Object
com.hazelcast.kubernetes.RuntimeContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatefulSetInfo(String name, RuntimeContext.StatefulSetInfo info, String resourceVersion) intReturns the total number of current replicas.intReturns the total number of ready replicas.Returns the last resource version specified viaaddStatefulSetInfo(java.lang.String, com.hazelcast.kubernetes.RuntimeContext.StatefulSetInfo, java.lang.String).intReturns the total number of specified replicas.inttoString()
-
Field Details
-
UNKNOWN
Deprecated, for removal: This API element is subject to removal in a future version.Unknown value- See Also:
-
-
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
-