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) |
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() |
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
true
if member is safe for shutdown, false
otherwisepublic void setMemberStateSafe(boolean memberStateSafe)
public long getMigrationQueueSize()
MemberPartitionState
getMigrationQueueSize
in interface MemberPartitionState
public void setMigrationQueueSize(long migrationQueueSize)
public JsonObject toJson()
toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
fromJson
in interface JsonSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.