public class MemoryPoolStats extends AbstractMemoryPoolStats implements IMemoryPoolStats
MB| Constructor and Description |
|---|
MemoryPoolStats()
Creates a new unnamed memory pool stats object with default intervals.
|
MemoryPoolStats(String aName)
Creates a new unnamed memory pool stats object with default intervals.
|
MemoryPoolStats(String aName,
Interval[] selectedIntervals)
Creates a new unnamed memory pool stats object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCommited(String intervalName)
Returns the amount of commited memory for the selected interval.
|
long |
getFree(String intervalName)
Returns the amount of free memory for the selected interval.
|
long |
getInit(String intervalName)
Returns the amount of initial memory for the selected interval.
|
long |
getMax(String intervalName)
Returns the amount of max available memory for the selected interval.
|
long |
getMaxCommited(String intervalName)
Returns the amount of max commited memory for the selected interval.
|
long |
getMaxUsed(String intervalName)
Returns the amount of max used memory for the selected interval.
|
long |
getMinCommited(String intervalName)
Returns the amount of min commited memory for the selected interval.
|
long |
getMinUsed(String intervalName)
Returns the amount of min used memory for the selected interval.
|
long |
getUsed(String intervalName)
Returns the amount of user memory for the selected interval.
|
void |
setCommited(long value)
Sets new commited memory amount.
|
void |
setInit(long value)
Sets new initial memory amount.
|
void |
setMax(long value)
Sets new max memory amount.
|
void |
setUsed(long value)
Sets new used memory amount.
|
String |
toStatsString(String intervalName,
TimeUnit timeUnit)
This method creates a human-readable textual representation of all statistical
values in the given interval.
|
getAvailableValueNames, getValueByNameAsStringaddStatValues, createCallExecution, destroy, getName, isEmpty, toStatsString, toStatsString, toStatsString, toStringpublic MemoryPoolStats()
public MemoryPoolStats(String aName)
aName - name of the memory pool stats object.public String toStatsString(String intervalName, TimeUnit timeUnit)
IStatstoStatsString in interface IStatsintervalName - the name of the interval or null for all intervalspublic long getInit(String intervalName)
getInit in interface IMemoryPoolStatsintervalName - the target interval name.public long getUsed(String intervalName)
getUsed in interface IMemoryPoolStatsintervalName - the target interval name.public long getMinUsed(String intervalName)
getMinUsed in interface IMemoryPoolStatsintervalName - the target interval name.public long getMaxUsed(String intervalName)
getMaxUsed in interface IMemoryPoolStatsintervalName - the target interval name.public long getCommited(String intervalName)
getCommited in interface IMemoryPoolStatsintervalName - the target interval name.public long getMinCommited(String intervalName)
getMinCommited in interface IMemoryPoolStatsintervalName - the target interval name.public long getMaxCommited(String intervalName)
getMaxCommited in interface IMemoryPoolStatsintervalName - the target interval name.public long getMax(String intervalName)
getMax in interface IMemoryPoolStatsintervalName - the target interval name.public long getFree(String intervalName)
getFree in interface IMemoryPoolStatsintervalName - the target interval name.public void setInit(long value)
value - the memory amount.public void setMax(long value)
value - the memory amount.public void setUsed(long value)
value - the memory amount.public void setCommited(long value)
value - the memory amount.Copyright © 2010-2017 anotheria.net. All Rights Reserved.