org.jgroups.protocols

Class PARTITIONER.PartitionerHeader

Enclosing Class:
PARTITIONER
Implemented Interfaces:
Cloneable, Externalizable

public static class PARTITIONER.PartitionerHeader
extends Header

The Partitioner header normally (type = NORMAL) contains just the partition number that is checked to discard messages received from other partitions. If type is COMMAND Destination contains an Hashtable where keys are of type Address and represent process (channel) addresses and values are Integer representing the partition that shuold be assigned to each Address.

Field Summary

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

PartitionerHeader()
PartitionerHeader(int type)
PartitionerHeader(int type, int partition)

Method Summary

void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)

Methods inherited from class org.jgroups.Header

size, toString

Constructor Details

PartitionerHeader

public PartitionerHeader()


PartitionerHeader

public PartitionerHeader(int type)


PartitionerHeader

public PartitionerHeader(int type,
                         int partition)

Method Details

readExternal

public void readExternal(ObjectInput in)
            throws IOException,
                   ClassNotFoundException


toString

public String toString()
Overrides:
toString in interface Header


writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException


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