org.jgroups.protocols
Class OLSRHeader

java.lang.Object
  extended by org.jgroups.Header
      extended by org.jgroups.protocols.OLSRHeader
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, org.jgroups.util.Streamable

public class OLSRHeader
extends org.jgroups.Header
implements org.jgroups.util.Streamable

See Also:
Serialized Form

Field Summary
static int CONTROL
           
static int DATA
           
 OLSRNode dest
           
 java.lang.String mcastAddress
           
 int type
           
 
Fields inherited from class org.jgroups.Header
HDR_OVERHEAD
 
Constructor Summary
OLSRHeader()
           
 
Method Summary
 OLSRNode getDest()
           
 java.lang.String getMcastAddress()
           
 int getType()
           
 void readExternal(java.io.ObjectInput in)
           
 void readFrom(java.io.DataInputStream in)
           
 void setDest(OLSRNode dest)
           
 void setMcastAddress(java.lang.String mcastAddress)
           
 void setType(int type)
           
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
           
 void writeTo(java.io.DataOutputStream out)
           
 
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

CONTROL

public static final int CONTROL
See Also:
Constant Field Values

DATA

public static final int DATA
See Also:
Constant Field Values

type

public int type

dest

public OLSRNode dest

mcastAddress

public java.lang.String mcastAddress
Constructor Detail

OLSRHeader

public OLSRHeader()
Method Detail

getDest

public OLSRNode getDest()
Returns:
the dest

getMcastAddress

public java.lang.String getMcastAddress()
Returns:
Returns the mcastAddress.

getType

public int getType()
Returns:
the type

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

readFrom

public void readFrom(java.io.DataInputStream in)
              throws java.io.IOException,
                     java.lang.IllegalAccessException,
                     java.lang.InstantiationException
Specified by:
readFrom in interface org.jgroups.util.Streamable
Throws:
java.io.IOException
java.lang.IllegalAccessException
java.lang.InstantiationException

setDest

public void setDest(OLSRNode dest)
Parameters:
dest - the dest to set

setMcastAddress

public void setMcastAddress(java.lang.String mcastAddress)
Parameters:
mcastAddress - The mcastAddress to set.

setType

public void setType(int type)
Parameters:
type - the type to set

toString

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

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

writeTo

public void writeTo(java.io.DataOutputStream out)
             throws java.io.IOException
Specified by:
writeTo in interface org.jgroups.util.Streamable
Throws:
java.io.IOException