All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.beans.JoltUserEventBean
java.lang.Object
|
+----bea.jolt.beans.JoltUserEventBean
- public class JoltUserEventBean
- extends Object
- implements Serializable, PropertyChangeListener
The JoltUserEventBean provides access to TUXEDO events.
The TUXEDO event to be subscribed to is defined by setting the
appropriate parameters of this bean. Methods for starting and stopping
the subscription are provided.
-
JoltUserEventBean()
- Constructor
-
getEventName()
- Get the regular expression this bean represents.
-
getFilter()
- Get the event filter.
-
getSession()
- Get the JoltSessionBean object used by this JoltUserEventBean
-
propertyChange(PropertyChangeEvent)
- Event handler for PropertyChange events.
-
setEventName(String)
- Set the regular expression of the user event this bean represents.
-
setFilter(String)
- Set the event filter.
-
setSession(JoltSessionBean)
- This method is used in cases when the JoltUserEventBean is created
after the logon event.
-
subscribe()
- Subscribe
-
unsubscribe()
- Unsubscribe
JoltUserEventBean
public JoltUserEventBean()
- Constructor
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Event handler for PropertyChange events. In this case the
JoltSessionBean will notify the JoltUserEventBean when it
logs on and off by raising a PropertyChangeEvent about its
"LoggedOn" property. This method should not be called directly.
Note that a logoff of a session other than the current session
will not affect the JoltUserEventBean, but a logon of a
session other than the current session will change the session.
- Parameters:
- evt - The event object.
setEventName
public void setEventName(String name)
- Set the regular expression of the user event this bean represents.
- Parameters:
- name - The regular expression of the user event, the equivalent
of the "expr" parameter of TPSUBSCRIBE.
getEventName
public String getEventName()
- Get the regular expression this bean represents.
- Returns:
- Regular expression.
setFilter
public void setFilter(String filter)
- Set the event filter.
- Parameters:
- filter - The event filter.
getFilter
public String getFilter()
- Get the event filter.
- Returns:
- Regular expression.
setSession
public void setSession(JoltSessionBean value)
- This method is used in cases when the JoltUserEventBean is created
after the logon event. Otherwise the JoltUserEventBean gets access
to a TUXEDO client session by listening to propertyChangeEvent.
- Parameters:
- value - The JoltSessionBean.
getSession
public JoltSessionBean getSession()
- Get the JoltSessionBean object used by this JoltUserEventBean
- Returns:
- JoltSessionBean object.
unsubscribe
public void unsubscribe() throws EventException, SessionException, JoltException
- Unsubscribe
subscribe
public void subscribe() throws EventException, SessionException, JoltException
- Subscribe
All Packages Class Hierarchy This Package Previous Next Index