FileDocCategorySizeDatePackage
SessionIDMessage.javaAPI DocApache Tomcat 6.0.143417Fri Jul 20 04:20:36 BST 2007org.apache.catalina.ha.session

SessionIDMessage

public class SessionIDMessage extends org.apache.catalina.ha.ClusterMessageBase implements org.apache.catalina.ha.ClusterMessage
Session id change cluster message
author
Peter Rossbach
version
$Revision: 531471 $ $Date: 2007-04-23 16:11:44 +0200 (lun., 23 avr. 2007) $

Fields Summary
private int
messageNumber
private String
orignalSessionID
private String
backupSessionID
private String
host
private String
contextPath
Constructors Summary
Methods Summary
public java.lang.StringgetBackupSessionID()

return
Returns the backupSessionID.

		return backupSessionID;
	
public java.lang.StringgetContextPath()

return
Returns the contextPath.

		return contextPath;
	
public java.lang.StringgetHost()

return
Returns the host.

        return host;
    
public intgetMessageNumber()

return
Returns the messageNumber.

		return messageNumber;
	
public java.lang.StringgetOrignalSessionID()

return
Returns the orignalSessionID.

		return orignalSessionID;
	
public java.lang.StringgetUniqueId()

		StringBuffer result = new StringBuffer(getOrignalSessionID());
		result.append("#-#");
		result.append(getHost());
                result.append("#-#");
                result.append(getContextPath());
		result.append("#-#");
		result.append(getMessageNumber());
		result.append("#-#");
		result.append(System.currentTimeMillis());
		return result.toString();
	
public voidsetBackupSessionID(java.lang.String backupSessionID)

param
backupSessionID The backupSessionID to set.

		this.backupSessionID = backupSessionID;
	
public voidsetContextPath(java.lang.String contextPath)

param
contextPath The contextPath to set.

		this.contextPath = contextPath;
	
public voidsetHost(java.lang.String host)

param
host The host to set.

        this.host = host;
    
public voidsetMessageNumber(int messageNumber)

param
messageNumber The messageNumber to set.

		this.messageNumber = messageNumber;
	
public voidsetOrignalSessionID(java.lang.String orignalSessionID)

param
orignalSessionID The orignalSessionID to set.

		this.orignalSessionID = orignalSessionID;
	
public java.lang.StringtoString()

	    return "SESSIONID-UPDATE#" + getHost() + "." + getContextPath() + "#" + getOrignalSessionID() + ":" + getBackupSessionID();