|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.catalina.cluster.ReplicationWrapper
A ReplicationWrapper, used when sending and receiving multicast data, wrapped is the data and the senderId which is used for identification.
Constructor Summary | |
ReplicationWrapper(byte[] b,
java.lang.String senderId)
Construct a new ReplicationWrapper |
Method Summary | |
byte[] |
getDataStream()
return our internal data as a array of bytes |
java.lang.String |
getSenderId()
get the sender id for this wrapper |
void |
setSenderId(java.lang.String senderId)
Set the sender id for this wrapper |
void |
writeTo(java.io.OutputStream out)
Write our stream to the OutputStream provided. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReplicationWrapper(byte[] b, java.lang.String senderId)
Method Detail |
public final void writeTo(java.io.OutputStream out) throws java.io.IOException
OutputStream
provided.
out
- the OutputStream to write this stream to
java.io.IOException
- if an input/output error occurspublic final byte[] getDataStream()
public final void setSenderId(java.lang.String senderId)
senderId
- The sender idpublic final java.lang.String getSenderId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |