|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.core.AbstractProbe
public abstract class AbstractProbe
An abstract probe.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface eu.reservoir.monitoring.core.Probe |
---|
Probe.CollectionType, Probe.ReportingType, Probe.Status |
Constructor Summary | |
---|---|
AbstractProbe()
Construct a probe |
Method Summary | |
---|---|
ProbeLifecycle |
activateProbe()
Activate the probe |
Probe |
addProbeAttribute(ProbeAttribute attribute)
Define an element of the data dictionary |
void |
beginThreadBody()
The code to run at the begining of the thread body. |
abstract ProbeMeasurement |
collect()
Collect a measurement for the reciever |
ProbeLifecycle |
deactivateProbe()
Deactivate the probe |
void |
endThreadBody()
The code to run at the end of the thread body. |
void |
error(MeasurementException me)
Called when there is an error in a Measurement. |
ProbeAttribute |
getAttribute(int n)
Get the ProbeAttribute with field no. |
java.util.Collection<ProbeAttribute> |
getAttributes()
Get the Probe's Attributes. |
Probe.CollectionType |
getCollectionType()
Get the CollectionType of this Probe. |
Rational |
getDataRate()
Get the data rate The data rate is a Rational. |
ID |
getGroupID()
Get the Group ID of the Probe. |
ID |
getID()
Get the Probe ID |
Measurement |
getLastMeasurement()
Get the last measurement that was collected. |
Timestamp |
getLastMeasurementCollection()
Get the last time a measurement was collected. |
java.util.Map<java.lang.String,java.lang.Object> |
getMetaData()
Get the probe meta data. |
java.lang.String |
getName()
Get the name of the Probe |
ProbeFilter |
getProbeFilter()
Get the current filter. |
ProbeManager |
getProbeManager()
Get the manager of a Probe. |
ID |
getServiceID()
Get the Service ID of the Probe. |
java.lang.Object |
inform(java.lang.Object obj)
Inform the Probe of an object. |
boolean |
isActive()
Has this probe been activated. |
boolean |
isFiltering()
Is the probe filtering values. |
boolean |
isOn()
Is this Probe turned on. |
protected long |
rationalToMillis(Rational rational)
Convert the data rate to milliseconds |
void |
run()
The thread run() method |
Probe |
setDataRate(Rational rate)
Set the data rate The data rate is a Rational. |
Probe |
setGroupID(ID id)
Set the Group ID for a Probe |
Probe |
setID(ID id)
Set the Probe ID |
Probe |
setName(java.lang.String aName)
Set the name of the Probe |
ProbeFilter |
setProbeFilter(ProbeFilter f)
Set the current filter. |
ProbeLifecycle |
setProbeManager(ProbeManager pm)
Set the manager of a Probe. |
Probe |
setServiceID(ID id)
Set the Service ID for a Probe |
protected void |
startProbeThread()
Activate the probe by starting the probe thread. |
protected void |
stopProbeThread()
Deactivate the probe by stopping the probe thread. |
java.lang.String |
toString()
To String |
ProbeReporting |
turnOffFiltering()
Turn off filtering. |
ProbeLifecycle |
turnOffProbe()
Turn off the probe |
ProbeReporting |
turnOnFiltering()
Turn on filtering. |
ProbeLifecycle |
turnOnProbe()
Turn on the probe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractProbe()
Method Detail |
---|
public java.lang.String getName()
ProbeInfo
getName
in interface ProbeInfo
public Probe setName(java.lang.String aName)
ProbeInfo
setName
in interface ProbeInfo
public ID getID()
getID
in interface ProbeInfo
public Probe setID(ID id)
setID
in interface ProbeInfo
public boolean isOn()
isOn
in interface ProbeLifecycle
public boolean isActive()
isActive
in interface ProbeLifecycle
public ID getServiceID()
getServiceID
in interface ProbeInfo
public Probe setServiceID(ID id)
setServiceID
in interface ProbeInfo
public ID getGroupID()
getGroupID
in interface ProbeInfo
public Probe setGroupID(ID id)
setGroupID
in interface ProbeInfo
public java.util.Map<java.lang.String,java.lang.Object> getMetaData()
getMetaData
in interface ProbeInfo
public ProbeManager getProbeManager()
getProbeManager
in interface ProbeInfo
public ProbeLifecycle setProbeManager(ProbeManager pm)
setProbeManager
in interface ProbeInfo
public Rational getDataRate()
getDataRate
in interface ProbeInfo
public Measurement getLastMeasurement()
getLastMeasurement
in interface ProbeInfo
public Timestamp getLastMeasurementCollection()
getLastMeasurementCollection
in interface ProbeInfo
public Probe addProbeAttribute(ProbeAttribute attribute)
addProbeAttribute
in interface ProbeInfo
public java.util.Collection<ProbeAttribute> getAttributes()
getAttributes
in interface ProbeInfo
public ProbeAttribute getAttribute(int n)
getAttribute
in interface ProbeInfo
public Probe.CollectionType getCollectionType()
public Probe setDataRate(Rational rate)
setDataRate
in interface ProbeInfo
public ProbeFilter getProbeFilter()
getProbeFilter
in interface ProbeReporting
public ProbeFilter setProbeFilter(ProbeFilter f)
setProbeFilter
in interface ProbeReporting
public ProbeReporting turnOnFiltering()
turnOnFiltering
in interface ProbeReporting
public ProbeReporting turnOffFiltering()
turnOffFiltering
in interface ProbeReporting
public boolean isFiltering()
isFiltering
in interface ProbeReporting
public ProbeLifecycle turnOnProbe()
turnOnProbe
in interface ProbeLifecycle
public ProbeLifecycle turnOffProbe()
turnOffProbe
in interface ProbeLifecycle
public ProbeLifecycle activateProbe()
activateProbe
in interface ProbeLifecycle
public ProbeLifecycle deactivateProbe()
deactivateProbe
in interface ProbeLifecycle
protected void startProbeThread()
protected void stopProbeThread()
public abstract ProbeMeasurement collect()
collect
in interface ProbeReporting
public java.lang.Object inform(java.lang.Object obj)
inform
in interface ProbeReporting
public void error(MeasurementException me)
error
in interface ProbeReporting
public void run()
run
in interface java.lang.Runnable
public void beginThreadBody()
public void endThreadBody()
protected long rationalToMillis(Rational rational)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |