public class JVMStatusSource extends Object implements StatusSource, StatisticsSource, com.escenic.jmx.JVMStatusSourceMXBean
Constructor and Description |
---|
JVMStatusSource() |
Modifier and Type | Method and Description |
---|---|
void |
doStartService() |
long |
getAllocatedBytes()
Return the number of bytes allocated by this JVM throughout its lifetime.
|
int |
getNumberOfThreads() |
String |
getReport(String type)
Return a status report for the JVM.
|
Number |
getStatistic(String pStatisticKey)
The different statistics metrics of the implementing class.
|
Set |
getStatisticKeys()
The possible statistics for a HitCollector:
time (a Long) The current time in milliseconds
uptime (a Long) The time in milliseconds that the server has been running
memory (a Long) The amount of memory that is in use at this time
|
long |
getUptime() |
long |
getUsedMemory() |
void |
reset()
Reset any counters
|
public void doStartService()
public String getReport(String type)
getReport
in interface StatusSource
public long getUsedMemory()
getUsedMemory
in interface com.escenic.jmx.JVMStatusSourceMXBean
public long getUptime()
getUptime
in interface com.escenic.jmx.JVMStatusSourceMXBean
public void reset()
StatusSource
reset
in interface com.escenic.jmx.JVMStatusSourceMXBean
reset
in interface StatusSource
public Number getStatistic(String pStatisticKey)
StatisticsSource
getStatistic
in interface StatisticsSource
pStatisticKey
- the key of the metric wanted. See StatisticsSource.getStatisticKeys()
for a list of valid keys.StatisticsSource.getStatisticKeys()
public int getNumberOfThreads()
getNumberOfThreads
in interface com.escenic.jmx.JVMStatusSourceMXBean
public long getAllocatedBytes()
This means that the number is constantly increasing, making it possible to calculate how many bytes are allocated even when spanning garbage collections.
getAllocatedBytes
in interface com.escenic.jmx.JVMStatusSourceMXBean
public Set getStatisticKeys()
getStatisticKeys
in interface StatisticsSource
Set
of String
keys. It will
contain at least one key.StatisticsSource.getStatistic(String)
© 1998- 2021 Escenic AS