Class AbstractRSVPObjectParser
- java.lang.Object
-
- org.opendaylight.protocol.rsvp.parser.spi.subobjects.AbstractRSVPObjectParser
-
- All Implemented Interfaces:
RSVPTeObjectParser
,RSVPTeObjectSerializer
- Direct Known Subclasses:
AbstractAssociationParser
,AdminStatusObjectParser
,AttributesObjectParser
,BandwidthObjectParser
,DetourObjectIpv4Parser
,DetourObjectIpv6Parser
,DynamicProtectionObjectParser
,EROSubobjectListParser
,FastRerouteObjectParser
,FlowSpecObjectParser
,InformationalFastRerouteObjectParser
,MetricObjectParser
,ProtectionObjectParser
,ReoptimizationBandwidthObjectParser
,RequiredAttributesObjectParser
,RROSubobjectListParser
,SenderTspecObjectParser
,SessionAttributeLspObjectParser
,SessionAttributeLspRaObjectParser
,XROSubobjectListParser
public abstract class AbstractRSVPObjectParser extends Object implements RSVPTeObjectSerializer, RSVPTeObjectParser
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
FLAGS_SIZE
protected static int
GUARANTEED_SERVICE_RSPEC
protected static int
METRIC_VALUE_F_LENGTH
protected static int
OVERALL_LENGTH
protected static int
PARAMETER_127_LENGTH
protected static int
PARAMETER_130_LENGTH
protected static int
TOKEN_BUCKET_TSPEC
-
Constructor Summary
Constructors Constructor Description AbstractRSVPObjectParser()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RsvpTeObject
localParseObject(io.netty.buffer.ByteBuf byteBuf)
protected abstract void
localSerializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)
RsvpTeObject
parseObject(io.netty.buffer.ByteBuf byteBuf)
protected static void
serializeAttributeHeader(Integer valueLength, short classNum, short ctype, io.netty.buffer.ByteBuf byteAggregator)
void
serializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)
protected static void
writeAttributeFilter(AttributeFilter attributeFilter, io.netty.buffer.ByteBuf body)
-
-
-
Field Detail
-
METRIC_VALUE_F_LENGTH
protected static final int METRIC_VALUE_F_LENGTH
- See Also:
- Constant Field Values
-
OVERALL_LENGTH
protected static final int OVERALL_LENGTH
- See Also:
- Constant Field Values
-
PARAMETER_127_LENGTH
protected static final int PARAMETER_127_LENGTH
- See Also:
- Constant Field Values
-
PARAMETER_130_LENGTH
protected static final int PARAMETER_130_LENGTH
- See Also:
- Constant Field Values
-
GUARANTEED_SERVICE_RSPEC
protected static final int GUARANTEED_SERVICE_RSPEC
- See Also:
- Constant Field Values
-
TOKEN_BUCKET_TSPEC
protected static final int TOKEN_BUCKET_TSPEC
- See Also:
- Constant Field Values
-
FLAGS_SIZE
protected static final int FLAGS_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
serializeAttributeHeader
protected static void serializeAttributeHeader(Integer valueLength, short classNum, short ctype, io.netty.buffer.ByteBuf byteAggregator)
-
writeAttributeFilter
protected static void writeAttributeFilter(AttributeFilter attributeFilter, io.netty.buffer.ByteBuf body)
-
parseObject
public RsvpTeObject parseObject(io.netty.buffer.ByteBuf byteBuf) throws RSVPParsingException
- Specified by:
parseObject
in interfaceRSVPTeObjectParser
- Throws:
RSVPParsingException
-
serializeObject
public void serializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)
- Specified by:
serializeObject
in interfaceRSVPTeObjectSerializer
-
localSerializeObject
protected abstract void localSerializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)
-
localParseObject
protected abstract RsvpTeObject localParseObject(io.netty.buffer.ByteBuf byteBuf) throws RSVPParsingException
- Throws:
RSVPParsingException
-
-