bea.jolt.beans
Class JoltUserEventBean

java.lang.Object
  bea.jolt.beans.JoltUserEventBean
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable

public class JoltUserEventBean
extends java.lang.Object
implements java.io.Serializable, java.beans.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.

See Also:
Serialized Form

Constructor Summary
JoltUserEventBean()
          Constructor
 
Method Summary
 java.lang.String getEventName()
          Get the regular expression this bean represents.
 java.lang.String getFilter()
          Get the event filter.
 JoltSessionBean getSession()
          Get the JoltSessionBean object used by this JoltUserEventBean
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Event handler for PropertyChange events.
 void setEventName(java.lang.String name)
          Set the regular expression of the user event this bean represents.
 void setFilter(java.lang.String filter)
          Set the event filter.
 void setSession(JoltSessionBean value)
          This method is used in cases when the JoltUserEventBean is created after the logon event.
 void subscribe()
          Subscribe
 void unsubscribe()
          Unsubscribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoltUserEventBean

public JoltUserEventBean()
Constructor

Method Detail

propertyChange

public void propertyChange(java.beans.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: 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.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - The event object.

setEventName

public void setEventName(java.lang.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 java.lang.String getEventName()
Get the regular expression this bean represents.

Returns:
Regular expression.

setFilter

public void setFilter(java.lang.String filter)
Set the event filter.

Parameters:
filter - The event filter.

getFilter

public java.lang.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

Throws:
EventException
SessionException
JoltException

subscribe

public void subscribe()
               throws EventException,
                      SessionException,
                      JoltException
Subscribe

Throws:
EventException
SessionException
JoltException