|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.cluster.session.SessionMessageImpl
Session cluster message
| Field Summary |
| Fields inherited from interface org.apache.catalina.cluster.session.SessionMessage |
EVT_ALL_SESSION_DATA, EVT_ALL_SESSION_TRANSFERCOMPLETE, EVT_GET_ALL_SESSIONS, EVT_SESSION_ACCESSED, EVT_SESSION_CREATED, EVT_SESSION_DELTA, EVT_SESSION_EXPIRED |
| Fields inherited from interface org.apache.catalina.cluster.ClusterMessage |
FLAG_ALLOWED, FLAG_DEFAULT, FLAG_FORBIDDEN |
| Constructor Summary | |
SessionMessageImpl()
|
|
SessionMessageImpl(java.lang.String contextName,
int eventtype,
byte[] session,
java.lang.String sessionID,
java.lang.String uniqueID)
Creates a session message. |
|
| Method Summary | |
Member |
getAddress()
Get the address that this message originated from. |
int |
getCompress()
Each message can made the desicion that compress is allowed or not or handle by default. |
java.lang.String |
getContextName()
|
int |
getEventType()
returns the event type |
java.lang.String |
getEventTypeString()
clear text event type name (for logging purpose only) |
int |
getResend()
Each message can made the desicion that resend is allowed or not or handle by default. |
byte[] |
getSession()
|
java.lang.String |
getSessionID()
|
long |
getTimestamp()
Timestamp message. |
java.lang.String |
getUniqueId()
Each message must have a unique ID, in case of using async replication, and a smart queue, this id is used to replace messages not yet sent. |
void |
setAddress(Member src)
Use this method to set the address that this message originated from. |
void |
setCompress(int compress)
set desicion that compress is allowed or not or handle by default. |
void |
setResend(int resend)
set desicion that resend is allowed or not or handle by default. |
void |
setTimestamp(long time)
set message send time but only the first setting works (one shot) |
void |
setUniqueId(java.lang.String uniqueId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SessionMessageImpl()
public SessionMessageImpl(java.lang.String contextName,
int eventtype,
byte[] session,
java.lang.String sessionID,
java.lang.String uniqueID)
contextName - - the name of the context (applicationeventtype - - one of the 8 event type defined in this classsession - - the serialized byte array of the session itselfsessionID - - the id that identifies this sessionuniqueID - - the id that identifies this message| Method Detail |
public int getEventType()
getEventType in interface SessionMessagepublic byte[] getSession()
getSession in interface SessionMessagepublic java.lang.String getSessionID()
getSessionID in interface SessionMessagepublic void setTimestamp(long time)
setTimestamp in interface ClusterMessagetime - The timestamppublic long getTimestamp()
ClusterMessage
getTimestamp in interface ClusterMessagepublic java.lang.String getEventTypeString()
getEventTypeString in interface SessionMessagepublic Member getAddress()
getAddress in interface ClusterMessagepublic void setAddress(Member src)
setAddress in interface ClusterMessagesrc - Memberpublic java.lang.String getContextName()
getContextName in interface SessionMessagepublic java.lang.String getUniqueId()
ClusterMessage
getUniqueId in interface ClusterMessagepublic void setUniqueId(java.lang.String uniqueId)
public int getCompress()
ClusterMessage
getCompress in interface ClusterMessagepublic void setCompress(int compress)
ClusterMessage
setCompress in interface ClusterMessagecompress - The compress to set.public int getResend()
ClusterMessage
getResend in interface ClusterMessagepublic void setResend(int resend)
ClusterMessage
setResend in interface ClusterMessageresend - The resend to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||