Package com.tangosol.net.partition
Class SimpleAssignmentStrategy.JMXPartitionStats
java.lang.Object
com.tangosol.net.partition.SimpleAssignmentStrategy.JMXPartitionStats
- Enclosing class:
SimpleAssignmentStrategy
A class that calculate MBean attribute values from last sampled PartitionStats
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
The average partition storage size in bytes.protected long
The average node storage size in bytes.protected long
The maximum partition storage size in bytes.protected long
The maximum node storage size in bytes.protected int
The node ID with maximum node storage size in bytes. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Calculate MBean attribute values for partition statistics.long
Return average partition storage size.long
Return average node storage size.int
Return node ID with maximum node storage size.long
Return maximum partition storage size.long
Return maximum node storage size.
-
Field Details
-
m_cbMaxStorage
protected long m_cbMaxStorageThe maximum node storage size in bytes. -
m_cbAverageStorage
protected long m_cbAverageStorageThe average node storage size in bytes. -
m_cbMaxPartition
protected long m_cbMaxPartitionThe maximum partition storage size in bytes. -
m_cbAveragePartition
protected long m_cbAveragePartitionThe average partition storage size in bytes. -
m_nMaxLoadId
protected int m_nMaxLoadIdThe node ID with maximum node storage size in bytes.
-
-
Constructor Details
-
JMXPartitionStats
protected JMXPartitionStats()
-
-
Method Details
-
getMaxStorageSize
public long getMaxStorageSize()Return maximum node storage size.- Returns:
- maximum node storage size in bytes
-
getAverageStorageSize
public long getAverageStorageSize()Return average node storage size.- Returns:
- average node storage size in bytes
-
getMaxPartitionSize
public long getMaxPartitionSize()Return maximum partition storage size.- Returns:
- Maximum partition storage size in bytes
-
getAveragePartitionSize
public long getAveragePartitionSize()Return average partition storage size.- Returns:
- average partition storage size in bytes
-
getMaxLoadNodeId
public int getMaxLoadNodeId()Return node ID with maximum node storage size.- Returns:
- node ID with maximum node storage size
-
calculateJMXPartitionStats
public void calculateJMXPartitionStats()Calculate MBean attribute values for partition statistics.
-