org.apache.catalina.cluster
Interface ClusterMessage

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
SessionMessage
All Known Implementing Classes:
FileMessage, SessionIDMessage, SessionMessageImpl, UndeployMessage

public interface ClusterMessage
extends java.io.Serializable


Method Summary
 Member getAddress()
          Get the address that this message originated from.
 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 member)
          Called by the cluster before sending it to the other nodes
 void setTimestamp(long timestamp)
          Called by the cluster before sending out the message
 

Method Detail

getAddress

public Member getAddress()
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.


setAddress

public void setAddress(Member member)
Called by the cluster before sending it to the other nodes

Parameters:
member - Member

getTimestamp

public long getTimestamp()
Timestamp message

Returns:
long

setTimestamp

public void setTimestamp(long timestamp)
Called by the cluster before sending out the message

Parameters:
timestamp - long

getUniqueId

public 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

Returns:
String


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