|
|||||||||
| 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 ProbeInfopublic Probe setName(java.lang.String aName)
ProbeInfo
setName in interface ProbeInfopublic ID getID()
getID in interface ProbeInfopublic Probe setID(ID id)
setID in interface ProbeInfopublic boolean isOn()
isOn in interface ProbeLifecyclepublic boolean isActive()
isActive in interface ProbeLifecyclepublic ID getServiceID()
getServiceID in interface ProbeInfopublic Probe setServiceID(ID id)
setServiceID in interface ProbeInfopublic ID getGroupID()
getGroupID in interface ProbeInfopublic Probe setGroupID(ID id)
setGroupID in interface ProbeInfopublic java.util.Map<java.lang.String,java.lang.Object> getMetaData()
getMetaData in interface ProbeInfopublic ProbeManager getProbeManager()
getProbeManager in interface ProbeInfopublic ProbeLifecycle setProbeManager(ProbeManager pm)
setProbeManager in interface ProbeInfopublic Rational getDataRate()
getDataRate in interface ProbeInfopublic Measurement getLastMeasurement()
getLastMeasurement in interface ProbeInfopublic Timestamp getLastMeasurementCollection()
getLastMeasurementCollection in interface ProbeInfopublic Probe addProbeAttribute(ProbeAttribute attribute)
addProbeAttribute in interface ProbeInfopublic java.util.Collection<ProbeAttribute> getAttributes()
getAttributes in interface ProbeInfopublic ProbeAttribute getAttribute(int n)
getAttribute in interface ProbeInfopublic Probe.CollectionType getCollectionType()
public Probe setDataRate(Rational rate)
setDataRate in interface ProbeInfopublic ProbeFilter getProbeFilter()
getProbeFilter in interface ProbeReportingpublic ProbeFilter setProbeFilter(ProbeFilter f)
setProbeFilter in interface ProbeReportingpublic ProbeReporting turnOnFiltering()
turnOnFiltering in interface ProbeReportingpublic ProbeReporting turnOffFiltering()
turnOffFiltering in interface ProbeReportingpublic boolean isFiltering()
isFiltering in interface ProbeReportingpublic ProbeLifecycle turnOnProbe()
turnOnProbe in interface ProbeLifecyclepublic ProbeLifecycle turnOffProbe()
turnOffProbe in interface ProbeLifecyclepublic ProbeLifecycle activateProbe()
activateProbe in interface ProbeLifecyclepublic ProbeLifecycle deactivateProbe()
deactivateProbe in interface ProbeLifecycleprotected void startProbeThread()
protected void stopProbeThread()
public abstract ProbeMeasurement collect()
collect in interface ProbeReportingpublic java.lang.Object inform(java.lang.Object obj)
inform in interface ProbeReportingpublic void error(MeasurementException me)
error in interface ProbeReportingpublic void run()
run in interface java.lang.Runnablepublic 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 | ||||||||