edu.cmu.cs.able.probebus.siena.events
Class SienaInstallProbeEvent
java.lang.Object
|
+--edu.cmu.cs.able.probebus.siena.SienaProbeEvent
|
+--edu.cmu.cs.able.probebus.siena.events.SienaInstallProbeEvent
- All Implemented Interfaces:
- IProbeEvent, ISienaProbeEvent
- public class SienaInstallProbeEvent
- extends SienaProbeEvent
SienaInstallProbeEvent
This event is sent to the Probe Manager with the intent of initiating
deployment of probes.
Here is the format of the message:
1. ProbeConfigurationName="BWConfig"
Probe configuration file name
Changes?
2. ProbeInfrastructureEventType="Install"
The event type
always the same for this event
3. SystemID="Client1"
The system id, in other words, the ???
changes
Constructor Summary |
SienaInstallProbeEvent(siena.Notification n)
Constructor for SienaLatencyProbeEvent( Notification )
Converts from a Notification to a SienaLatencyProbeEvent |
SienaInstallProbeEvent(SienaProbeBus pb,
java.lang.String probeConfigurationName,
java.lang.String systemID)
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
- probe configuration name
- ProbeInfrastructureEventType (always the same for this event)
- system ID |
boolean |
equals(IProbeEvent e)
Equality testing important for writing test cases!
use .equals() not == |
InstallProbeEvent |
getProbeEvent()
|
siena.Notification |
toNotification()
Converts this event to a Siena Notification
See docs above for message format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
myProbeEvent
protected InstallProbeEvent myProbeEvent
- The generic event associated with this Siena-specific event
PROBE_CONFIGURATION_NAME_KEY
public static final java.lang.String PROBE_CONFIGURATION_NAME_KEY
- Notification will have ProbeConfigurationName="BWConfig"
PI_EVENT_TYPE_KEY
public static final java.lang.String PI_EVENT_TYPE_KEY
- Notification will have ProbeInfrastructureEventType="Install"
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"
SienaInstallProbeEvent
public SienaInstallProbeEvent(SienaProbeBus pb,
java.lang.String probeConfigurationName,
java.lang.String systemID)
- Constructor for SienaLatencyProbeEvent
SienaInstallProbeEvent
public SienaInstallProbeEvent(siena.Notification n)
- Constructor for SienaLatencyProbeEvent( Notification )
Converts from a Notification to a SienaLatencyProbeEvent
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 InstallProbeEvent 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
- probe configuration name
- ProbeInfrastructureEventType (always the same for this event)
- system ID