Save This Page
Home » glassfish-v2ur2-b04-src » org.apache » catalina » cluster » session » [javadoc | source]
org.apache.catalina.cluster.session
public interface: SessionMessage [javadoc | source]

All Implemented Interfaces:
    Serializable, ClusterMessage

All Known Implementing Classes:
    SessionMessageImpl

Class Description:
The SessionMessage class is a class that is used when a session has been created, modified, expired in a Tomcat cluster node.
The following events are currently available:
Field Summary
public static final  int EVT_SESSION_CREATED    Event type used when a session has been created on a node 
public static final  int EVT_SESSION_EXPIRED    Event type used when a session has expired 
public static final  int EVT_SESSION_ACCESSED    Event type used when a session has been accessed (ie, last access time has been updated. This is used so that the replicated sessions will not expire on the network 
public static final  int EVT_GET_ALL_SESSIONS    Event type used when a server comes online for the first time. The first thing the newly started server wants to do is to grab the all the sessions from one of the nodes and keep the same state in there 
public static final  int EVT_SESSION_DELTA    Event type used when an attribute has been added to a session, the attribute will be sent to all the other nodes in the cluster 
public static final  int EVT_ALL_SESSION_DATA    When a session state is transferred, this is the event. 
public static final  int EVT_ALL_SESSION_TRANSFERCOMPLETE    When a session state is complete transferred, this is the event. 
Method from org.apache.catalina.cluster.session.SessionMessage Summary:
getContextName,   getEventType,   getEventTypeString,   getSession,   getSessionID
Method from org.apache.catalina.cluster.session.SessionMessage Detail:
 public String getContextName()
 public int getEventType()
    returns the event type
 public String getEventTypeString()
 public byte[] getSession()
 public String getSessionID()