edu.cmu.cs.able.probebus.siena
Class SienaProbeBus

java.lang.Object
  |
  +--edu.cmu.cs.able.probebus.siena.SienaProbeBus
All Implemented Interfaces:
IProbeBus

public class SienaProbeBus
extends java.lang.Object
implements IProbeBus


Field Summary
 siena.HierarchicalDispatcher siena
           
 
Constructor Summary
SienaProbeBus(java.lang.String sienaURI)
          Constructor for SienaProbeBus Try sienaURI = "senp://127.0.0.1" to run the bus on this computer on the default port
 
Method Summary
 boolean publishEvent(IProbeEvent e)
          Publishes an Event (ISienaProbeEvent) on the Siena Event Bus This means the client of this method has the job of creating the Notification
 void registerForEvent(IProbeEvent e, IProbeConsumer c)
          An object that wants to get notified when event occurs must register using this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

siena

public siena.HierarchicalDispatcher siena
Constructor Detail

SienaProbeBus

public SienaProbeBus(java.lang.String sienaURI)
Constructor for SienaProbeBus Try sienaURI = "senp://127.0.0.1" to run the bus on this computer on the default port
Method Detail

registerForEvent

public void registerForEvent(IProbeEvent e,
                             IProbeConsumer c)
Description copied from interface: IProbeBus
An object that wants to get notified when event occurs must register using this method. When that event occurs, the interested object, (the IProbeConsumer parameter) will be notified with an "onProbeEvent( e )" callback.
Specified by:
registerForEvent in interface IProbeBus
See Also:
IProbeBus.registerForEvent(IProbeEvent, IProbeConsumer)

publishEvent

public boolean publishEvent(IProbeEvent e)
Description copied from interface: IProbeBus
Publishes an Event (ISienaProbeEvent) on the Siena Event Bus This means the client of this method has the job of creating the Notification
Specified by:
publishEvent in interface IProbeBus
See Also:
IProbeBus.publishEvent(IProbeEvent e)