|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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_CHANGE_SESSION_ID, 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 messageMethod Detail |
public int getEventType()
getEventType
in interface SessionMessage
public byte[] getSession()
getSession
in interface SessionMessage
public java.lang.String getSessionID()
getSessionID
in interface SessionMessage
public void setTimestamp(long time)
setTimestamp
in interface ClusterMessage
time
- The timestamppublic long getTimestamp()
ClusterMessage
getTimestamp
in interface ClusterMessage
public java.lang.String getEventTypeString()
getEventTypeString
in interface SessionMessage
public Member getAddress()
getAddress
in interface ClusterMessage
public void setAddress(Member src)
setAddress
in interface ClusterMessage
src
- Memberpublic java.lang.String getContextName()
getContextName
in interface SessionMessage
public java.lang.String getUniqueId()
ClusterMessage
getUniqueId
in interface ClusterMessage
public void setUniqueId(java.lang.String uniqueId)
public int getCompress()
ClusterMessage
getCompress
in interface ClusterMessage
public void setCompress(int compress)
ClusterMessage
setCompress
in interface ClusterMessage
compress
- The compress to set.public int getResend()
ClusterMessage
getResend
in interface ClusterMessage
public void setResend(int resend)
ClusterMessage
setResend
in interface ClusterMessage
resend
- The resend to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |