public class PcepRsvpIpv4ErrorSpec extends Object implements PcepRsvpErrorSpec
| Modifier and Type | Field and Description |
|---|---|
static byte |
CLASS_LENGTH |
static byte |
CLASS_NUM |
static byte |
CLASS_TYPE |
| Constructor and Description |
|---|
PcepRsvpIpv4ErrorSpec(int ipv4Addr,
byte flags,
byte errCode,
short errValue)
Constructor to initialize ipv4 address, flags, err code and err value.
|
PcepRsvpIpv4ErrorSpec(PcepRsvpSpecObjHeader objHeader,
int ipv4Addr,
byte flags,
byte errCode,
short errValue)
Constructor to initialize obj header, ipv4 addr, flags, err code and err value.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
getClassNum()
Returns class number.
|
byte |
getClassType()
Returns class type.
|
short |
getLength()
Returns the Length of PCEP Message.
|
short |
getType()
Returns the Type of PCEP Message.
|
PcepVersion |
getVersion()
Returns the Version Of PCEP Message.
|
static PcepRsvpErrorSpec |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads PCPE RSVP error spec from channel buffer and returns PCEP rsvp IPv4 error spec object.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
To write the object information to channelBuffer.
|
public static final byte CLASS_NUM
public static final byte CLASS_TYPE
public static final byte CLASS_LENGTH
public PcepRsvpIpv4ErrorSpec(PcepRsvpSpecObjHeader objHeader, int ipv4Addr, byte flags, byte errCode, short errValue)
objHeader - rsvp ipv4 error spec object headeripv4Addr - ipv4 addressflags - flags valueerrCode - error code valueerrValue - error valuepublic PcepRsvpIpv4ErrorSpec(int ipv4Addr,
byte flags,
byte errCode,
short errValue)
ipv4Addr - ipv4 addressflags - flags valueerrCode - error codeerrValue - error valuepublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
PcepRsvpErrorSpecwrite in interface PcepRsvpErrorSpecwrite in interface PcepValueTypecb - of type channel bufferpublic static PcepRsvpErrorSpec read(org.jboss.netty.buffer.ChannelBuffer cb)
cb - channel bufferpublic PcepVersion getVersion()
PcepValueTypegetVersion in interface PcepValueTypepublic short getType()
PcepValueTypegetType in interface PcepValueTypepublic short getLength()
PcepValueTypegetLength in interface PcepValueTypepublic byte getClassNum()
PcepRsvpErrorSpecgetClassNum in interface PcepRsvpErrorSpecpublic byte getClassType()
PcepRsvpErrorSpecgetClassType in interface PcepRsvpErrorSpec