|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteu.reservoir.monitoring.core.AbstractPlaneInteracter
eu.reservoir.monitoring.core.DefaultDataSourceDelegate
public class DefaultDataSourceDelegate
A DataSourceDelegate is a delegate for a DataSource that sends interacts with the data plane, info plane, and control plane. It's role is to insulate the DataSource and the Probes from the real implementations of the Planes.
| Constructor Summary | |
|---|---|
DefaultDataSourceDelegate(DataSource ds)
Construct a DataSourceDelegate. |
|
| Method Summary | |
|---|---|
boolean |
activateProbe(ID probeID)
Activate the probe |
boolean |
addDataSourceInfo(DataSource ds)
Add DataSource info to the InfoPlane. |
boolean |
addProbeAttributeInfo(Probe p,
ProbeAttribute pa)
Add ProbeAttribute info to the InfoPlane. |
boolean |
addProbeInfo(Probe p)
Add Probe info to the InfoPlane. |
boolean |
deactivateProbe(ID probeID)
Deactivate the probe |
DataSource |
getDataSource()
Get the DataSource this is a delegate for. |
java.lang.String |
getDataSourceName()
Get the name of the DataSource |
java.lang.Object |
getInfo(java.lang.String key)
Get a value from the InfoPlane. |
Rational |
getProbeDataRate(ID probeID)
Get the data rate for a Probe The data rate is a Rational. |
ID |
getProbeGroupID(ID probeID)
Get the Group ID of the Probe. |
Measurement |
getProbeLastMeasurement(ID probeID)
Get the last measurement that was collected. |
Timestamp |
getProbeLastMeasurementCollection(ID probeID)
Get the last time a measurement was collected. |
java.lang.String |
getProbeName(ID probeID)
Get the name of the Probe |
ID |
getProbeServiceID(ID probeID)
Get the Service ID of the Probe. |
boolean |
isProbeActive(ID probeID)
Has this probe been activated. |
boolean |
isProbeOn(ID probeID)
Is this Probe turned on. |
java.lang.Object |
lookupDataSourceInfo(DataSource dataSource,
java.lang.String info)
Lookup some DataSource info in the InfoPlane. |
java.lang.Object |
lookupDataSourceInfo(ID dataSourceID,
java.lang.String info)
Lookup some DataSource info in the InfoPlane. |
java.lang.Object |
lookupProbeAttributeInfo(ID probeID,
int field,
java.lang.String info)
Lookup some ProbeAttribute info in the InfoPlane. |
java.lang.Object |
lookupProbeAttributeInfo(Probe probe,
int field,
java.lang.String info)
Lookup some ProbeAttribute info in the InfoPlane. |
java.lang.Object |
lookupProbeInfo(ID probeID,
java.lang.String info)
Lookup some Probe info in the InfoPlane. |
java.lang.Object |
lookupProbeInfo(Probe probe,
java.lang.String info)
Lookup some Probe info in the InfoPlane. |
boolean |
modifyDataSourceInfo(DataSource ds)
Modify DataSource Info. |
boolean |
modifyProbeAttributeInfo(Probe p,
ProbeAttribute pa)
Modify ProbeAttribute Info for a Probe. |
boolean |
modifyProbeInfo(Probe p)
Modify Probe Info. |
boolean |
putInfo(java.lang.String key,
java.io.Serializable value)
Put a value in the InfoPlane. |
boolean |
removeDataSourceInfo(DataSource ds)
Remove DataSource info from the InfoPlane. |
boolean |
removeInfo(java.lang.String key)
Remove a value from the InfoPlane. |
boolean |
removeProbeAttributeInfo(Probe p,
ProbeAttribute pa)
Remove ProbeAttribute info from the InfoPlane. |
boolean |
removeProbeInfo(Probe p)
Remove Probe info from the InfoPlane. |
int |
sendData(DataPlaneMessage dpm)
Send a message. |
boolean |
sentData(int id)
This method is called just after a message has been sent to the underlying transport. |
PlaneInteracter |
setControlPlane(ControlPlane controlPlane)
Set the ControlPlane this is a delegate for. |
PlaneInteracter |
setDataPlane(DataPlane dataPlane)
Set the DataPlane this is a delegate for. |
DataSource |
setDataSource(DataSource ds)
Set the DataSource this is a delegate for. |
boolean |
setDataSourceName(java.lang.String name)
Set the name of the DataSource |
PlaneInteracter |
setInfoPlane(InfoPlane infoPlane)
Set the InfoPlane this is a delegate for. |
boolean |
setProbeDataRate(ID probeID,
Rational dataRate)
Set the data rate for a Probe The data rate is a Rational. |
boolean |
setProbeGroupID(ID probeID,
ID id)
Set the Group ID for a Probe |
boolean |
setProbeName(ID probeID,
java.lang.String name)
Set the name of the Probe |
boolean |
setProbeServiceID(ID probeID,
ID id)
Set the Service ID for a Probe |
boolean |
turnOffProbe(ID probeID)
Turn off a Probe |
boolean |
turnOnProbe(ID probeID)
Turn on a Probe |
| Methods inherited from class eu.reservoir.monitoring.core.AbstractPlaneInteracter |
|---|
announce, connect, dennounce, disconnect, getControlPlane, getDataPlane, getInfoPlane, isConnected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface eu.reservoir.monitoring.core.PlaneInteracter |
|---|
connect, disconnect, getControlPlane, getDataPlane, getInfoPlane, isConnected |
| Constructor Detail |
|---|
public DefaultDataSourceDelegate(DataSource ds)
| Method Detail |
|---|
public DataSource getDataSource()
getDataSource in interface DataSourceInteracterpublic DataSource setDataSource(DataSource ds)
setDataSource in interface DataSourceInteracterpublic PlaneInteracter setDataPlane(DataPlane dataPlane)
setDataPlane in interface PlaneInteractersetDataPlane in class AbstractPlaneInteracterpublic PlaneInteracter setControlPlane(ControlPlane controlPlane)
setControlPlane in interface PlaneInteractersetControlPlane in class AbstractPlaneInteracterpublic PlaneInteracter setInfoPlane(InfoPlane infoPlane)
setInfoPlane in interface PlaneInteractersetInfoPlane in class AbstractPlaneInteracter
public int sendData(DataPlaneMessage dpm)
throws java.lang.Exception
sendData in interface DataServicejava.lang.Exceptionpublic boolean sentData(int id)
sentData in interface DataService
public java.lang.Object lookupDataSourceInfo(DataSource dataSource,
java.lang.String info)
lookupDataSourceInfo in interface InfoService
public java.lang.Object lookupDataSourceInfo(ID dataSourceID,
java.lang.String info)
lookupDataSourceInfo in interface InfoService
public java.lang.Object lookupProbeInfo(Probe probe,
java.lang.String info)
lookupProbeInfo in interface InfoService
public java.lang.Object lookupProbeInfo(ID probeID,
java.lang.String info)
lookupProbeInfo in interface InfoService
public java.lang.Object lookupProbeAttributeInfo(Probe probe,
int field,
java.lang.String info)
lookupProbeAttributeInfo in interface InfoService
public java.lang.Object lookupProbeAttributeInfo(ID probeID,
int field,
java.lang.String info)
lookupProbeAttributeInfo in interface InfoServicepublic boolean addDataSourceInfo(DataSource ds)
addDataSourceInfo in interface InfoServicepublic boolean addProbeInfo(Probe p)
addProbeInfo in interface InfoService
public boolean addProbeAttributeInfo(Probe p,
ProbeAttribute pa)
addProbeAttributeInfo in interface InfoServicepublic boolean modifyDataSourceInfo(DataSource ds)
modifyDataSourceInfo in interface InfoServicepublic boolean modifyProbeInfo(Probe p)
modifyProbeInfo in interface InfoService
public boolean modifyProbeAttributeInfo(Probe p,
ProbeAttribute pa)
modifyProbeAttributeInfo in interface InfoServicepublic boolean removeDataSourceInfo(DataSource ds)
removeDataSourceInfo in interface InfoServicepublic boolean removeProbeInfo(Probe p)
removeProbeInfo in interface InfoService
public boolean removeProbeAttributeInfo(Probe p,
ProbeAttribute pa)
removeProbeAttributeInfo in interface InfoService
public boolean putInfo(java.lang.String key,
java.io.Serializable value)
putInfo in interface InfoServicepublic java.lang.Object getInfo(java.lang.String key)
getInfo in interface InfoServicepublic boolean removeInfo(java.lang.String key)
removeInfo in interface InfoServicepublic java.lang.String getProbeName(ID probeID)
getProbeName in interface ControlService
public boolean setProbeName(ID probeID,
java.lang.String name)
setProbeName in interface ControlServicepublic ID getProbeServiceID(ID probeID)
getProbeServiceID in interface ControlService
public boolean setProbeServiceID(ID probeID,
ID id)
setProbeServiceID in interface ControlServicepublic ID getProbeGroupID(ID probeID)
getProbeGroupID in interface ControlService
public boolean setProbeGroupID(ID probeID,
ID id)
setProbeGroupID in interface ControlServicepublic Rational getProbeDataRate(ID probeID)
getProbeDataRate in interface ControlService
public boolean setProbeDataRate(ID probeID,
Rational dataRate)
setProbeDataRate in interface ControlServicepublic Measurement getProbeLastMeasurement(ID probeID)
getProbeLastMeasurement in interface ControlServicepublic Timestamp getProbeLastMeasurementCollection(ID probeID)
getProbeLastMeasurementCollection in interface ControlServicepublic boolean turnOnProbe(ID probeID)
turnOnProbe in interface ControlServicepublic boolean turnOffProbe(ID probeID)
turnOffProbe in interface ControlServicepublic boolean isProbeOn(ID probeID)
isProbeOn in interface ControlServicepublic boolean activateProbe(ID probeID)
activateProbe in interface ControlServicepublic boolean deactivateProbe(ID probeID)
deactivateProbe in interface ControlServicepublic boolean isProbeActive(ID probeID)
isProbeActive in interface ControlServicepublic java.lang.String getDataSourceName()
getDataSourceName in interface ControlServicepublic boolean setDataSourceName(java.lang.String name)
setDataSourceName in interface ControlService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||