public class CarbonTomcatSessionMessage
extends org.apache.axis2.clustering.ClusteringMessage
implements org.apache.catalina.ha.session.SessionMessage
Modifier and Type | Field and Description |
---|---|
protected org.apache.catalina.tribes.Member |
address |
Constructor and Description |
---|
CarbonTomcatSessionMessage() |
CarbonTomcatSessionMessage(String contextName,
int eventtype,
byte[] session,
String sessionID,
String uniqueID)
Creates a session message.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(org.apache.axis2.context.ConfigurationContext configContext) |
org.apache.catalina.tribes.Member |
getAddress() |
String |
getContextName() |
int |
getEventType()
returns the event type
|
String |
getEventTypeString()
clear text event type name (for logging purpose only)
|
org.apache.axis2.clustering.ClusteringCommand |
getResponse() |
byte[] |
getSession() |
String |
getSessionID() |
long |
getTimestamp() |
String |
getUniqueId() |
void |
setAddress(org.apache.catalina.tribes.Member member) |
void |
setTimestamp(long time)
set message send time but only the first setting works (one shot)
|
void |
setUniqueId(String uniqueId) |
String |
toString() |
public CarbonTomcatSessionMessage()
public CarbonTomcatSessionMessage(String contextName, int eventtype, byte[] session, String sessionID, 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 messagepublic int getEventType()
getEventType
in interface org.apache.catalina.ha.session.SessionMessage
public byte[] getSession()
getSession
in interface org.apache.catalina.ha.session.SessionMessage
public String getSessionID()
getSessionID
in interface org.apache.catalina.ha.session.SessionMessage
public void setTimestamp(long time)
setTimestamp
in interface org.apache.catalina.ha.ClusterMessage
public long getTimestamp()
getTimestamp
in interface org.apache.catalina.ha.ClusterMessage
getTimestamp
in class org.apache.axis2.clustering.ClusteringMessage
public String getEventTypeString()
getEventTypeString
in interface org.apache.catalina.ha.session.SessionMessage
public String getContextName()
getContextName
in interface org.apache.catalina.ha.session.SessionMessage
public org.apache.catalina.tribes.Member getAddress()
getAddress
in interface org.apache.catalina.ha.ClusterMessage
public void setAddress(org.apache.catalina.tribes.Member member)
setAddress
in interface org.apache.catalina.ha.ClusterMessage
public String getUniqueId()
getUniqueId
in interface org.apache.catalina.ha.ClusterMessage
public void setUniqueId(String uniqueId)
setUniqueId
in interface org.apache.catalina.ha.ClusterMessage
public org.apache.axis2.clustering.ClusteringCommand getResponse()
getResponse
in class org.apache.axis2.clustering.ClusteringMessage
public void execute(org.apache.axis2.context.ConfigurationContext configContext) throws org.apache.axis2.clustering.ClusteringFault
execute
in class org.apache.axis2.clustering.ClusteringCommand
org.apache.axis2.clustering.ClusteringFault
Copyright © 2016 WSO2 Inc. All rights reserved.