public class PcepLabelUpdateVer1 extends Object implements PcepLabelUpdate
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
PcepLabelUpdateVer1()
Constructor to reset parameters.
|
PcepLabelUpdateVer1(PcepLabelDownload labelDownload)
Constructor to initialize PCEP label download.
|
PcepLabelUpdateVer1(PcepLabelMap labelMap)
Constructor to initialize PCEP label map.
|
| Modifier and Type | Method and Description |
|---|---|
PcepLabelDownload |
getLabelDownload()
Returns the PcepLabelDownload object.
|
PcepLabelMap |
getLabelMap()
Returns the PcepLabelMap object.
|
static PcepLabelUpdate |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads PcepLabels from the byte stream received from channel buffer.
|
void |
setLabelDownload(PcepLabelDownload labelDownload)
Sets the Label Download object.
|
void |
setLabelMap(PcepLabelMap labelMap)
Sets the Label map object.
|
String |
toString() |
void |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the byte stream of PcepLabelUpdate into channel buffer.
|
public PcepLabelUpdateVer1()
public PcepLabelUpdateVer1(PcepLabelDownload labelDownload)
labelDownload - PCEP label downloadpublic PcepLabelUpdateVer1(PcepLabelMap labelMap)
labelMap - PCEP label mappublic static PcepLabelUpdate read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of type channel buffer.PcepParseException - when fails to read from channel bufferpublic void write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepLabelUpdatewrite in interface PcepLabelUpdatecb - of type channel bufferPcepParseException - while writing LABEL UPDATE.public void setLabelDownload(PcepLabelDownload labelDownload)
PcepLabelUpdatesetLabelDownload in interface PcepLabelUpdatelabelDownload - PCEP Label Download objectpublic PcepLabelDownload getLabelDownload()
PcepLabelUpdategetLabelDownload in interface PcepLabelUpdatepublic void setLabelMap(PcepLabelMap labelMap)
PcepLabelUpdatesetLabelMap in interface PcepLabelUpdatelabelMap - PCEP Label Map objectpublic PcepLabelMap getLabelMap()
PcepLabelUpdategetLabelMap in interface PcepLabelUpdateCopyright © 2015. All rights reserved.