Class JVMStatusHelper
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.runtime.plugins.admin.jvmstatus.JVMStatusHelper
-
- All Implemented Interfaces:
MonitoringConstants
,Initializable
,Component
,LogEnabled
,Serviceable
public class JVMStatusHelper extends AbstractLogEnabled implements Component, Serviceable, Initializable, MonitoringConstants
This helper allow to get information or runs some operations on JVM system
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
MonitoringConstants.Period
-
-
Field Summary
-
Fields inherited from interface org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY
-
-
Constructor Summary
Constructors Constructor Description JVMStatusHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
garbageCollect()
Runs a garbage collector.Map<String,Object>
getGeneralStatus()
Retrieves information about the general status of the systemMap<String,Object>
getMonitoringData()
Retrieves the monitoring datavoid
initialize()
void
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
JVMStatusHelper
public JVMStatusHelper()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
garbageCollect
public Map<String,Object> garbageCollect()
Runs a garbage collector.- Returns:
- an empty map
-
getGeneralStatus
public Map<String,Object> getGeneralStatus()
Retrieves information about the general status of the system- Returns:
- a map containing the general status information
-
getMonitoringData
public Map<String,Object> getMonitoringData()
Retrieves the monitoring data- Returns:
- a map containing the monitoring data
-
-