|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for EventMessages. Use the methods in this class to submit, display, etc. an EventMessage, after manufacturing it by calling the getEventMessage() method in weblogic.event.common.EventServicesDef, which defines an event services factory.
Here's an example of how this interface is used in the process of submitting an event to the WebLogic Server:
// Create a T3Client T3Client t3 = new T3Client("t3://host:port"); // Manufacture an EventRegistration object for the client EventMessageDef em = t3.services.events() .getEventMessage("STOCKS", params); // Submit the event with methods from this class String confirmation = em.submit();
T3ServicesDef
,
EventServicesDef
Method Summary | |
java.lang.String |
display()
Displays a human-readable representation of an EventMessage. |
java.lang.String |
dump()
Displays a representation of an EventMessage. |
java.lang.Object |
getObject()
Returns the message body |
ParamSet |
getParameters()
Returns the parameters associated with an EventMessage. |
EventRegistrationDef |
getRegistration()
Returns the EventRegistration associated with an EventMessage. |
java.lang.String |
getTopic()
Returns the Topic associated with an EventMessage. |
boolean |
getTracing()
Determines whether tracing has been enabled for an EventMessage. |
void |
setObject(java.lang.Object body)
|
boolean |
setParameters(ParamSet params)
Sets the parameters associated with this event message. |
void |
setTracing(boolean enable)
Turns on tracing for this EventMessage. |
java.lang.String |
submit()
Submits an EventMessage to the event server. |
Method Detail |
public java.lang.String submit() throws EventGenerationException
public java.lang.String dump()
public java.lang.String display()
public ParamSet getParameters()
public boolean setParameters(ParamSet params)
params
- ParamSet associated with Eventpublic void setObject(java.lang.Object body)
public java.lang.Object getObject()
public java.lang.String getTopic()
public EventRegistrationDef getRegistration()
public void setTracing(boolean enable)
enable
- Set to true to turn on tracingpublic boolean getTracing()
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |