|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines an event service factory. Use this interface to manufacture objects for WebLogic Events. The event service factory methods take the place of constructors for objects that are used by WebLogic Events.
Here's an example of how this interface is used in the process of registering interest in an event:
// Create a T3Client T3Client t3 = new T3Client("t3://host:port"); // Manufacture an EventRegistration object for the client EventRegistrationDef er = t3.services.events() .getEventRegistration( "STOCKS", new Evaluate("examples.event.stocks.EvaluateStocks", evRegParams), new Action ("examples.event.stocks.MailStockInfo", acRegParams)); // Do the registration with methods from the object's class int regid = er.register();
T3ServicesDef
,
EventRegistrationDef
,
EventMessageDef
Method Summary | |
EventMessageDef |
getEventMessage(java.lang.String topic,
java.lang.Object params)
Gets a new EventMessage object from the event services factory with the specified topic and ParamSet. |
EventMessageDef |
getEventMessage(java.lang.String topic,
ParamSet params)
Gets a new EventMessage object from the event services factory with the specified topic and ParamSet. |
EventRegistrationDef |
getEventRegistration(java.lang.String topic,
Evaluate evaluate,
Action action)
Gets a new EventRegistration object from the event services factory with the specified topic, Evaluate, and Action classes. |
EventRegistrationDef |
getEventRegistration(java.lang.String topic,
Evaluate evaluator,
Action action,
boolean ownThread,
boolean sink,
boolean phase,
int count)
Deprecated. ownThread parameter no longer supported |
EventRegistrationDef |
getEventRegistration(java.lang.String topic,
Evaluate evaluator,
Action action,
boolean sink,
boolean phase,
int count)
Gets a new EventRegistration object from the event services factory with the specified topic, Evaluate, and Action classes. |
EventTopicDef |
getEventTopic(java.lang.String topic)
Gets a representation of an Event Topic in the Topic tree. |
EventTopicDef |
getEventTopic(java.lang.String topic,
int lifetime)
Gets a representation of an Event Topic in the Topic tree, according to the specified lifetime. |
boolean |
unregister(int regID)
Unregisters the EventRegistration corresponding to the registration ID. |
Method Detail |
public EventMessageDef getEventMessage(java.lang.String topic, java.lang.Object params)
topic
- Topic of the EventMessageparams
- Event message bodypublic EventMessageDef getEventMessage(java.lang.String topic, ParamSet params)
topic
- Topic of the EventMessageparams
- Event message ParamSetpublic EventRegistrationDef getEventRegistration(java.lang.String topic, Evaluate evaluate, Action action) throws EventRegistrationException
topic
- Topic in which to register an interestevaluate
- Evaluate object for the registrationaction
- Action object for the registrationpublic EventRegistrationDef getEventRegistration(java.lang.String topic, Evaluate evaluator, Action action, boolean sink, boolean phase, int count) throws EventRegistrationException
The polarity of the phase argument matches the return of the evaluate() method for an EventRegistration. For example, if the topic is "fogginess" and the registration is interested in a lack of fogginess, the phase should be set to false
topic
- Topic in which to register an interestevaluate
- An Evaluate object that implements
weblogic.event.evaluators.EvaluateDef interfaceaction
- An Action object that implements
weblogic.event.actions.ActionDef interfacesink
- true if the registration should receive
notification of every event in which it has
registered interest, as well as notification
of events in any more specific topicsphase
- true if this registration is interested in
the "true" state of the evaluationcount
- Specifies the number of events that this
registration should receive before
automatically unregistering itself; specify
weblogic.event.common.EventRegistrationDef.UNCOUNTED
for an unlimited registrationpublic EventRegistrationDef getEventRegistration(java.lang.String topic, Evaluate evaluator, Action action, boolean ownThread, boolean sink, boolean phase, int count) throws EventRegistrationException
public EventTopicDef getEventTopic(java.lang.String topic, int lifetime) throws T3Exception
topic
- String representation of Topiclifetime
- Specifies how long this topic will remain
in the topic treepublic EventTopicDef getEventTopic(java.lang.String topic) throws T3Exception
topic
- String representation of Topicpublic boolean unregister(int regID) throws EventRegistrationException
regID
- Registration ID
|
Documentation is available at http://www.weblogic.com/docs51 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |