org.apache.catalina.cluster
クラス ReplicationWrapper

java.lang.Object
  |
  +--org.apache.catalina.cluster.ReplicationWrapper
すべての実装インタフェース:
java.io.Serializable

public final class ReplicationWrapper
extends java.lang.Object
implements java.io.Serializable

A ReplicationWrapper, used when sending and receiving multicast data, wrapped is the data and the senderId which is used for identification.

バージョン:
$Revision: 1.1 $, $Date: 2001/05/04 20:48:02 $
作成者:
Bip Thelin
関連項目:
直列化された形式

コンストラクタの概要
ReplicationWrapper(byte[] b, java.lang.String senderId)
          Construct a new ReplicationWrapper
 
メソッドの概要
 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.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ReplicationWrapper

public ReplicationWrapper(byte[] b,
                          java.lang.String senderId)
Construct a new ReplicationWrapper
メソッドの詳細

writeTo

public final void writeTo(java.io.OutputStream out)
                   throws java.io.IOException
Write our stream to the OutputStream provided.
パラメータ:
out - the OutputStream to write this stream to
例外:
java.io.IOException - if an input/output error occurs

getDataStream

public final byte[] getDataStream()
return our internal data as a array of bytes
戻り値:
a our data

setSenderId

public final void setSenderId(java.lang.String senderId)
Set the sender id for this wrapper
パラメータ:
senderId - The sender id

getSenderId

public final java.lang.String getSenderId()
get the sender id for this wrapper
戻り値:
The sender Id associated with this wrapper


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.