public class MemberPartitionStateImpl extends Object implements MemberPartitionState
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PARTITION_COUNT |
| Constructor and Description |
|---|
MemberPartitionStateImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
fromJson(JsonObject json)
Extracts the state from the given
json object and mutates the
state of this object. |
long |
getMigrationQueueSize()
Returns the migration queue size (this statistic is valid only for master).
|
List<Integer> |
getPartitions()
Returns a list of owned partitions of the member.
|
boolean |
isMemberStateSafe()
Returns whether member is safe for shutdown.
|
void |
setMemberStateSafe(boolean memberStateSafe) |
void |
setMigrationQueueSize(long migrationQueueSize) |
JsonObject |
toJson()
Serializes state represented by this object into a
JsonObject. |
String |
toString() |
public static final int DEFAULT_PARTITION_COUNT
public List<Integer> getPartitions()
MemberPartitionStategetPartitions in interface MemberPartitionStatepublic boolean isMemberStateSafe()
MemberPartitionStateisMemberStateSafe in interface MemberPartitionStatetrue if member is safe for shutdown, false otherwisepublic void setMemberStateSafe(boolean memberStateSafe)
public long getMigrationQueueSize()
MemberPartitionStategetMigrationQueueSize in interface MemberPartitionStatepublic void setMigrationQueueSize(long migrationQueueSize)
public JsonObject toJson()
JsonSerializableJsonObject.toJson in interface JsonSerializablepublic void fromJson(JsonObject json)
JsonSerializablejson object and mutates the
state of this object.fromJson in interface JsonSerializablejson - the JSON object carrying state for this objectCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.