public class PcepBandwidthObjectVer1 extends Object implements PcepBandwidthObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepBandwidthObjectVer1.Builder
builder class for PCEP bandwidth object.
|
| Modifier and Type | Field and Description |
|---|---|
static byte |
BANDWIDTH_OBJ_CLASS |
static short |
BANDWIDTH_OBJ_MINIMUM_LENGTH |
static byte |
BANDWIDTH_OBJ_TYPE |
static byte |
BANDWIDTH_OBJECT_VERSION |
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
PcepBandwidthObjectVer1(int iBandwidth)
Constructor to initialize bandwidth.
|
PcepBandwidthObjectVer1(PcepObjectHeader bandwidthObjHeader,
int iBandwidth)
Constructor to bandwidth object header and bandwidth.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBandwidth()
Returns bandwidth value.
|
PcepObjectHeader |
getBandwidthObjHeader()
Returns Object Header.
|
static PcepBandwidthObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of PcepBandwidthObject.
|
void |
setBandwidth(int iBandwidth)
Sets bandwidth with specified value.
|
void |
setBandwidthObjHeader(PcepObjectHeader obj)
Sets Object Header.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the BandwidthObject into channel buffer.
|
protected static final org.slf4j.Logger log
public static final byte BANDWIDTH_OBJ_TYPE
public static final byte BANDWIDTH_OBJ_CLASS
public static final byte BANDWIDTH_OBJECT_VERSION
public static final short BANDWIDTH_OBJ_MINIMUM_LENGTH
public PcepBandwidthObjectVer1(PcepObjectHeader bandwidthObjHeader, int iBandwidth)
bandwidthObjHeader - bandwidth object headeriBandwidth - bandwidth valuepublic PcepBandwidthObjectVer1(int iBandwidth)
iBandwidth - bandwidth valuepublic PcepObjectHeader getBandwidthObjHeader()
public void setBandwidthObjHeader(PcepObjectHeader obj)
obj - bandwidth object headerpublic int getBandwidth()
PcepBandwidthObjectgetBandwidth in interface PcepBandwidthObjectpublic void setBandwidth(int iBandwidth)
PcepBandwidthObjectsetBandwidth in interface PcepBandwidthObjectiBandwidth - Bandwidth's valuepublic static PcepBandwidthObject read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - channel buffer to parsePcepParseException - while parsing channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepBandwidthObjectwrite in interface PcepBandwidthObjectcb - channel bufferPcepParseException - if bandwidth object header fails to write in channel bufferCopyright © 2015. All rights reserved.