FileDocCategorySizeDatePackage
RpcMessage.javaAPI DocApache Tomcat 6.0.143636Fri Jul 20 04:20:36 BST 2007org.apache.catalina.tribes.group

RpcMessage

public class RpcMessage extends Object implements Externalizable

Title:

Description:

Company:

author
not attributable
version
1.0

Fields Summary
protected Serializable
message
protected byte[]
uuid
protected byte[]
rpcId
protected boolean
reply
Constructors Summary
public RpcMessage()


      
        //for serialization
    
public RpcMessage(byte[] rpcId, byte[] uuid, Serializable message)

        this.rpcId = rpcId;
        this.uuid = uuid;
        this.message = message;
    
Methods Summary
public voidreadExternal(java.io.ObjectInput in)

        reply = in.readBoolean();
        int length = in.readInt();
        uuid = new byte[length];
        in.read(uuid, 0, length);
        length = in.readInt();
        rpcId = new byte[length];
        in.read(rpcId, 0, length);
        message = (Serializable)in.readObject();
    
public java.lang.StringtoString()

        StringBuffer buf = new StringBuffer("RpcMessage[");
        buf.append(super.toString());
        buf.append("] rpcId=");
        buf.append(Arrays.toString(rpcId));
        buf.append("; uuid=");
        buf.append(Arrays.toString(uuid));
        buf.append("; msg=");
        buf.append(message);
        return buf.toString();
    
public voidwriteExternal(java.io.ObjectOutput out)

        out.writeBoolean(reply);
        out.writeInt(uuid.length);
        out.write(uuid, 0, uuid.length);
        out.writeInt(rpcId.length);
        out.write(rpcId, 0, rpcId.length);
        out.writeObject(message);