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(com.eclipsesource.json.JsonObject json) |
long |
getMigrationQueueSize()
Returns Migration queue size (This statistic is valid only for master)
|
List<Integer> |
getPartitions()
Get list of owned partitions of the member
|
boolean |
isMemberStateSafe()
Returns whether member is safe for shutdown.
|
void |
setMemberStateSafe(boolean memberStateSafe) |
void |
setMigrationQueueSize(long migrationQueueSize) |
com.eclipsesource.json.JsonObject |
toJson() |
String |
toString() |
public static final int DEFAULT_PARTITION_COUNT
public List<Integer> getPartitions()
MemberPartitionState
getPartitions
in interface MemberPartitionState
public boolean isMemberStateSafe()
MemberPartitionState
isMemberStateSafe
in interface MemberPartitionState
public void setMemberStateSafe(boolean memberStateSafe)
public long getMigrationQueueSize()
MemberPartitionState
getMigrationQueueSize
in interface MemberPartitionState
public void setMigrationQueueSize(long migrationQueueSize)
public com.eclipsesource.json.JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(com.eclipsesource.json.JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.