org.apache.catalina.cluster.session
Class SessionIDMessage

java.lang.Object
  extended byorg.apache.catalina.cluster.session.SessionIDMessage
All Implemented Interfaces:
ClusterMessage, java.io.Serializable

public class SessionIDMessage
extends java.lang.Object
implements ClusterMessage

Session id change cluster message

Author:
Peter Roßbach
See Also:
Serialized Form

Constructor Summary
SessionIDMessage()
           
 
Method Summary
 Member getAddress()
          Get the address that this message originated from.
 java.lang.String getBackupSessionID()
           
 java.lang.String getContextPath()
           
 int getMessageNumber()
           
 java.lang.String getOrignalSessionID()
           
 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 address)
          Called by the cluster before sending it to the other nodes
 void setBackupSessionID(java.lang.String backupSessionID)
           
 void setContextPath(java.lang.String contextPath)
           
 void setMessageNumber(int messageNumber)
           
 void setOrignalSessionID(java.lang.String orignalSessionID)
           
 void setTimestamp(long timestamp)
          Called by the cluster before sending out the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionIDMessage

public SessionIDMessage()
Method Detail

getAddress

public Member getAddress()
Description copied from interface: ClusterMessage
Get the address that this message originated from. This would be set if the message was being relayed from a host other than the one that originally sent it.

Specified by:
getAddress in interface ClusterMessage

setAddress

public void setAddress(Member address)
Description copied from interface: ClusterMessage
Called by the cluster before sending it to the other nodes

Specified by:
setAddress in interface ClusterMessage
Parameters:
address - Member

getUniqueId

public java.lang.String getUniqueId()
Description copied from interface: ClusterMessage
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

Specified by:
getUniqueId in interface ClusterMessage
Returns:
String

getContextPath

public java.lang.String getContextPath()
Returns:
Returns the contextPath.

setContextPath

public void setContextPath(java.lang.String contextPath)
Parameters:
contextPath - The contextPath to set.

getMessageNumber

public int getMessageNumber()
Returns:
Returns the messageNumber.

setMessageNumber

public void setMessageNumber(int messageNumber)
Parameters:
messageNumber - The messageNumber to set.

getTimestamp

public long getTimestamp()
Description copied from interface: ClusterMessage
Timestamp message

Specified by:
getTimestamp in interface ClusterMessage
Returns:
Returns the timestamp.

setTimestamp

public void setTimestamp(long timestamp)
Description copied from interface: ClusterMessage
Called by the cluster before sending out the message

Specified by:
setTimestamp in interface ClusterMessage
Parameters:
timestamp - The timestamp to set.

getBackupSessionID

public java.lang.String getBackupSessionID()
Returns:
Returns the backupSessionID.

setBackupSessionID

public void setBackupSessionID(java.lang.String backupSessionID)
Parameters:
backupSessionID - The backupSessionID to set.

getOrignalSessionID

public java.lang.String getOrignalSessionID()
Returns:
Returns the orignalSessionID.

setOrignalSessionID

public void setOrignalSessionID(java.lang.String orignalSessionID)
Parameters:
orignalSessionID - The orignalSessionID to set.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.