public class PIMHelloOption
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_GENID |
static short |
DEFAULT_HOLDTIME |
static short |
DEFAULT_OVERRIDEINTERVAL |
static int |
DEFAULT_PRIORITY |
static short |
DEFAULT_PRUNEDELAY |
static short |
GENID_LENGTH |
static short |
HOLDTIME_LENGTH |
static int |
MINIMUM_OPTION_LEN_BYTES |
static short |
OPT_ADDRLIST |
static short |
OPT_GENID |
static short |
OPT_HOLDTIME |
static short |
OPT_PRIORITY |
static short |
OPT_PRUNEDELAY |
static short |
PRIORITY_LENGTH |
static short |
PRUNEDELAY_LENGTH |
Constructor and Description |
---|
PIMHelloOption()
Constructs a new hello option with no fields set.
|
PIMHelloOption(short type)
Set a PIM Hello option by type.
|
Modifier and Type | Method and Description |
---|---|
static PIMHelloOption |
create(short type,
short length,
java.nio.ByteBuffer value)
Creates a new PIM Hello option with the specified values.
|
static PIMHelloOption |
createGenID(int genId)
Creates a new generation ID option with a particular generation ID.
|
static PIMHelloOption |
createHoldTime(short holdTime)
Creates a new hold time option.
|
static PIMHelloOption |
createPriority(int priority)
Creates a new priority option.
|
static PIMHelloOption |
createPruneDelay(short propagationDelay,
short overrideInterval)
Creates a new LAN Prune Delay option.
|
static PIMHelloOption |
deserialize(java.nio.ByteBuffer bb) |
short |
getOptLength() |
short |
getOptType() |
byte[] |
getValue() |
byte[] |
serialize() |
void |
setOptLength(short len) |
void |
setOptType(short type) |
void |
setValue(byte[] value) |
void |
setValue(java.nio.ByteBuffer bb) |
java.lang.String |
toString() |
public static final short OPT_HOLDTIME
public static final short HOLDTIME_LENGTH
public static final short DEFAULT_HOLDTIME
public static final short OPT_PRUNEDELAY
public static final short PRUNEDELAY_LENGTH
public static final short DEFAULT_PRUNEDELAY
public static final short DEFAULT_OVERRIDEINTERVAL
public static final short OPT_PRIORITY
public static final short PRIORITY_LENGTH
public static final int DEFAULT_PRIORITY
public static final short OPT_GENID
public static final short GENID_LENGTH
public static final int DEFAULT_GENID
public static final short OPT_ADDRLIST
public static final int MINIMUM_OPTION_LEN_BYTES
public PIMHelloOption()
public PIMHelloOption(short type)
type
- hello option typepublic void setOptType(short type)
public short getOptType()
public void setOptLength(short len)
public short getOptLength()
public void setValue(java.nio.ByteBuffer bb)
public void setValue(byte[] value)
public byte[] getValue()
public static PIMHelloOption create(short type, short length, java.nio.ByteBuffer value)
type
- hello option typelength
- option lengthvalue
- option valuepublic static PIMHelloOption createPriority(int priority)
priority
- prioritypublic static PIMHelloOption createHoldTime(short holdTime)
holdTime
- hold timepublic static PIMHelloOption createGenID(int genId)
genId
- generation ID valuepublic static PIMHelloOption createPruneDelay(short propagationDelay, short overrideInterval)
propagationDelay
- prune delayoverrideInterval
- override intervalpublic static PIMHelloOption deserialize(java.nio.ByteBuffer bb) throws DeserializationException
DeserializationException
public byte[] serialize()
public java.lang.String toString()
toString
in class java.lang.Object