Package org.apache.catalina.ha.deploy
Class UndeployMessage
- java.lang.Object
-
- org.apache.catalina.ha.deploy.UndeployMessage
-
- All Implemented Interfaces:
java.io.Serializable,ClusterMessage
public class UndeployMessage extends java.lang.Object implements ClusterMessage
Cluster message that indicates an application has been undeployed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UndeployMessage(Member address, long timestamp, java.lang.String uniqueId, java.lang.String contextName)Creates a new UndeployMessage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MembergetAddress()Returns the member associated with this message.java.lang.StringgetContextName()Returns the name of the context being undeployed.longgetTimestamp()Returns the timestamp of this message.java.lang.StringgetUniqueId()Returns the unique identifier for this message.voidsetAddress(Member address)Set the member associated with the message.voidsetTimestamp(long timestamp)Set the timestamp for this message.
-
-
-
Constructor Detail
-
UndeployMessage
public UndeployMessage(Member address, long timestamp, java.lang.String uniqueId, java.lang.String contextName)
Creates a new UndeployMessage.- Parameters:
address- the sender addresstimestamp- the message timestampuniqueId- the unique message identifiercontextName- the context being undeployed
-
-
Method Detail
-
getAddress
public Member getAddress()
Description copied from interface:ClusterMessageReturns the member associated with this message.- Specified by:
getAddressin interfaceClusterMessage- Returns:
- the member address
-
setAddress
public void setAddress(Member address)
Description copied from interface:ClusterMessageSet the member associated with the message.- Specified by:
setAddressin interfaceClusterMessage- Parameters:
address- the member
-
getTimestamp
public long getTimestamp()
Description copied from interface:ClusterMessageReturns the timestamp of this message.- Specified by:
getTimestampin interfaceClusterMessage- Returns:
- the timestamp in milliseconds
-
setTimestamp
public void setTimestamp(long timestamp)
Description copied from interface:ClusterMessageSet the timestamp for this message.- Specified by:
setTimestampin interfaceClusterMessage- Parameters:
timestamp- the timestamp
-
getUniqueId
public java.lang.String getUniqueId()
Description copied from interface:ClusterMessageReturns the unique identifier for this message.- Specified by:
getUniqueIdin interfaceClusterMessage- Returns:
- the unique ID
-
getContextName
public java.lang.String getContextName()
Returns the name of the context being undeployed.- Returns:
- the context name
-
-