org.apache.geronimo.monitoring.snapshot
Class SnapshotThread
java.lang.Object
java.lang.Thread
org.apache.geronimo.monitoring.snapshot.SnapshotThread
- All Implemented Interfaces:
- Runnable
public class SnapshotThread
- extends Thread
Thread that is in charge of executing every x milliseconds. Upon each
iteration, a snapshot of the server's information is recorded.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
SnapshotThread
public SnapshotThread(long snapshot_length,
MBeanServer mbServer)
getSnapshotDuration
public long getSnapshotDuration()
- Gets the elapsed time in milliseconds between each snapshot.
- Returns:
- long
SnapshotStatus
public Integer SnapshotStatus()
addMBeanForSnapshot
public void addMBeanForSnapshot(String mbeanName)
- Adds the mbean name to list in memory. To update the snapshot-config.xml
coder must use SnapshotConfigXMLBuilder class.
- Parameters:
mbeanName
-
removeMBeanForSnapshot
public void removeMBeanForSnapshot(String mbeanName)
- Removes the mbean name to list in memory. To update the
snapshot-config.xml coder must use SnapshotConfigXMLBuilder class.
- Parameters:
mbeanName
-
setSnapshotDuration
public void setSnapshotDuration(long snapshot_length)
- Sets the elapsed time in milliseconds between each snapshot.
- Parameters:
snapshotDuration
-
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.