public class PcepAttributeVer1 extends Object implements PcepAttribute
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepAttributeVer1.Builder
Builder class for PCEP attributes.
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
static int |
OBJECT_HEADER_LENGTH |
| Constructor and Description |
|---|
PcepAttributeVer1()
Default constructor to initialize member variables.
|
PcepAttributeVer1(PcepBandwidthObject bandwidthObject)
constructor to initialize bandwidthObject.
|
PcepAttributeVer1(PcepLspaObject lspaObject,
PcepBandwidthObject bandwidthObject,
LinkedList<PcepMetricObject> llMetricList,
PcepIroObject iroObject)
Constructor to initialize all parameters for PCEP attribute.
|
| Modifier and Type | Method and Description |
|---|---|
PcepBandwidthObject |
getBandwidthObject()
Returns PcepBandwidthObject.
|
PcepIroObject |
getIroObject()
Returns PcepIroObject.
|
PcepLspaObject |
getLspaObject()
Returns PcepLspaObject.
|
LinkedList<PcepMetricObject> |
getMetricObjectList()
Returns PcepMetricObject List.
|
boolean |
parseMetricList(org.jboss.netty.buffer.ChannelBuffer cb)
Parse list for MeticObject.
|
static PcepAttribute |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads lspa , bandwidth , Metriclist and Iro objects and sets the objects.
|
void |
setBandwidthObject(PcepBandwidthObject bandwidthObject)
Sets the PcepBandwidthObject.
|
void |
setIroObject(PcepIroObject iroObject)
Sets the PcepIroObject.
|
void |
setLspaObject(PcepLspaObject lspaObject)
Sets the PcepLspaObject.
|
void |
setMetricObjectList(LinkedList<PcepMetricObject> llMetricList)
Sets PcepMetricObject List.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
writes lspa , bandwidth , Metriclist and Iro objects to the channel.
|
protected static final org.slf4j.Logger log
public static final int OBJECT_HEADER_LENGTH
public PcepAttributeVer1()
public PcepAttributeVer1(PcepLspaObject lspaObject, PcepBandwidthObject bandwidthObject, LinkedList<PcepMetricObject> llMetricList, PcepIroObject iroObject)
lspaObject - PCEP lspa Object.bandwidthObject - PCEP bandwidth object.llMetricList - list of PCEP metric objects.iroObject - PCEP iro object.public PcepAttributeVer1(PcepBandwidthObject bandwidthObject)
bandwidthObject - bandwidth objectpublic boolean parseMetricList(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
cb - of type channel bufferPcepParseException - when a non metric object is receivedpublic static PcepAttribute read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel bufferPcepParseException - while parsing Pcep Attributes from channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepAttributewrite in interface PcepAttributecb - of type channel buffer.PcepParseException - while writing objects to channel bufferpublic PcepLspaObject getLspaObject()
PcepAttributegetLspaObject in interface PcepAttributepublic PcepBandwidthObject getBandwidthObject()
PcepAttributegetBandwidthObject in interface PcepAttributepublic LinkedList<PcepMetricObject> getMetricObjectList()
PcepAttributegetMetricObjectList in interface PcepAttributepublic PcepIroObject getIroObject()
PcepAttributegetIroObject in interface PcepAttributepublic void setBandwidthObject(PcepBandwidthObject bandwidthObject)
PcepAttributesetBandwidthObject in interface PcepAttributebandwidthObject - bandwidth objectpublic void setMetricObjectList(LinkedList<PcepMetricObject> llMetricList)
PcepAttributesetMetricObjectList in interface PcepAttributellMetricList - list of metric objectspublic void setLspaObject(PcepLspaObject lspaObject)
PcepAttributesetLspaObject in interface PcepAttributelspaObject - lspa objectpublic void setIroObject(PcepIroObject iroObject)
PcepAttributesetIroObject in interface PcepAttributeiroObject - iro objectCopyright © 2015. All rights reserved.