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)
Deprecated.
|
CarbonTomcatSessionMessage(String contextName,
int eventtype,
byte[] session,
String sessionID,
String uniqueID,
int tenantId) |
Modifier and Type | Method and Description |
---|---|
void |
execute(org.apache.axis2.context.ConfigurationContext mainConfigContext) |
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 |
setTenantId(int tenantId) |
void |
setTimestamp(long time)
set message send time but only the first setting works (one shot)
|
String |
toString() |
public CarbonTomcatSessionMessage()
public CarbonTomcatSessionMessage(String contextName, int eventtype, byte[] session, String sessionID, String uniqueID, int tenantId)
@Deprecated 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 org.apache.axis2.clustering.ClusteringCommand getResponse()
getResponse
in class org.apache.axis2.clustering.ClusteringMessage
public void setTenantId(int tenantId)
public void execute(org.apache.axis2.context.ConfigurationContext mainConfigContext) throws org.apache.axis2.clustering.ClusteringFault
execute
in class org.apache.axis2.clustering.ClusteringCommand
org.apache.axis2.clustering.ClusteringFault
Copyright © 2022 WSO2. All rights reserved.