js.ea
Class JSSystemEventConsumer
java.lang.Object
js.ea.JSEventConsumer
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
|
Constructor Summary |
JSSystemEventConsumer(java.lang.Object dest,
int sourceType,
java.lang.String methodName,
JSConstraints constr,
int constrCondition)
Creates a new JSSystemEventConsumer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 occursconstr - the constraints that will be compared to the system properties if this is a system eventconstrCondition - 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