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 intFLAGS_SIZEprotected static intGUARANTEED_SERVICE_RSPECprotected static intMETRIC_VALUE_F_LENGTHprotected static intOVERALL_LENGTHprotected static intPARAMETER_127_LENGTHprotected static intPARAMETER_130_LENGTHprotected static intTOKEN_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 RsvpTeObjectlocalParseObject(io.netty.buffer.ByteBuf byteBuf)protected abstract voidlocalSerializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)RsvpTeObjectparseObject(io.netty.buffer.ByteBuf byteBuf)protected static voidserializeAttributeHeader(Integer valueLength, short classNum, short ctype, io.netty.buffer.ByteBuf byteAggregator)voidserializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)protected static voidwriteAttributeFilter(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:
parseObjectin interfaceRSVPTeObjectParser- Throws:
RSVPParsingException
-
serializeObject
public void serializeObject(RsvpTeObject rsvpTeObject, io.netty.buffer.ByteBuf output)
- Specified by:
serializeObjectin 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
-
-