|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.gridlab.gat.monitoring.MetricEvent
public class MetricEvent
An instance of this class represents an metric event.
A metric event occurs whenever the monitored resource, be it a job or a hardware resource, sends out an event to the monitoring system. This can encompass almost any type of event from disk space running out to memory becoming available. The various events are defined by the various sensors. This topic is covered in more detail in the Metric documentation.
Constructor Summary | |
---|---|
MetricEvent(Object source,
Object value,
Metric metric,
long eventTime)
Constructs a MetricEvent with the specified properties |
Method Summary | |
---|---|
long |
getEventTime()
This method returns the number of milliseconds after January 1, 1970, 00:00:00 GMT when the event happened. |
Metric |
getMetric()
This method returns an instance of the Metric to which this MetricEvent corresponds. |
Object |
getValue()
This method returns the value corresponding to this MetricEvent. |
String |
toString()
|
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetricEvent(Object source, Object value, Metric metric, long eventTime)
source
- The source of the MetricEventvalue
- The value of the MetricEventmetric
- The Metric of the MetricEventeventTime
- The number of milliseconds after January 1, 1970, 00:00:00
GMT when the MetricEvent happened.Method Detail |
---|
public Metric getMetric()
public Object getValue()
public long getEventTime()
public String toString()
toString
in class EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |