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

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

public class SienaRequestQueueProbeEvent
extends SienaSensedProbeEvent

SienaRequestQueueProbeEvent This event is sent by a probe with the intent of initiating informing consumers of a change in the requestQueue. Here is the format of the message: 1. QueueSize="4" 2. ProbeConfigurationName="RequestQueueConfig" 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"


Field Summary
protected  RequestQueueProbeEvent myProbeEvent
          The generic event associated with this Siena-specific event
static java.lang.String PROBE_CONFIGURATION_NAME_KEY
          Notification will have ProbeConfigurationName="ReqQueueConfig"
static java.lang.String REQUEST_QUEUE_KEY
          Notification will have RequestQueue="3"
static java.lang.String SYSTEM_ID_KEY
          Notification will have SystemID="Client2"
 
Fields inherited from class edu.cmu.cs.able.probebus.siena.SienaSensedProbeEvent
CLASS_NAME_KEY, classNameValue, EVENT_KEY, eventValue, HOSTNAME_KEY, hostnameValue, METHOD_NAME_KEY, methodNameValue, PI_EVENT_TYPE_KEY, piEventTypeValue, PROBED_CLASS_KEY, PROBED_OBJECT_KEY, probedClassValue, probedObjectValue, THREAD_ID_KEY, threadIdValue
 
Fields inherited from class edu.cmu.cs.able.probebus.siena.SienaProbeEvent
theProbeBus
 
Constructor Summary
SienaRequestQueueProbeEvent(siena.Notification n)
          Constructor for SienaRequestQueueProbeEvent( Notification ) Converts from a Notification to a SienaRequestQueueProbeEvent
SienaRequestQueueProbeEvent(SienaProbeBus pb, java.lang.String requestQueue, java.lang.String probeConfigurationName, java.lang.String systemID)
          Constructor for SienaRequestQueueProbeEvent
 
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 - system id
 boolean equals(IProbeEvent e)
          Equality testing important for writing test cases!
 RequestQueueProbeEvent getProbeEvent()
           
 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 edu.cmu.cs.able.probebus.siena.SienaSensedProbeEvent
setCommonNotificationFields
 
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 RequestQueueProbeEvent myProbeEvent
The generic event associated with this Siena-specific event

REQUEST_QUEUE_KEY

public static final java.lang.String REQUEST_QUEUE_KEY
Notification will have RequestQueue="3"

PROBE_CONFIGURATION_NAME_KEY

public static final java.lang.String PROBE_CONFIGURATION_NAME_KEY
Notification will have ProbeConfigurationName="ReqQueueConfig"

SYSTEM_ID_KEY

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

SienaRequestQueueProbeEvent

public SienaRequestQueueProbeEvent(SienaProbeBus pb,
                                   java.lang.String requestQueue,
                                   java.lang.String probeConfigurationName,
                                   java.lang.String systemID)
Constructor for SienaRequestQueueProbeEvent

SienaRequestQueueProbeEvent

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

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 SienaSensedProbeEvent
Following copied from class: edu.cmu.cs.able.probebus.siena.SienaProbeEvent
Returns:
this object represented as a Siena Notification

getProbeEvent

public RequestQueueProbeEvent getProbeEvent()

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 - system id

equals

public boolean equals(IProbeEvent e)
Equality testing important for writing test cases!