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
FieldsModifier and TypeFieldDescriptionprotected longThe average partition storage size in bytes.protected longThe average node storage size in bytes.protected longThe maximum partition storage size in bytes.protected longThe maximum node storage size in bytes.protected intThe node ID with maximum node storage size in bytes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculate MBean attribute values for partition statistics.longReturn average partition storage size.longReturn average node storage size.intReturn node ID with maximum node storage size.longReturn maximum partition storage size.longReturn 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.
-