MonitoringEventpublic class MonitoringEvent extends com.sun.enterprise.admin.event.AdminEvent Monitoring Event. A monitoring event should trigger start, stop or
collection of monitoring data for specified component. |
Fields Summary |
---|
public static final String | START_MONITORINGConstant denoting action of monitoring start | public static final String | STOP_MONITORINGConstant denoting action of monitoring stop | public static final String | GET_MONITOR_DATAConstant denoting action of get monitoring data (collection of data) | public static final String | LIST_MONITORABLEConstant denoting action of list monitorable components | public static final String | SET_MONITOR_DATAConstant denoting action of set (for TxnMgr admin currently) | static final String | eventTypeEvent type | private String | componentName | private String | actionCode | private Object | command |
Constructors Summary |
---|
public MonitoringEvent(String instance, String component, String action)Create a new MonitoringEvent.
this(instance, component, action, null);
| public MonitoringEvent(String instance, String component, String action, Object command)Create a new MonitoringEvent.
super(eventType, instance);
componentName = component;
actionCode = action;
this.command = command;
|
Methods Summary |
---|
public java.lang.String | getActionCode()Get event action code - one of MonitoringEvent.START_MONITORING,
MonitoringEvent.STOP_MONITORING, MonitoringEvent.GET_MONITOR_DATA,
MonitoringEvent.LIST_MONITORABLE
return actionCode;
| public java.lang.Object | getCommand()Get monitoring command information. This is used to access an
instance of com.sun.enterprise.admin.monitor.MonitorCommand (or its sub
classes) from the event. This may be null.
return command;
| public java.lang.String | getComponentName()Get name of component to which this event applies.
return componentName;
| public java.lang.String | toString()Get a string representation.
return "MonitoringEvent -- " + componentName + " -- " + actionCode;
|
|