public class IgpMetricSubTlv extends Object implements PcepValueType
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static short |
TYPE |
| Constructor and Description |
|---|
IgpMetricSubTlv(byte[] rawValue,
short hLength)
Constructor to initialize raw value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getType()
Returns the Type of PCEP Message.
|
byte[] |
getValue()
Returns value of IGP Link Metric.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
int |
hashCode() |
static IgpMetricSubTlv |
of(byte[] raw,
short hLength)
Returns newly created IGPMetricTlv object.
|
static PcepValueType |
read(org.jboss.netty.buffer.ChannelBuffer c,
short hLength)
Reads the channel buffer and returns object of IGPMetricTlv.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer c)
Writes the byte Stream of PCEP Message to channel buffer.
|
protected static final org.slf4j.Logger log
public static final short TYPE
public IgpMetricSubTlv(byte[] rawValue,
short hLength)
rawValue - IGP Link MetrichLength - lengthpublic static IgpMetricSubTlv of(byte[] raw, short hLength)
raw - value of IGP Link MetrichLength - lengthpublic byte[] getValue()
public PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic int write(org.jboss.netty.buffer.ChannelBuffer c)
PcepValueTypewrite in interface PcepValueTypec - of type channel bufferpublic static PcepValueType read(org.jboss.netty.buffer.ChannelBuffer c, short hLength)
c - input channel bufferhLength - length