|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is responsible for sending outgoing packets to a Cluster. Different Implementations may use different protocol to communicate within the Cluster.
Method Summary | |
int |
getDebug()
Get the debug level for this component |
Logger |
getLogger()
Get the Logger for this component |
java.lang.String |
getSenderId()
get the senderId used to identify messages being sent in a Cluster. |
void |
log(java.lang.String message)
The log method to use in the implementation |
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. |
void |
send(java.lang.Object o)
Send an object, the implementation of this ClusterSender is responsible for modifying
the Object to something that it can use. |
void |
setDebug(int debug)
Set the debug detail level for this component. |
void |
setLogger(Logger logger)
Set the Logger for this component. |
void |
setSenderId(java.lang.String senderId)
The senderId is a identifier used to identify different packages being sent in a Cluster. |
Method Detail |
public void setSenderId(java.lang.String senderId)
ClusterSender
senderId
- The senderId to usepublic java.lang.String getSenderId()
public void setDebug(int debug)
debug
- The debug levelpublic int getDebug()
public void setLogger(Logger logger)
logger
- The Logger to use with this component.public Logger getLogger()
public void log(java.lang.String message)
message
- The message to be logged.public void send(byte[] b)
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.
b
- the bytearray to sendpublic void send(java.lang.Object o)
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.
o
- The object to send
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |