| java.lang.Object org.apache.catalina.ha.ClusterMessageBase org.apache.catalina.ha.session.SessionMessageImpl
SessionMessageImpl | public SessionMessageImpl()(Code) | | |
SessionMessageImpl | public SessionMessageImpl(String contextName, int eventtype, byte[] session, String sessionID, String uniqueID)(Code) | | Creates a session message. Depending on what event type you want this
message to represent, you populate the different parameters in the constructor
The following rules apply dependent on what event type argument you use:
EVT_SESSION_CREATED
The parameters: session, sessionID must be set.
EVT_SESSION_EXPIRED
The parameters: sessionID must be set.
EVT_SESSION_ACCESSED
The parameters: sessionID must be set.
EVT_SESSION_EXPIRED_XXXX
The parameters: sessionID must be set.
EVT_SESSION_DELTA
Send attribute delta (add,update,remove attribute or principal, ...).
EVT_ALL_SESSION_DATA
Send complete serializes session list
EVT_ALL_SESSION_TRANSFERCOMPLETE
send that all session state information are transfered
after GET_ALL_SESSION received from this sender.
Parameters: contextName - - the name of the context (application Parameters: eventtype - - one of the 8 event type defined in this class Parameters: session - - the serialized byte array of the session itself Parameters: sessionID - - the id that identifies this session Parameters: uniqueID - - the id that identifies this message |
getEventType | public int getEventType()(Code) | | returns the event type
one of the event types EVT_XXXX |
getEventTypeString | public String getEventTypeString()(Code) | | clear text event type name (for logging purpose only)
the event type in a string representating, useful for debugging |
getSession | public byte[] getSession()(Code) | | the serialized data for the session |
getSessionID | public String getSessionID()(Code) | | the session ID for the session |
getTimestamp | public long getTimestamp()(Code) | | |
setTimestamp | public void setTimestamp(long time)(Code) | | set message send time but only the first setting works (one shot)
|
Fields inherited from org.apache.catalina.ha.ClusterMessageBase | protected transient Member address(Code)(Java Doc)
|
|
|