eu.reservoir.monitoring.im.dht
Class DHTInfoPlane

java.lang.Object
  extended by eu.reservoir.monitoring.im.dht.AbstractDHTInfoPlane
      extended by eu.reservoir.monitoring.im.dht.DHTInfoPlane
All Implemented Interfaces:
DataSourceDelegateInteracter, InfoPlane, InfoService, Plane

public class DHTInfoPlane
extends AbstractDHTInfoPlane
implements InfoPlane, DataSourceDelegateInteracter

A DHTInfoPlane is an InfoPlane implementation that sends the Information Model data. It is also a DataSourceInteracter so it can, if needed, talk to the DataSource object it gets bound to.


Constructor Summary
DHTInfoPlane(java.lang.String remoteHostname, int remotePort, int localPort)
          Construct a DHTInfoPlane.
 
Method Summary
 boolean addDataSourceInfo(DataSource ds)
          Add a DataSource
 boolean addProbeAttributeInfo(Probe p, ProbeAttribute pa)
          Add a ProbeAttribute to a ProbeAttribute
 boolean addProbeInfo(Probe p)
          Add a Probe
 boolean announce()
          Announce that the plane is up and running
 boolean connect()
          Connect to a delivery mechansim.
 boolean dennounce()
          Un-announce that the plane is up and running
 boolean disconnect()
          Dicconnect from a delivery mechansim.
 DataSourceDelegate getDataSourceDelegate()
          Get the DataSourceDelegate this is a delegate for.
 boolean modifyDataSourceInfo(DataSource ds)
          Modify a DataSource
 boolean modifyProbeAttributeInfo(Probe p, ProbeAttribute pa)
          Modify a ProbeAttribute from a Probe
 boolean modifyProbeInfo(Probe p)
          Modify a Probe
 boolean removeDataSourceInfo(DataSource ds)
          Remove a DataSource
 boolean removeProbeAttributeInfo(Probe p, ProbeAttribute pa)
          Remove a ProbeAttribute from a Probe
 boolean removeProbeInfo(Probe p)
          Remove a Probe
 DataSourceDelegate setDataSourceDelegate(DataSourceDelegate ds)
          Set the DataSourceDelegate this is a delegate for.
 
Methods inherited from class eu.reservoir.monitoring.im.dht.AbstractDHTInfoPlane
getInfo, lookupDataSourceInfo, lookupDataSourceInfo, lookupProbeAttributeInfo, lookupProbeAttributeInfo, lookupProbeInfo, lookupProbeInfo, putInfo, removeInfo
 
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.plane.InfoService
getInfo, lookupDataSourceInfo, lookupDataSourceInfo, lookupProbeAttributeInfo, lookupProbeAttributeInfo, lookupProbeInfo, lookupProbeInfo, putInfo, removeInfo
 

Constructor Detail

DHTInfoPlane

public DHTInfoPlane(java.lang.String remoteHostname,
                    int remotePort,
                    int localPort)
Construct a DHTInfoPlane. Connect to the DHT root at hostname on port, and start here on localPort.

Method Detail

connect

public boolean connect()
Connect to a delivery mechansim. In a DHTInfoPlane we call announce.

Specified by:
connect in interface Plane
Overrides:
connect in class AbstractDHTInfoPlane

disconnect

public boolean disconnect()
Dicconnect from a delivery mechansim. In a DHTInfoPlane we call dennounce.

Specified by:
disconnect in interface Plane
Overrides:
disconnect in class AbstractDHTInfoPlane

announce

public boolean announce()
Announce that the plane is up and running

Specified by:
announce in interface Plane

dennounce

public boolean dennounce()
Un-announce that the plane is up and running

Specified by:
dennounce in interface Plane

getDataSourceDelegate

public DataSourceDelegate getDataSourceDelegate()
Get the DataSourceDelegate this is a delegate for.

Specified by:
getDataSourceDelegate in interface DataSourceDelegateInteracter

setDataSourceDelegate

public DataSourceDelegate setDataSourceDelegate(DataSourceDelegate ds)
Set the DataSourceDelegate this is a delegate for.

Specified by:
setDataSourceDelegate in interface DataSourceDelegateInteracter

addDataSourceInfo

public boolean addDataSourceInfo(DataSource ds)
Add a DataSource

Specified by:
addDataSourceInfo in interface InfoService

addProbeInfo

public boolean addProbeInfo(Probe p)
Add a Probe

Specified by:
addProbeInfo in interface InfoService

addProbeAttributeInfo

public boolean addProbeAttributeInfo(Probe p,
                                     ProbeAttribute pa)
Add a ProbeAttribute to a ProbeAttribute

Specified by:
addProbeAttributeInfo in interface InfoService

modifyDataSourceInfo

public boolean modifyDataSourceInfo(DataSource ds)
Modify a DataSource

Specified by:
modifyDataSourceInfo in interface InfoService

modifyProbeInfo

public boolean modifyProbeInfo(Probe p)
Modify a Probe

Specified by:
modifyProbeInfo in interface InfoService

modifyProbeAttributeInfo

public boolean modifyProbeAttributeInfo(Probe p,
                                        ProbeAttribute pa)
Modify a ProbeAttribute from a Probe

Specified by:
modifyProbeAttributeInfo in interface InfoService

removeDataSourceInfo

public boolean removeDataSourceInfo(DataSource ds)
Remove a DataSource

Specified by:
removeDataSourceInfo in interface InfoService

removeProbeInfo

public boolean removeProbeInfo(Probe p)
Remove a Probe

Specified by:
removeProbeInfo in interface InfoService

removeProbeAttributeInfo

public boolean removeProbeAttributeInfo(Probe p,
                                        ProbeAttribute pa)
Remove a ProbeAttribute from a Probe

Specified by:
removeProbeAttributeInfo in interface InfoService


RESERVOIR Monitoring 0.6.4