Package com.hazelcast.kubernetes
Class RuntimeContext
java.lang.Object
com.hazelcast.kubernetes.RuntimeContext
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
Constructors -
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()
-
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
-