public class RouteTarget extends java.lang.Object implements BgpValueType
| Modifier and Type | Class and Description |
|---|---|
static class |
RouteTarget.RouteTargetype |
| Constructor and Description |
|---|
RouteTarget()
Resets fields.
|
RouteTarget(short type,
byte[] routeTarget)
Constructor to initialize parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object rd)
Compares two objects.
|
boolean |
equals(java.lang.Object obj) |
byte[] |
getRouteTarget()
Returns route target.
|
short |
getType()
Returns the Type of BGP Message.
|
int |
hashCode() |
static RouteTarget |
read(short type,
org.jboss.netty.buffer.ChannelBuffer cb)
Reads route target from channelBuffer.
|
java.lang.String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte Stream of BGP Message to channel buffer.
|
public RouteTarget()
public RouteTarget(short type,
byte[] routeTarget)
type - typerouteTarget - route targetpublic static RouteTarget read(short type, org.jboss.netty.buffer.ChannelBuffer cb)
type - typecb - channelBufferpublic byte[] getRouteTarget()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic short getType()
BgpValueTypegetType in interface BgpValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
BgpValueTypewrite in interface BgpValueTypecb - channel bufferpublic int compareTo(java.lang.Object rd)
BgpValueTypecompareTo in interface BgpValueTyperd - object