| java.lang.Object org.jboss.mx.util.SchedulableRunnable org.jboss.mx.util.MonitorRunnable
MonitorRunnable | public class MonitorRunnable extends SchedulableRunnable (Code) | | author: Scott.Stark@jboss.org version: $Revision: 57200 $ |
Method Summary | |
public void | doRun() | void | runMonitor(ObservedObject object) Run the monitor.
Retrieves the monitored attribute and passes it to each service.
Peforms the common error processing. | void | runMonitor() | void | sendAttributeErrorNotification(ObservedObject object, String message) Send an attribute error notification. | void | sendAttributeTypeErrorNotification(ObservedObject object, String message) Send an attribute type error notification. | void | sendNotification(ObservedObject object, String type, long timestamp, String message, String attribute, Object gauge, Object trigger) | void | sendObjectErrorNotification(ObservedObject object, String message) Send an object error notification. | void | sendRuntimeErrorNotification(ObservedObject object, String message) Send a runtime error notification. |
MonitorRunnable | public MonitorRunnable(Monitor monitor, ObjectName monitorName, MonitorCallback callback, Map observedObjects, MBeanServer server)(Code) | | Create a monitor runnable to periodically perform monitoring.
Parameters: monitor - the monitoring to perform. |
doRun | public void doRun()(Code) | | Run the montior
|
runMonitor | void runMonitor(ObservedObject object)(Code) | | Run the monitor.
Retrieves the monitored attribute and passes it to each service.
Peforms the common error processing.
Parameters: object - the mbean to run the monitor on |
runMonitor | void runMonitor()(Code) | | Run the monitor on each observed object
|
sendAttributeErrorNotification | void sendAttributeErrorNotification(ObservedObject object, String message)(Code) | | Send an attribute error notification.
Parameters: object - the observedObject. Parameters: message - the human readable message to send. |
sendAttributeTypeErrorNotification | void sendAttributeTypeErrorNotification(ObservedObject object, String message)(Code) | | Send an attribute type error notification.
Parameters: object - the observedObject. Parameters: message - the human readable message to send. |
sendNotification | void sendNotification(ObservedObject object, String type, long timestamp, String message, String attribute, Object gauge, Object trigger)(Code) | | Sends the notification
Parameters: object - the observedObject. Parameters: type - the notification type. Parameters: timestamp - the time of the notification. Parameters: message - the human readable message to send. Parameters: attribute - the attribute name. Parameters: gauge - the derived gauge. Parameters: trigger - the trigger value. |
sendObjectErrorNotification | void sendObjectErrorNotification(ObservedObject object, String message)(Code) | | Send an object error notification.
Parameters: object - the observedObject. Parameters: message - the human readable message to send. |
sendRuntimeErrorNotification | void sendRuntimeErrorNotification(ObservedObject object, String message)(Code) | | Send a runtime error notification.
Parameters: object - the observedObject. Parameters: message - the human readable message to send. |
|
|