| org.apache.catalina.ha.session.SessionMessage
All known Subclasses: org.apache.catalina.ha.session.SessionMessageImpl,
SessionMessage | public interface SessionMessage extends ClusterMessage,java.io.Serializable(Code) | | 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:
public static final int EVT_SESSION_CREATED -
public static final int EVT_SESSION_ACCESSED -
public static final int EVT_ATTRIBUTE_ADDED -
public static final int EVT_ATTRIBUTE_REMOVED -
public static final int EVT_SESSION_EXPIRED_WONOTIFY -
public static final int EVT_SESSION_EXPIRED_WNOTIFY -
public static final int EVT_GET_ALL_SESSIONS -
public static final int EVT_SET_USER_PRINCIPAL -
public static final int EVT_SET_SESSION_NOTE -
public static final int EVT_REMOVE_SESSION_NOTE -
|
EVT_ALL_SESSION_DATA | final public static int EVT_ALL_SESSION_DATA(Code) | | When a session state is transferred, this is the event.
|
EVT_ALL_SESSION_TRANSFERCOMPLETE | final public static int EVT_ALL_SESSION_TRANSFERCOMPLETE(Code) | | When a session state is complete transferred, this is the event.
|
EVT_GET_ALL_SESSIONS | final public static int EVT_GET_ALL_SESSIONS(Code) | | 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
|
EVT_SESSION_ACCESSED | final public static int EVT_SESSION_ACCESSED(Code) | | 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
|
EVT_SESSION_CREATED | final public static int EVT_SESSION_CREATED(Code) | | Event type used when a session has been created on a node
|
EVT_SESSION_DELTA | final public static int EVT_SESSION_DELTA(Code) | | 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
|
EVT_SESSION_EXPIRED | final public static int EVT_SESSION_EXPIRED(Code) | | Event type used when a session has expired
|
getEventType | public int getEventType()(Code) | | returns the event type
one of the event types EVT_XXXX |
getSession | public byte[] getSession()(Code) | | the serialized data for the session |
getSessionID | public String getSessionID()(Code) | | the session ID for the session |
|
|