public class BgpAttrOpaqueNode extends java.lang.Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRNODE_OPAQUEDATA |
| Constructor and Description |
|---|
BgpAttrOpaqueNode(byte[] opaqueNodeAttribute)
Constructor to initialize parameter.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
attrOpaqueNode()
Returns opaque node attribute.
|
int |
compareTo(java.lang.Object o)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static BgpAttrOpaqueNode |
of(byte[] opaqueNodeAttribute)
Returns object of this class with specified values.
|
static BgpAttrOpaqueNode |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the Opaque Node Properties.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final int ATTRNODE_OPAQUEDATA
public BgpAttrOpaqueNode(byte[] opaqueNodeAttribute)
opaqueNodeAttribute - opaque node attributepublic static BgpAttrOpaqueNode of(byte[] opaqueNodeAttribute)
opaqueNodeAttribute - Prefix Metricpublic static BgpAttrOpaqueNode read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - ChannelBufferBgpParseException - while parsing BgpAttrOpaqueNodepublic byte[] attrOpaqueNode()
public short getType()
BgpValueTypegetType in interface BgpValueTypepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - object