|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.ow2.jonas.lib.reconfig.ReconfigEmitter org.ow2.jonas.lib.service.AbsServiceImpl org.ow2.jonas.resourcemonitor.internal.JOnASResourceMonitorService
public class JOnASResourceMonitorService
Implementation for the ResourceMonitor interface.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
---|---|
JOnASResourceMonitorService()
|
Method Summary | |
---|---|
protected void |
doStart()
Abstract start-up method to be implemented by sub-classes. |
protected void |
doStop()
Abstract method for service stopping to be implemented by sub-classes. |
org.ow2.util.plan.deployer.api.IDeploymentPlanDeployer |
getDeploymentPlanDeployer()
Returns the deployment plan deployer service. |
JmxService |
getJmxService()
Returns the JMX service. |
Integer |
getMonitoredResourcesCount()
Returns the number of monitored resources. |
List<String> |
getMonitoredResourcesDescriptions()
Returns a list of descriptions for the monitored resources. |
Long |
getMonitoringInterval()
Returns the approximate time interval between two resource checks. |
org.ow2.util.plan.monitor.api.IResourceMonitor |
getResourceMonitor()
Returns the resource monitor. |
void |
setDeploymentPlanDeployer(org.ow2.util.plan.deployer.api.IDeploymentPlanDeployer deploymentPlanDeployer)
Sets the deployment plan deployer service. |
void |
setJmxService(JmxService jmxService)
Sets the JMX service. |
void |
setMonitoringInterval(Long interval)
Sets the approximate time interval between two resource checks. |
void |
setResourceMonitor(org.ow2.util.plan.monitor.api.IResourceMonitor resourceMonitor)
Sets the resource monitor. |
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
---|
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter |
---|
initLogger, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.service.Service |
---|
getName, init, isStarted, setName, start, stop |
Constructor Detail |
---|
public JOnASResourceMonitorService()
Method Detail |
---|
protected void doStart() throws ServiceException
doStart
in class AbsServiceImpl
ServiceException
- service start-up failedprotected void doStop() throws ServiceException
doStop
in class AbsServiceImpl
ServiceException
- service stopping failedpublic Integer getMonitoredResourcesCount()
getMonitoredResourcesCount
in interface JOnASResourceMonitorServiceMBean
public List<String> getMonitoredResourcesDescriptions()
getMonitoredResourcesDescriptions
in interface JOnASResourceMonitorServiceMBean
public Long getMonitoringInterval()
getMonitoringInterval
in interface JOnASResourceMonitorServiceMBean
public void setMonitoringInterval(Long interval)
setMonitoringInterval
in interface JOnASResourceMonitorServiceMBean
interval
- the new interval in milliseconds.public void setResourceMonitor(org.ow2.util.plan.monitor.api.IResourceMonitor resourceMonitor)
resourceMonitor
- the new resource monitor.public org.ow2.util.plan.monitor.api.IResourceMonitor getResourceMonitor()
public JmxService getJmxService()
public void setJmxService(JmxService jmxService)
jmxService
- the new JMX service.public void setDeploymentPlanDeployer(org.ow2.util.plan.deployer.api.IDeploymentPlanDeployer deploymentPlanDeployer)
deploymentPlanDeployer
- the new deployment plan deployer service.public org.ow2.util.plan.deployer.api.IDeploymentPlanDeployer getDeploymentPlanDeployer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |