edu.cmu.cs.able.probebus.siena
Class SienaSensedProbeEvent
java.lang.Object
|
+--edu.cmu.cs.able.probebus.siena.SienaProbeEvent
|
+--edu.cmu.cs.able.probebus.siena.SienaSensedProbeEvent
- All Implemented Interfaces:
- IProbeEvent, ISienaProbeEvent
- Direct Known Subclasses:
- SienaBandwidthProbeEvent, SienaLatencyProbeEvent, SienaRequestQueueProbeEvent
- public abstract class SienaSensedProbeEvent
- extends SienaProbeEvent
SienaSensedProbeEvent
This is an abstract event that encapsulates the commonality between
the three sensed events.
Here is the format of the message:
1. Sensor-specific (like Latency, Bandwidth, or ReqQueue)
2. ProbeConfigurationName="LatencyConfig"
3. SystemID="Client2"
4. Event="an xml string"
5. Hostname="gs01.isri.cs.cmu.edu"
6. MethodName="processResponse(java.lang.StringBuffer)"
7. ProbeInfrastructureEventType="Sensed"
8. ProbedClass="runtime.client.ClientThread"
9. ProbedObject="runtime.client.ClientThread"
10. className="runtime.client.ClientThread"
11. threadId="ClientThread"
Method Summary |
protected void |
setCommonNotificationFields(siena.Notification n)
|
siena.Notification |
toNotification()
Converts this event to a Siena Notification
In the current imlementation, this method is not called by probes
However, it is needed for test case generation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROBE_CONFIGURATION_NAME_KEY
public static final java.lang.String PROBE_CONFIGURATION_NAME_KEY
- Notification will have ProbeConfigurationName="LatencyConfig"
SYSTEM_ID_KEY
public static final java.lang.String SYSTEM_ID_KEY
- Notification will have SystemID="Client2"
EVENT_KEY
public static final java.lang.String EVENT_KEY
- Notification will have Event="an xml string"
eventValue
protected java.lang.String eventValue
HOSTNAME_KEY
public static final java.lang.String HOSTNAME_KEY
- Notification will have Hostname="gs01.isri.cs.cmu.edu"
hostnameValue
protected java.lang.String hostnameValue
METHOD_NAME_KEY
public static final java.lang.String METHOD_NAME_KEY
- Notification will have MethodName="processResponse(java.lang.StringBuffer)"
methodNameValue
protected java.lang.String methodNameValue
PI_EVENT_TYPE_KEY
public static final java.lang.String PI_EVENT_TYPE_KEY
- Notification will have ProbeInfrastructureEventType="Sensed"
piEventTypeValue
protected java.lang.String piEventTypeValue
PROBED_CLASS_KEY
public static final java.lang.String PROBED_CLASS_KEY
- Notification will have ProbedClass="runtime.client.ClientThread"
probedClassValue
protected java.lang.String probedClassValue
PROBED_OBJECT_KEY
public static final java.lang.String PROBED_OBJECT_KEY
- Notification will have ProbedObject="runtime.client.ClientThread"
probedObjectValue
protected java.lang.String probedObjectValue
CLASS_NAME_KEY
public static final java.lang.String CLASS_NAME_KEY
- Notification will have className="runtime.client.ClientThread"
classNameValue
protected java.lang.String classNameValue
THREAD_ID_KEY
public static final java.lang.String THREAD_ID_KEY
- Notification will have threadId="ClientThread"
threadIdValue
protected java.lang.String threadIdValue
SienaSensedProbeEvent
public SienaSensedProbeEvent(SienaProbeBus pb)
- Constructor for SienaLatencyProbeEvent
toNotification
public siena.Notification toNotification()
- Converts this event to a Siena Notification
In the current imlementation, this method is not called by probes
However, it is needed for test case generation
- Overrides:
toNotification
in class SienaProbeEvent
- Following copied from class:
edu.cmu.cs.able.probebus.siena.SienaProbeEvent
- Returns:
- this object represented as a Siena Notification
setCommonNotificationFields
protected void setCommonNotificationFields(siena.Notification n)