public class PCEPBandwidthObjectParser extends Object implements ObjectParser, ObjectSerializer
Modifier and Type | Field and Description |
---|---|
static int |
BANDWIDTH_F_LENGTH |
static int |
CLASS |
static int |
TYPE |
Constructor and Description |
---|
PCEPBandwidthObjectParser() |
Modifier and Type | Method and Description |
---|---|
Bandwidth |
parseObject(ObjectHeader header,
io.netty.buffer.ByteBuf bytes) |
void |
serializeObject(Object object,
io.netty.buffer.ByteBuf buffer)
Serializes given object to bytes wrapped in given ByteBuf.
|
public static final int CLASS
public static final int TYPE
public static final int BANDWIDTH_F_LENGTH
public Bandwidth parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
parseObject
in interface ObjectParser
PCEPDeserializerException
public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
ObjectSerializer
serializeObject
in interface ObjectSerializer
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized objectCopyright © 2018 OpenDaylight. All rights reserved.