com.hazelcast.monitor.impl
Class MemberPartitionStateImpl
java.lang.Object
com.hazelcast.monitor.impl.MemberPartitionStateImpl
- All Implemented Interfaces:
- JsonSerializable, MemberPartitionState
public class MemberPartitionStateImpl
- extends Object
- implements MemberPartitionState
This class holds partition related statistics.
DEFAULT_PARTITION_COUNT
public static final int DEFAULT_PARTITION_COUNT
- See Also:
- Constant Field Values
MemberPartitionStateImpl
public MemberPartitionStateImpl()
toJson
public com.eclipsesource.json.JsonObject toJson()
- Specified by:
toJson
in interface JsonSerializable
fromJson
public void fromJson(com.eclipsesource.json.JsonObject json)
- Specified by:
fromJson
in interface JsonSerializable
getPartitions
public List<Integer> getPartitions()
- Description copied from interface:
MemberPartitionState
- Get list of owned partitions of the member
- Specified by:
getPartitions
in interface MemberPartitionState
- Returns:
isMemberStateSafe
public boolean isMemberStateSafe()
- Description copied from interface:
MemberPartitionState
- Returns whether member is safe for shutdown.
- Specified by:
isMemberStateSafe
in interface MemberPartitionState
- Returns:
setMemberStateSafe
public void setMemberStateSafe(boolean memberStateSafe)
getMigrationQueueSize
public long getMigrationQueueSize()
- Description copied from interface:
MemberPartitionState
- Returns Migration queue size (This statistic is valid only for master)
- Specified by:
getMigrationQueueSize
in interface MemberPartitionState
- Returns:
setMigrationQueueSize
public void setMigrationQueueSize(long migrationQueueSize)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.