public class MemoryPoolStats extends AbstractMemoryPoolStats implements IMemoryPoolStats
MB| Constructor and Description |
|---|
MemoryPoolStats()
Creates a new unnamed memory pool stats object with default intervals.
|
MemoryPoolStats(java.lang.String aName)
Creates a new unnamed memory pool stats object with default intervals.
|
MemoryPoolStats(java.lang.String aName,
Interval[] selectedIntervals)
Creates a new unnamed memory pool stats object.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCommited(java.lang.String intervalName)
Returns the amount of commited memory for the selected interval.
|
long |
getFree(java.lang.String intervalName)
Returns the amount of free memory for the selected interval.
|
long |
getInit(java.lang.String intervalName)
Returns the amount of initial memory for the selected interval.
|
long |
getMax(java.lang.String intervalName)
Returns the amount of max available memory for the selected interval.
|
long |
getMaxCommited(java.lang.String intervalName)
Returns the amount of max commited memory for the selected interval.
|
long |
getMaxUsed(java.lang.String intervalName)
Returns the amount of max used memory for the selected interval.
|
long |
getMinCommited(java.lang.String intervalName)
Returns the amount of min commited memory for the selected interval.
|
long |
getMinUsed(java.lang.String intervalName)
Returns the amount of min used memory for the selected interval.
|
long |
getUsed(java.lang.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.
|
java.lang.String |
toStatsString(java.lang.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(java.lang.String aName)
aName - name of the memory pool stats object.public MemoryPoolStats(java.lang.String aName,
Interval[] selectedIntervals)
aName - name of the object.selectedIntervals - supported intervals.public java.lang.String toStatsString(java.lang.String intervalName,
TimeUnit timeUnit)
IStatstoStatsString in interface IStatsintervalName - the name of the interval or null for all intervalspublic long getInit(java.lang.String intervalName)
getInit in interface IMemoryPoolStatsintervalName - the target interval name.public long getUsed(java.lang.String intervalName)
getUsed in interface IMemoryPoolStatsintervalName - the target interval name.public long getMinUsed(java.lang.String intervalName)
getMinUsed in interface IMemoryPoolStatsintervalName - the target interval name.public long getMaxUsed(java.lang.String intervalName)
getMaxUsed in interface IMemoryPoolStatsintervalName - the target interval name.public long getCommited(java.lang.String intervalName)
getCommited in interface IMemoryPoolStatsintervalName - the target interval name.public long getMinCommited(java.lang.String intervalName)
getMinCommited in interface IMemoryPoolStatsintervalName - the target interval name.public long getMaxCommited(java.lang.String intervalName)
getMaxCommited in interface IMemoryPoolStatsintervalName - the target interval name.public long getMax(java.lang.String intervalName)
getMax in interface IMemoryPoolStatsintervalName - the target interval name.public long getFree(java.lang.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-2020 anotheria.net. All Rights Reserved.