| java.lang.Object org.apache.catalina.tribes.io.ChannelData
ChannelData | public class ChannelData implements ChannelMessage(Code) | | The ChannelData object is used to transfer a message through the
channel interceptor stack and eventually out on a transport to be sent
to another node. While the message is being processed by the different
interceptors, the message data can be manipulated as each interceptor seems appropriate.
author: Peter Rossbach author: Filip Hanik version: $Revision: 538977 $ $Date: 2007-05-17 17:43:49 +0200 (jeu., 17 mai 2007) $ |
USE_SECURE_RANDOM_FOR_UUID | public static boolean USE_SECURE_RANDOM_FOR_UUID(Code) | | |
ChannelData | public ChannelData(boolean generateUUID)(Code) | | Create an empty channel data object
Parameters: generateUUID - boolean - if true, a unique Id will be generated |
ChannelData | public ChannelData(byte[] uniqueId, XByteBuffer message, long timestamp)(Code) | | Creates a new channel data object with data
Parameters: uniqueId - - unique message id Parameters: message - - message data Parameters: timestamp - - message timestamp |
clone | public Object clone()(Code) | | Create a shallow clone, only the data gets recreated
ClusterData |
deepclone | public Object deepclone()(Code) | | Complete clone
ClusterData |
equals | public boolean equals(Object o)(Code) | | Compares to ChannelData objects, only compares on getUniqueId().equals(o.getUniqueId())
Parameters: o - Object boolean |
generateUUID | public void generateUUID()(Code) | | Generates a UUID and invokes setUniqueId
|
getAddress | public Member getAddress()(Code) | | Returns the source or reply-to address
Member |
getDataFromPackage | public static ChannelData getDataFromPackage(XByteBuffer xbuf)(Code) | | Deserializes a ChannelData object from a byte array
Parameters: b - byte[] ChannelData |
getDataPackage | public byte[] getDataPackage()(Code) | | Serializes the ChannelData object into a byte[] array
byte[] |
getDataPackage | public byte[] getDataPackage(byte[] data, int offset)(Code) | | |
getDataPackageLength | public int getDataPackageLength()(Code) | | |
getOptions | public int getOptions()(Code) | | returns the message options see org.apache.catalina.tribes.Channel#sendMessage(org.apache.catalina.tribes.Member[], java.io.Serializable, int) |
getTimestamp | public long getTimestamp()(Code) | | Returns the timestamp. |
getUniqueId | public byte[] getUniqueId()(Code) | | Returns the uniqueId. |
hashCode | public int hashCode()(Code) | | |
setAddress | public void setAddress(Member address)(Code) | | Sets the source or reply-to address
Parameters: address - Member |
setMessage | public void setMessage(XByteBuffer message)(Code) | | Parameters: message - The message to send. |
setOptions | public void setOptions(int options)(Code) | | Parameters: sets - the message options |
setTimestamp | public void setTimestamp(long timestamp)(Code) | | Parameters: timestamp - The timestamp to send |
setUniqueId | public void setUniqueId(byte[] uniqueId)(Code) | | Parameters: uniqueId - The uniqueId to send. |
|
|