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()
MemberPartitionStategetPartitions in interface MemberPartitionStatepublic boolean isMemberStateSafe()
MemberPartitionStateisMemberStateSafe in interface MemberPartitionStatepublic void setMemberStateSafe(boolean memberStateSafe)
public long getMigrationQueueSize()
MemberPartitionStategetMigrationQueueSize in interface MemberPartitionStatepublic void setMigrationQueueSize(long migrationQueueSize)
public com.eclipsesource.json.JsonObject toJson()
toJson in interface JsonSerializablepublic void fromJson(com.eclipsesource.json.JsonObject json)
fromJson in interface JsonSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.