|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jmx.AbstractServiceClient
org.ow2.petals.jmx.SystemMonitoringServiceClient
public class SystemMonitoringServiceClient
Client API of the JMX System Monitoring service.
| Field Summary | |
|---|---|
protected static java.lang.String |
AVAILABLE_PROCESSORS
Attributes for OS MBean : some attributes are platform specific |
protected static java.lang.String |
COMMITTED_VIRTUAL_MEMORY_SIZE
|
protected static java.lang.String |
DAEMON_THREAD_COUNT
|
protected static java.lang.String |
FREE_PHYSICAL_MEMORY_SIZE
|
protected static java.lang.String |
HEAP_MEMORY_USAGE
Attributes for Memory MBean |
protected static java.lang.String |
LOADED_CLASS_COUNT
Attributes for ClassLoading MBean |
protected static java.lang.String |
OBJECT_PENDING_FINALIZATION_COUNT
|
protected static java.lang.String |
PEAK_THREAD_COUNT
Attributes for Threading MBean |
protected static java.lang.String |
PROCESS_CPU_TIME
|
protected static java.lang.String |
THREAD_COUNT
|
protected static java.lang.String |
TOTAL_LOADED_CLASS_COUNT
|
protected static java.lang.String |
TOTAL_PHYSICAL_MEMORY_SIZE
|
protected static java.lang.String |
TOTAL_STARTED_THREAD_COUNT
|
protected static java.lang.String |
UNLOADED_CLASS_COUNT
|
protected static java.lang.String |
UP_TIME
Attributes for Runtime MBean |
| Fields inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
JMX_FIELD_NAME, JMX_FIELD_TYPE, JMX_SERVICE_TYPE, mbeanName, mBeanServerConnection, petalsDomain |
| Constructor Summary | |
|---|---|
SystemMonitoringServiceClient(java.lang.String domain,
javax.management.MBeanServerConnection beanServerConnection)
Creates a new instance of SystemMonitoringServiceClient
Check if all needed beans exists |
|
| Method Summary | |
|---|---|
int |
getAvailableProcessors()
Get the available processors |
long |
getCommittedVirtualMemorySize()
Get the committed physical memory size |
int |
getDaemonThreadCount()
Get Daemon thread count |
long |
getFreePhysicalMemorySize()
Get the free physical memory size |
javax.management.openmbean.CompositeDataSupport |
getHeapMemoryUsage()
Get heap memory usage |
int |
getLoadedClassCount()
Get the loaded class count |
int |
getPeakThreadCount()
Get Peak thread count |
int |
getPendingObjects()
Get heap memory usage |
long |
getProcessCpuTime()
Get the process cpu time |
int |
getThreadCount()
Get thread count |
long |
getTotalLoadedClassCount()
Get the total loaded class count |
long |
getTotalPhysicalMemorySize()
Get the total physical mem size |
long |
getTotalStartedThreadCount()
Get the total started thread count |
long |
getUnloadedClassCount()
Get the unloaded class count |
long |
getUptime()
Get the up time |
| Methods inherited from class org.ow2.petals.jmx.AbstractServiceClient |
|---|
getAttribute, getAttribute, performAction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String LOADED_CLASS_COUNT
protected static final java.lang.String TOTAL_LOADED_CLASS_COUNT
protected static final java.lang.String UNLOADED_CLASS_COUNT
protected static final java.lang.String UP_TIME
protected static final java.lang.String PEAK_THREAD_COUNT
protected static final java.lang.String DAEMON_THREAD_COUNT
protected static final java.lang.String THREAD_COUNT
protected static final java.lang.String TOTAL_STARTED_THREAD_COUNT
protected static final java.lang.String HEAP_MEMORY_USAGE
protected static final java.lang.String OBJECT_PENDING_FINALIZATION_COUNT
protected static final java.lang.String AVAILABLE_PROCESSORS
protected static final java.lang.String PROCESS_CPU_TIME
protected static final java.lang.String TOTAL_PHYSICAL_MEMORY_SIZE
protected static final java.lang.String FREE_PHYSICAL_MEMORY_SIZE
protected static final java.lang.String COMMITTED_VIRTUAL_MEMORY_SIZE
| Constructor Detail |
|---|
public SystemMonitoringServiceClient(java.lang.String domain,
javax.management.MBeanServerConnection beanServerConnection)
throws SystemMonitoringDoesNotExistException,
SystemMonitoringServiceErrorException
SystemMonitoringServiceClient
Check if all needed beans exists
domain - beanServerConnection -
SystemMonitoringDoesNotExistException - if a needed bean does not exists
SystemMonitoringServiceErrorException| Method Detail |
|---|
public javax.management.openmbean.CompositeDataSupport getHeapMemoryUsage()
throws PerformActionErrorException
PerformActionErrorException
public int getPendingObjects()
throws PerformActionErrorException
PerformActionErrorException
public int getPeakThreadCount()
throws PerformActionErrorException
PerformActionErrorException
public int getDaemonThreadCount()
throws PerformActionErrorException
PerformActionErrorException
public int getThreadCount()
throws PerformActionErrorException
PerformActionErrorException
public long getTotalStartedThreadCount()
throws PerformActionErrorException
PerformActionErrorException
public int getAvailableProcessors()
throws PerformActionErrorException
PerformActionErrorException
public long getUptime()
throws PerformActionErrorException
PerformActionErrorException
public int getLoadedClassCount()
throws PerformActionErrorException
PerformActionErrorException
public long getTotalLoadedClassCount()
throws PerformActionErrorException
PerformActionErrorException
public long getUnloadedClassCount()
throws PerformActionErrorException
PerformActionErrorException
public long getProcessCpuTime()
throws PerformActionErrorException
PerformActionErrorException
AttributeErrorException
public long getTotalPhysicalMemorySize()
throws PerformActionErrorException
PerformActionErrorException
public long getFreePhysicalMemorySize()
throws PerformActionErrorException
PerformActionErrorException
public long getCommittedVirtualMemorySize()
throws PerformActionErrorException
PerformActionErrorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||