org.apache.catalina.cluster.deploy
Class UndeployMessage

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

public class UndeployMessage
extends java.lang.Object
implements ClusterMessage, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.catalina.cluster.ClusterMessage
FLAG_ALLOWED, FLAG_DEFAULT, FLAG_FORBIDDEN
 
Constructor Summary
UndeployMessage()
           
UndeployMessage(Member address, long timestamp, java.lang.String uniqueId, java.lang.String contextPath, boolean undeploy)
           
 
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 getContextPath()
           
 int getResend()
          Each message can made the desicion that resend is allowed or not or handle by default.
 long getTimestamp()
          Timestamp message.
 boolean getUndeploy()
           
 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 setCompress(int compress)
          set desicion that compress is allowed or not or handle by default.
 void setContextPath(java.lang.String contextPath)
           
 void setResend(int resend)
          set desicion that resend is allowed or not or handle by default.
 void setTimestamp(long timestamp)
          Called by the cluster before sending out the message.
 void setUndeploy(boolean undeploy)
           
 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

UndeployMessage

public UndeployMessage()

UndeployMessage

public UndeployMessage(Member address,
                       long timestamp,
                       java.lang.String uniqueId,
                       java.lang.String contextPath,
                       boolean undeploy)
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

getTimestamp

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

Specified by:
getTimestamp in interface ClusterMessage
Returns:
long

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

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

setUniqueId

public void setUniqueId(java.lang.String uniqueId)

getContextPath

public java.lang.String getContextPath()

setContextPath

public void setContextPath(java.lang.String contextPath)

getUndeploy

public boolean getUndeploy()

setUndeploy

public void setUndeploy(boolean undeploy)

getCompress

public int getCompress()
Description copied from interface: ClusterMessage
Each message can made the desicion that compress is allowed or not or handle by default.

Specified by:
getCompress in interface ClusterMessage
Returns:
Returns the compress.
Since:
5.5.10

setCompress

public void setCompress(int compress)
Description copied from interface: ClusterMessage
set desicion that compress is allowed or not or handle by default.

Specified by:
setCompress in interface ClusterMessage
Parameters:
compress - The compress to set.
Since:
5.5.10

getResend

public int getResend()
Description copied from interface: ClusterMessage
Each message can made the desicion that resend is allowed or not or handle by default.

Specified by:
getResend in interface ClusterMessage
Returns:
Returns the resend.
Since:
5.5.10

setResend

public void setResend(int resend)
Description copied from interface: ClusterMessage
set desicion that resend is allowed or not or handle by default.

Specified by:
setResend in interface ClusterMessage
Parameters:
resend - The resend to set.
Since:
5.5.10


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