org.jgroups.protocols
Class BwCalcHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.BwCalcHeader
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, org.jgroups.util.Streamable
public class BwCalcHeader
- extends org.jgroups.Header
- implements org.jgroups.util.Streamable
Bandwidth Calculator protocol Header.
The communication interface between the protocol and the other layers.
- Author:
- Marc Espelt
- See Also:
- Serialized Form
Fields inherited from class org.jgroups.Header |
HDR_OVERHEAD |
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 |
MAX_INCOMING_BANDWIDTH
public static final int MAX_INCOMING_BANDWIDTH
- See Also:
- Constant Field Values
MAX_INCOMING_MESSAGES
public static final int MAX_INCOMING_MESSAGES
- See Also:
- Constant Field Values
BwCalcHeader
public BwCalcHeader()
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
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
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
getType
public int getType()
- Returns:
- the type
setType
public void setType(int type)
- Parameters:
type
- the type to set