edu.cmu.cs.able.probebus.siena.events
Class SienaActivateResponseProbeEvent
java.lang.Object
|
+--edu.cmu.cs.able.probebus.siena.SienaProbeEvent
|
+--edu.cmu.cs.able.probebus.siena.SienaResponseProbeEvent
|
+--edu.cmu.cs.able.probebus.siena.events.SienaActivateResponseProbeEvent
- All Implemented Interfaces:
- IProbeEvent, ISienaProbeEvent
- public class SienaActivateResponseProbeEvent
- extends SienaResponseProbeEvent
SienaActivateResponseProbeEvent
Here is the format of the message:
1. ResponseType="ActivateResponse"
Always the same for this event
2. Hostname="gs01.isri.cs.cmu.edu"
Changes
3. KXEventType="Response"
Always the same for this event
4. ProbeConfigurationName="BWConfig"
Probe configuration file name
Changes
5. Status="Success"
Changes
6. SystemID="Client1"
The system id, in other words, the ???
Changes
Constructor Summary |
SienaActivateResponseProbeEvent(siena.Notification n)
Constructor for SienaLatencyProbeEvent( Notification )
Converts from a Notification to a SienaLatencyProbeEvent |
SienaActivateResponseProbeEvent(SienaProbeBus pb,
java.lang.String probeConfigurationName,
java.lang.String systemID,
java.lang.String status,
java.lang.String hostname)
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
- response type
- KX event type
- probe configuration name
- system ID |
boolean |
equals(IProbeEvent e)
Equality testing important for writing test cases!
use .equals() not == |
ActivateResponseProbeEvent |
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 ActivateResponseProbeEvent myProbeEvent
- The generic event associated with this Siena-specific event
responseTypeValue
protected java.lang.String responseTypeValue
- Notification will have ResponseType="ActivateResponse"
kxEventTypeValue
protected java.lang.String kxEventTypeValue
- Notification will have KXEventType="Response"
probeConfigurationNameValue
protected java.lang.String probeConfigurationNameValue
- Notification will have ProbeConfigurationName="BWConfig"
SienaActivateResponseProbeEvent
public SienaActivateResponseProbeEvent(SienaProbeBus pb,
java.lang.String probeConfigurationName,
java.lang.String systemID,
java.lang.String status,
java.lang.String hostname)
- Constructor for SienaLatencyProbeEvent
SienaActivateResponseProbeEvent
public SienaActivateResponseProbeEvent(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 ActivateResponseProbeEvent 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
- response type
- KX event type
- probe configuration name
- system ID