org.jboss.monitor
Class SnapshotRecordingMonitor
java.lang.Object
org.jboss.monitor.SnapshotRecordingMonitor
- All Implemented Interfaces:
- Runnable, MBeanRegistration, SnapshotRecordingMonitorMBean
public class SnapshotRecordingMonitor
- extends Object
- implements Runnable, SnapshotRecordingMonitorMBean, MBeanRegistration
Comment
- Version:
- $Revision: 81038 $
- Author:
- Bill Burke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected Logger log
monitorName
protected String monitorName
observedObject
protected ObjectName observedObject
attribute
protected String attribute
recording
protected boolean recording
period
protected long period
history
protected ArrayList history
startTime
protected long startTime
endTime
protected long endTime
mbeanServer
protected MBeanServer mbeanServer
SnapshotRecordingMonitor
public SnapshotRecordingMonitor()
startMonitorThread
protected void startMonitorThread()
getMonitorName
public String getMonitorName()
- Specified by:
getMonitorName
in interface SnapshotRecordingMonitorMBean
setMonitorName
public void setMonitorName(String name)
- Specified by:
setMonitorName
in interface SnapshotRecordingMonitorMBean
getObservedObject
public ObjectName getObservedObject()
- Specified by:
getObservedObject
in interface SnapshotRecordingMonitorMBean
setObservedObject
public void setObservedObject(ObjectName oname)
- Specified by:
setObservedObject
in interface SnapshotRecordingMonitorMBean
getObservedAttribute
public String getObservedAttribute()
- Specified by:
getObservedAttribute
in interface SnapshotRecordingMonitorMBean
setObservedAttribute
public void setObservedAttribute(String attr)
- Specified by:
setObservedAttribute
in interface SnapshotRecordingMonitorMBean
isRecording
public boolean isRecording()
- Specified by:
isRecording
in interface SnapshotRecordingMonitorMBean
setRecording
public void setRecording(boolean start)
getPeriod
public long getPeriod()
- Specified by:
getPeriod
in interface SnapshotRecordingMonitorMBean
setPeriod
public void setPeriod(long period)
- Specified by:
setPeriod
in interface SnapshotRecordingMonitorMBean
getData
public ArrayList getData()
- Specified by:
getData
in interface SnapshotRecordingMonitorMBean
clearData
public void clearData()
- Specified by:
clearData
in interface SnapshotRecordingMonitorMBean
startSnapshot
public void startSnapshot()
- Specified by:
startSnapshot
in interface SnapshotRecordingMonitorMBean
endSnapshot
public void endSnapshot()
- Specified by:
endSnapshot
in interface SnapshotRecordingMonitorMBean
getStartTime
public long getStartTime()
- Specified by:
getStartTime
in interface SnapshotRecordingMonitorMBean
getEndTime
public long getEndTime()
- Specified by:
getEndTime
in interface SnapshotRecordingMonitorMBean
run
public void run()
- Specified by:
run
in interface Runnable
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName objectName)
throws Exception
- Specified by:
preRegister
in interface MBeanRegistration
- Throws:
Exception
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interface MBeanRegistration
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister
in interface MBeanRegistration
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface MBeanRegistration
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.