edu.cmu.cs.able.probebus.siena.events
Class SienaDeployProbeEvent

java.lang.Object
  |
  +--edu.cmu.cs.able.probebus.siena.SienaProbeEvent
        |
        +--edu.cmu.cs.able.probebus.siena.events.SienaDeployProbeEvent
All Implemented Interfaces:
IProbeEvent, ISienaProbeEvent

public class SienaDeployProbeEvent
extends SienaProbeEvent

SienaRequestProbeEvent This event is sent to the Probe Manager with the intent of initiating deployment of probes. Here is the format of the message: 1. Classes="runtime.client.Client,runtime.client.ClientThread" method names, separated by "," always the same 2. ConfigName="BWConfig" Probe configuration file name Changes? 3. ProbeInfrastructureEventType="ProbeRequest" The event type always the same 4. SystemID="Client1" The system id, in other words, the ??? changes


Field Summary
static java.lang.String CLASSES_KEY
          Notification will have Classes="runtime.client.Client,runtime.client.ClientThread"
static java.lang.String CONFIG_NAME_KEY
          Notification will have ConfigName="BWConfig"
protected  DeployProbeEvent myProbeEvent
          The generic event associated with this Siena-specific event
static java.lang.String PI_EVENT_TYPE_KEY
          Notification will have ProbeInfrastructureEventType="ProbeRequest"
static java.lang.String PI_EVENT_TYPE_VALUE
           
static java.lang.String SYSTEM_ID_KEY
          Notification will have SystemID="Client1"
 
Fields inherited from class edu.cmu.cs.able.probebus.siena.SienaProbeEvent
theProbeBus
 
Constructor Summary
SienaDeployProbeEvent(siena.Notification n)
          Constructor for SienaLatencyProbeEvent( Notification ) Converts from a Notification to a SienaLatencyProbeEvent
SienaDeployProbeEvent(SienaProbeBus pb, java.lang.String configName, java.lang.String systemID, java.lang.String classes)
          Constructor for SienaLatencyProbeEvent
 
Method Summary
 siena.Filter createFilter()
          Create a Siena Filter that will only listen to this event For this event, we match based on - system ID - ProbeInfrastructureEventType (always the same for this event) - config name
 boolean equals(IProbeEvent e)
          Equality testing important for writing test cases! use .equals() not ==
 DeployProbeEvent getProbeEvent()
           
 siena.Notification toNotification()
          Converts this event to a Siena Notification See docs above for message format
 
Methods inherited from class edu.cmu.cs.able.probebus.siena.SienaProbeEvent
dispatch, getProbeBus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myProbeEvent

protected DeployProbeEvent myProbeEvent
The generic event associated with this Siena-specific event

CLASSES_KEY

public static final java.lang.String CLASSES_KEY
Notification will have Classes="runtime.client.Client,runtime.client.ClientThread"

CONFIG_NAME_KEY

public static final java.lang.String CONFIG_NAME_KEY
Notification will have ConfigName="BWConfig"

PI_EVENT_TYPE_KEY

public static final java.lang.String PI_EVENT_TYPE_KEY
Notification will have ProbeInfrastructureEventType="ProbeRequest"

PI_EVENT_TYPE_VALUE

public static final java.lang.String PI_EVENT_TYPE_VALUE

SYSTEM_ID_KEY

public static final java.lang.String SYSTEM_ID_KEY
Notification will have SystemID="Client1"
Constructor Detail

SienaDeployProbeEvent

public SienaDeployProbeEvent(SienaProbeBus pb,
                             java.lang.String configName,
                             java.lang.String systemID,
                             java.lang.String classes)
Constructor for SienaLatencyProbeEvent

SienaDeployProbeEvent

public SienaDeployProbeEvent(siena.Notification n)
Constructor for SienaLatencyProbeEvent( Notification ) Converts from a Notification to a SienaLatencyProbeEvent
Method Detail

toNotification

public siena.Notification toNotification()
Converts this event to a Siena Notification See docs above for message format
Overrides:
toNotification in class SienaProbeEvent
Following copied from class: edu.cmu.cs.able.probebus.siena.SienaProbeEvent
Returns:
this object represented as a Siena Notification

getProbeEvent

public DeployProbeEvent getProbeEvent()

equals

public boolean equals(IProbeEvent e)
Equality testing important for writing test cases! use .equals() not ==

createFilter

public siena.Filter createFilter()
Create a Siena Filter that will only listen to this event For this event, we match based on - system ID - ProbeInfrastructureEventType (always the same for this event) - config name