js.ea
Class JSSystemEventConsumer

java.lang.Object
  extended by js.ea.JSEventConsumer
      extended by js.ea.JSSystemEventConsumer
All Implemented Interfaces:
java.io.Serializable

public class JSSystemEventConsumer
extends JSEventConsumer

Used to create a consumer that wants to receive notification about specific events. A system event consumer has to specifiy constraints and a condition (#constrCondition). When a system event is produced the EventAgent will check if there are registered consumers and if the condition is met.

Author:
Johannes Testori
See Also:
Serialized Form

Field Summary
 
Fields inherited from class js.ea.JSEventConsumer
event
 
Constructor Summary
JSSystemEventConsumer(java.lang.Object dest, int sourceType, java.lang.String methodName, JSConstraints constr, int constrCondition)
          Creates a new JSSystemEventConsumer.
 
Method Summary
 
Methods inherited from class js.ea.JSEventConsumer
getEvent, initEvent, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSSystemEventConsumer

public JSSystemEventConsumer(java.lang.Object dest,
                             int sourceType,
                             java.lang.String methodName,
                             JSConstraints constr,
                             int constrCondition)
                      throws JSException,
                             java.rmi.RemoteException
Creates a new JSSystemEventConsumer.

Parameters:
dest - object that created the event and will receive the notification (producers can restrict the consumers a produced event will be sent to)
methodName - name of the method that will be invoked on JSConsumerEvent.destination when an event occurs
constr - the constraints that will be compared to the system properties if this is a system event
constrCondition - the condition that has to be met to receive an event when the constraints are compared to the system properties, see #constrCondition
Throws:
JSException
java.rmi.RemoteException