org.jgroups.blocks
Class RequestCorrelator.Header

java.lang.Object
  extended byorg.jgroups.Header
      extended byorg.jgroups.blocks.RequestCorrelator.Header
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
Enclosing class:
RequestCorrelator

public static class RequestCorrelator.Header
extends Header

The header for RequestCorrelator messages

See Also:
Serialized Form

Field Summary
 java.util.Stack call_stack
          Contains senders (e.g.
 java.util.List dest_mbrs
          Contains a list of members who should receive the request (others will drop).
 long id
          The id of this request to distinguish among other requests from the same RequestCorrelator
 java.lang.String name
          The unique name of the associated RequestCorrelator
static int REQ
           
static int RSP
           
 boolean rsp_expected
          msg is synchronous if true
 int type
          Type of header: request or reply
 
Fields inherited from class org.jgroups.Header
HDR_OVERHEAD
 
Constructor Summary
RequestCorrelator.Header()
          Used for externalization
RequestCorrelator.Header(int type, long id, boolean rsp_expected, java.lang.String name)
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
          Read the header from the given stream
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
          Write out the header to the given stream
 
Methods inherited from class org.jgroups.Header
size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REQ

public static final int REQ
See Also:
Constant Field Values

RSP

public static final int RSP
See Also:
Constant Field Values

type

public int type
Type of header: request or reply


id

public long id
The id of this request to distinguish among other requests from the same RequestCorrelator


rsp_expected

public boolean rsp_expected
msg is synchronous if true


name

public java.lang.String name
The unique name of the associated RequestCorrelator


call_stack

public java.util.Stack call_stack
Contains senders (e.g. P --> Q --> R)


dest_mbrs

public java.util.List dest_mbrs
Contains a list of members who should receive the request (others will drop). Ignored if null

Constructor Detail

RequestCorrelator.Header

public RequestCorrelator.Header()
Used for externalization


RequestCorrelator.Header

public RequestCorrelator.Header(int type,
                                long id,
                                boolean rsp_expected,
                                java.lang.String name)
Parameters:
type - type of header (REQ/RSP)
id - id of this header relative to ids of other requests originating from the same correlator
rsp_expected - whether it's a sync or async request
name - the name of the RequestCorrelator from which this header originates
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Header

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write out the header to the given stream

Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read the header from the given stream

Throws:
java.io.IOException
java.lang.ClassNotFoundException


Copyright ? 2001,2002 www.jgroups.com . All Rights Reserved.