| org.apache.catalina.cluster.ClusterSender
All known Subclasses: org.apache.catalina.cluster.MulticastSender,
ClusterSender | public interface ClusterSender (Code) | | This class is responsible for sending outgoing packets to a Cluster.
Different Implementations may use different protocol to
communicate within the Cluster.
author: Bip Thelin version: $Revision: 1.2 $, $Date: 2001/07/22 20:25:06 $ |
Method Summary | |
public int | getDebug() | public Logger | getLogger() | public String | getSenderId() get the senderId used to identify messages being sent in a Cluster. | public void | log(String message) | public void | send(byte[] b) Send an array of bytes, the implementation of this
ClusterSender is responsible for modifying
the bytearray to something that it can use. | public void | send(Object o) Send an object, the implementation of this
ClusterSender is responsible for modifying
the Object to something that it can use. | public void | setDebug(int debug) Set the debug detail level for this component. | public void | setLogger(Logger logger) Set the Logger for this component. | public void | setSenderId(String senderId) The senderId is a identifier used to identify different
packages being sent in a Cluster. |
getDebug | public int getDebug()(Code) | | Get the debug level for this component
The debug level |
getLogger | public Logger getLogger()(Code) | | Get the Logger for this component
The Logger associated with this component. |
getSenderId | public String getSenderId()(Code) | | get the senderId used to identify messages being sent in a Cluster.
The senderId for this ClusterSender |
log | public void log(String message)(Code) | | The log method to use in the implementation
Parameters: message - The message to be logged. |
send | public void send(byte[] b)(Code) | | Send an array of bytes, the implementation of this
ClusterSender is responsible for modifying
the bytearray to something that it can use. Before anything
is sent it is transformed into a ReplicationWrapper object
and the right senderId is set.
Parameters: b - the bytearray to send |
send | public void send(Object o)(Code) | | Send an object, the implementation of this
ClusterSender is responsible for modifying
the Object to something that it can use. Before anything
is sent it is transformed into a ReplicationWrapper object
and the right senderId is set.
Parameters: o - The object to send |
setDebug | public void setDebug(int debug)(Code) | | Set the debug detail level for this component.
Parameters: debug - The debug level |
setLogger | public void setLogger(Logger logger)(Code) | | Set the Logger for this component.
Parameters: debug - The Logger to use with this component. |
setSenderId | public void setSenderId(String senderId)(Code) | | The senderId is a identifier used to identify different
packages being sent in a Cluster. Each package sent through
the concrete implementation of this interface will have
the senderId set at runtime. Usually the senderId is the
name of the component that is using this ClusterSender
Parameters: senderId - The senderId to use |
|
|