public class NodeDescriptors extends Object
| Modifier and Type | Field and Description |
|---|---|
static short |
IGP_ROUTERID_TYPE |
static short |
IS_IS_LEVEL_1_PROTOCOL_ID |
static short |
IS_IS_LEVEL_2_PROTOCOL_ID |
static int |
ISISNONPSEUDONODE_LEN |
static int |
ISISPSEUDONODE_LEN |
static short |
LOCAL_NODE_DES_TYPE |
static short |
OSPF_V2_PROTOCOL_ID |
static short |
OSPF_V3_PROTOCOL_ID |
static int |
OSPFNONPSEUDONODE_LEN |
static int |
OSPFPSEUDONODE_LEN |
static short |
REMOTE_NODE_DES_TYPE |
static int |
TYPE_AND_LEN |
| Constructor and Description |
|---|
NodeDescriptors()
Resets parameters.
|
NodeDescriptors(List<BgpValueType> subTlvs,
short deslength,
short desType)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares this and o object.
|
boolean |
equals(Object obj) |
short |
getLength()
Returns node descriptors length.
|
List<BgpValueType> |
getSubTlvs()
Returns list of subTlvs.
|
short |
getType()
Returns node descriptors type.
|
int |
hashCode() |
static NodeDescriptors |
read(org.jboss.netty.buffer.ChannelBuffer cb,
short desLength,
short desType,
byte protocolId)
Reads node descriptors Sub-TLVs.
|
String |
toString() |
public static final short LOCAL_NODE_DES_TYPE
public static final short REMOTE_NODE_DES_TYPE
public static final short IGP_ROUTERID_TYPE
public static final short IS_IS_LEVEL_1_PROTOCOL_ID
public static final short IS_IS_LEVEL_2_PROTOCOL_ID
public static final short OSPF_V2_PROTOCOL_ID
public static final short OSPF_V3_PROTOCOL_ID
public static final int TYPE_AND_LEN
public static final int ISISNONPSEUDONODE_LEN
public static final int ISISPSEUDONODE_LEN
public static final int OSPFNONPSEUDONODE_LEN
public static final int OSPFPSEUDONODE_LEN
public NodeDescriptors()
public NodeDescriptors(List<BgpValueType> subTlvs, short deslength, short desType)
subTlvs - list of subTlvsdeslength - Descriptors lengthdesType - local node descriptor or remote node descriptor typepublic List<BgpValueType> getSubTlvs()
public static NodeDescriptors read(org.jboss.netty.buffer.ChannelBuffer cb, short desLength, short desType, byte protocolId) throws BgpParseException
cb - ChannelBufferdesLength - node descriptor lengthdesType - local node descriptor or remote node descriptor typeprotocolId - protocol IDBgpParseException - while parsing node descriptorspublic short getLength()
public short getType()
public int compareTo(Object o)
o - object to be compared with this objectCopyright © 2016. All rights reserved.