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()
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()
JsonSerializable
JsonObject
.toJson
in interface JsonSerializable
public void fromJson(JsonObject json)
JsonSerializable
json
object and mutates the
state of this object.fromJson
in interface JsonSerializable
json
- the JSON object carrying state for this objectCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.