cgl.narada.service.qos
Interface QosEvent

All Known Implementing Classes:
QosEventImpl

public interface QosEvent

The QosEvent which plays an important role in


Method Summary
 void addConsumerConstraints(ConsumerConstraints _consumerConstraints)
          Add consumer constraints associated with this event.
 EventID getEventId()
          Returns the event id associated with the encapsulated event
 NBEvent getNBEvent()
          Returns the encapsulated event
 int getNumberofConsumerConstraints()
          Returns the number of pending consumer constraints
 ConsumerConstraints[] getPendingConsumerConstraints()
          Get the pending consumer constraints
 ProducerConstraints getProducerConstraints()
          Return the producer constraints
 QosIdentifiers getQosIdentifiers()
          Indicates the current processing state of this event
 ConsumerConstraints getSatisfiedConsumerConstraints()
          If there are any consumer constraints that have been satisfied, based on the QosIdentifiers associated with this event -- that constraint will be returned.
 int getServiceToBeRoutedTo()
          This method returns the service which the event must be routed to for further processing.
 boolean hasConsumerConstraints()
          Indicates if there are any consumer constraints that were specified
 boolean hasMultipleConsumerConstraints()
          Indicates if the event had multiple consumer constraints that were specified
 boolean hasProducerConstraints()
          Indicates if there are any producer constraints that were specified
 

Method Detail

getEventId

EventID getEventId()
Returns the event id associated with the encapsulated event


getNBEvent

NBEvent getNBEvent()
Returns the encapsulated event


hasProducerConstraints

boolean hasProducerConstraints()
Indicates if there are any producer constraints that were specified


getProducerConstraints

ProducerConstraints getProducerConstraints()
Return the producer constraints


getPendingConsumerConstraints

ConsumerConstraints[] getPendingConsumerConstraints()
Get the pending consumer constraints


hasConsumerConstraints

boolean hasConsumerConstraints()
Indicates if there are any consumer constraints that were specified


getNumberofConsumerConstraints

int getNumberofConsumerConstraints()
Returns the number of pending consumer constraints


hasMultipleConsumerConstraints

boolean hasMultipleConsumerConstraints()
Indicates if the event had multiple consumer constraints that were specified


addConsumerConstraints

void addConsumerConstraints(ConsumerConstraints _consumerConstraints)
Add consumer constraints associated with this event. This method can be called repeatedly to add more than 1 registered consumer constraints from matching consumers.


getSatisfiedConsumerConstraints

ConsumerConstraints getSatisfiedConsumerConstraints()
If there are any consumer constraints that have been satisfied, based on the QosIdentifiers associated with this event -- that constraint will be returned.
The method will return a NULL under the following conditions (a) If no consumer constraints have been satisfied OR (b) If all constraints have been satisfied OR (c) If no consumer constraints were specified


getQosIdentifiers

QosIdentifiers getQosIdentifiers()
Indicates the current processing state of this event


getServiceToBeRoutedTo

int getServiceToBeRoutedTo()
This method returns the service which the event must be routed to for further processing. If this returns 0, no further processing is required. A 0 indicates that no service was found for special processing, and that the event is ready to be released (either to the application or to the communications stream )



For comments and suggestions please send e-mail to The NaradaBrokering Project
tions please send e-mail to The NaradaBrokering Project
rids.ucs.indiana.edu> The NaradaBrokering Project