org.jgroups.blocks

Class RequestCorrelator.Header

Enclosing Class:
RequestCorrelator
Implemented Interfaces:
Cloneable, Externalizable

public static class RequestCorrelator.Header
extends Header

The header for RequestCorrelator messages

Field Summary

static int
REQ
static int
RSP
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
String
name
The unique name of the associated RequestCorrelator
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

Header()
Used for externalization
Header(int type, long id, boolean rsp_expected, String name)

Method Summary

void
readExternal(ObjectInput in)
Read the header from the given stream
String
toString()
void
writeExternal(ObjectOutput out)
Write out the header to the given stream

Methods inherited from class org.jgroups.Header

size, toString

Field Details

REQ

public static final int REQ
Field Value:
0

RSP

public static final int RSP
Field Value:
1

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

id

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

name

public String name
The unique name of the associated RequestCorrelator

rsp_expected

public boolean rsp_expected
msg is synchronous if true

type

public int type
Type of header: request or reply

Constructor Details

Header

public Header()
Used for externalization

Header

public Header(int type,
              long id,
              boolean rsp_expected,
              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 Details

readExternal

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

toString

public String toString()
Overrides:
toString in interface Header

writeExternal

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

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.