com.hazelcast.monitor.impl
Class MemberPartitionStateImpl

java.lang.Object
  extended by com.hazelcast.monitor.impl.MemberPartitionStateImpl
All Implemented Interfaces:
JsonSerializable, MemberPartitionState

public class MemberPartitionStateImpl
extends Object
implements MemberPartitionState

This class holds partition related statistics.


Field Summary
static int DEFAULT_PARTITION_COUNT
           
 
Constructor Summary
MemberPartitionStateImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 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
 int hashCode()
           
 boolean isMemberStateSafe()
          Returns whether member is safe for shutdown.
 void setMemberStateSafe(boolean memberStateSafe)
           
 void setMigrationQueueSize(long migrationQueueSize)
           
 com.eclipsesource.json.JsonObject toJson()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PARTITION_COUNT

public static final int DEFAULT_PARTITION_COUNT
See Also:
Constant Field Values
Constructor Detail

MemberPartitionStateImpl

public MemberPartitionStateImpl()
Method Detail

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.