|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.safs.jvmagent.SEMEventMonitor org.safs.jvmagent.ShutdownEventMonitor
public class ShutdownEventMonitor
When injected into a JVM will monitor for a SEM JVMShutdown POST. Thus, the JVM must be launched with the following option for this monitor to be enabled:
An example STAF command that can trigger this event is:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.safs.jvmagent.SEMEventMonitor |
---|
SEMEventMonitor.STAFMonitor |
Field Summary | |
---|---|
static java.lang.String |
SHUTDOWN_EVENT
'JVMShutdown' |
static java.lang.String |
SHUTDOWN_PROPERTY
'JVMShutdownMonitor' |
Fields inherited from class org.safs.jvmagent.SEMEventMonitor |
---|
_event, _msdelay, _process, _shutdown, _staf, _stafmon, _system, _thismon, DEFAULT_EVENT, DEFAULT_PROPERTY |
Constructor Summary | |
---|---|
ShutdownEventMonitor()
Default constructor that simply forwards to the superclass. |
Method Summary | |
---|---|
protected void |
performAction()
Perform a System.exit(0) shutdown. |
protected void |
setEventCriteria()
Subclasses override to designate a unique event to monitor. |
Methods inherited from class org.safs.jvmagent.SEMEventMonitor |
---|
finalize, initialize, isTriggerEnabled, main, resetTrigger, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SHUTDOWN_EVENT
public static final java.lang.String SHUTDOWN_PROPERTY
Constructor Detail |
---|
public ShutdownEventMonitor()
Method Detail |
---|
protected void setEventCriteria()
SEMEventMonitor
This default implementation also sets the key name in System.properties that enables the trigger. This key name is stored in the local _system field. The default setting here is DEFAULT_PROPERTY.
setEventCriteria
in class SEMEventMonitor
protected void performAction()
performAction
in class SEMEventMonitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |