public class PcepEndPointsObjectVer1 extends Object implements PcepEndPointsObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PcepEndPointsObjectVer1.Builder
Builder class for PCEP end points objects.
|
| Modifier and Type | Field and Description |
|---|---|
int |
destIpAddress |
static byte |
endPointObjType |
protected static org.slf4j.Logger |
log |
int |
sourceIpAddress |
| Constructor and Description |
|---|
PcepEndPointsObjectVer1(PcepObjectHeader endPointsObjHeader,
int sourceIpAddress,
int destIpAddress)
Constructor to initialize all variables.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDestIpAddress()
Returns Destination IpAddress from End Points Object.
|
int |
getSourceIpAddress()
Returns Source IpAddress from End Points Object.
|
static PcepEndPointsObject |
read(org.jboss.netty.buffer.ChannelBuffer cb)
Reads from channel buffer and returns object of PcepEndPointsObject.
|
void |
setDestIpAddress(int destIpAddress)
Sets Destination IpAddress in End Points Object.
|
void |
setEndPointsObjHeader(PcepObjectHeader obj)
Sets End Points Object Header.
|
void |
setSourceIpAddress(int sourceIpAddress)
Sets Source IpAddress in End Points Object.
|
String |
toString() |
int |
write(org.jboss.netty.buffer.ChannelBuffer cb)
Writes the EndPointsObject into channel buffer.
|
protected static final org.slf4j.Logger log
public static byte endPointObjType
public int sourceIpAddress
public int destIpAddress
public PcepEndPointsObjectVer1(PcepObjectHeader endPointsObjHeader, int sourceIpAddress, int destIpAddress)
endPointsObjHeader - end points object headersourceIpAddress - source IP addressdestIpAddress - destination IP addresspublic void setEndPointsObjHeader(PcepObjectHeader obj)
obj - of PcepObjectHeaderpublic void setSourceIpAddress(int sourceIpAddress)
PcepEndPointsObjectsetSourceIpAddress in interface PcepEndPointsObjectsourceIpAddress - Source IP Addresspublic void setDestIpAddress(int destIpAddress)
PcepEndPointsObjectsetDestIpAddress in interface PcepEndPointsObjectdestIpAddress - Destination IP Addresspublic int getSourceIpAddress()
PcepEndPointsObjectgetSourceIpAddress in interface PcepEndPointsObjectpublic int getDestIpAddress()
PcepEndPointsObjectgetDestIpAddress in interface PcepEndPointsObjectpublic static PcepEndPointsObject read(org.jboss.netty.buffer.ChannelBuffer cb) throws PcepParseException
cb - of channel bufferPcepParseException - while parsing channel bufferpublic int write(org.jboss.netty.buffer.ChannelBuffer cb)
throws PcepParseException
PcepEndPointsObjectwrite in interface PcepEndPointsObjectcb - channel bufferPcepParseException - while writing EndPointObject into ChannelBufferCopyright © 2015. All rights reserved.