org.javagroups.protocols
Class PARTITIONER.PartitionerHeader

java.lang.Object
  |
  +--org.javagroups.Header
        |
        +--org.javagroups.protocols.PARTITIONER.PartitionerHeader
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable
Enclosing class:
PARTITIONER

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.javagroups.Header
HDR_OVERHEAD
 
Constructor Summary
PARTITIONER.PartitionerHeader()
           
PARTITIONER.PartitionerHeader(int type)
           
PARTITIONER.PartitionerHeader(int type, int partition)
           
 
Method Summary
 void readExternal(java.io.ObjectInput in)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class org.javagroups.Header
size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PARTITIONER.PartitionerHeader

public PARTITIONER.PartitionerHeader()

PARTITIONER.PartitionerHeader

public PARTITIONER.PartitionerHeader(int type)

PARTITIONER.PartitionerHeader

public PARTITIONER.PartitionerHeader(int type,
                                     int partition)
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
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException


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