Package com.tangosol.net.partition
Class SimpleAssignmentStrategy.JMXPartitionStats
- java.lang.Object
-
- com.tangosol.net.partition.SimpleAssignmentStrategy.JMXPartitionStats
-
- Enclosing class:
- SimpleAssignmentStrategy
protected class SimpleAssignmentStrategy.JMXPartitionStats extends Object
A class that calculate MBean attribute values from last sampled PartitionStats
-
-
Field Summary
Fields Modifier and Type Field Description protected long
m_cbAveragePartition
The average partition storage size in bytes.protected long
m_cbAverageStorage
The average node storage size in bytes.protected long
m_cbMaxPartition
The maximum partition storage size in bytes.protected long
m_cbMaxStorage
The maximum node storage size in bytes.protected int
m_nMaxLoadId
The node ID with maximum node storage size in bytes.
-
Constructor Summary
Constructors Modifier Constructor Description protected
JMXPartitionStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calculateJMXPartitionStats()
Calculate MBean attribute values for partition statistics.long
getAveragePartitionSize()
Return average partition storage size.long
getAverageStorageSize()
Return average node storage size.int
getMaxLoadNodeId()
Return node ID with maximum node storage size.long
getMaxPartitionSize()
Return maximum partition storage size.long
getMaxStorageSize()
Return maximum node storage size.
-
-
-
Field Detail
-
m_cbMaxStorage
protected long m_cbMaxStorage
The maximum node storage size in bytes.
-
m_cbAverageStorage
protected long m_cbAverageStorage
The average node storage size in bytes.
-
m_cbMaxPartition
protected long m_cbMaxPartition
The maximum partition storage size in bytes.
-
m_cbAveragePartition
protected long m_cbAveragePartition
The average partition storage size in bytes.
-
m_nMaxLoadId
protected int m_nMaxLoadId
The node ID with maximum node storage size in bytes.
-
-
Method Detail
-
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.
-
-