public class LocalPref extends Object implements BgpValueType
| Modifier and Type | Field and Description |
|---|---|
static byte |
FLAGS |
static byte |
LOCAL_PREF_MAX_LEN |
static byte |
LOCAL_PREF_TYPE |
| Constructor and Description |
|---|
LocalPref(int localPref)
Constructor to initialize LocalPref.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o)
Compares two objects.
|
boolean |
equals(Object obj) |
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
int |
localPref()
Returns local preference value.
|
static LocalPref |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads the channel buffer and returns object of LocalPref.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public static final byte LOCAL_PREF_TYPE
public static final byte LOCAL_PREF_MAX_LEN
public static final byte FLAGS
public LocalPref(int localPref)
localPref - local preferencepublic int localPref()
public static LocalPref read(org.jboss.netty.buffer.ChannelBuffer cb) throws BgpParseException
cb - channelBufferBgpParseException - while parsing localPref attributepublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(Object o)
BgpValueTypecompareTo in interface BgpValueTypeo - objectCopyright © 2016. All rights reserved.