Class AbstractFlowDirectStatisticsService<T extends OfHeader>
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.services.AbstractService<I,List<T>>
-
- org.opendaylight.openflowplugin.impl.services.AbstractMultipartService<I,T>
-
- org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractFlowDirectStatisticsService<T>
-
- Direct Known Subclasses:
FlowDirectStatisticsService
,FlowDirectStatisticsService
public abstract class AbstractFlowDirectStatisticsService<T extends OfHeader> extends AbstractMultipartService<I,T>
The Flow direct statistics service.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFlowDirectStatisticsService(RequestContextStack requestContextStack, DeviceContext deviceContext, ConvertorExecutor convertorExecutor, MultipartWriterProvider statisticsWriterProvider)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract O
buildReply(List<T> input, boolean success)
Build output from multipart reply input.protected FlowId
generateFlowId(FlowAndStatisticsMapList flowStatistics)
Get flow ID from #DeviceFlowRegistry
or create alien ID.protected ConvertorExecutor
getConvertorExecutor()
Get convertor executor.protected MultipartType
getMultipartType()
Get multipart type.protected OpenflowVersion
getOfVersion()
Gets openflow version.-
Methods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractMultipartService
createCallback, handleServiceCall
-
Methods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractService
buildRequest, canUseSingleLayerSerialization, getDatapathId, getDeviceContext, getDeviceInfo, getDeviceRegistry, getEventIdentifier, getMessageSpy, getRequestContextStack, getTxFacade, getVersion, handleServiceCall, setEventIdentifier
-
-
-
-
Constructor Detail
-
AbstractFlowDirectStatisticsService
protected AbstractFlowDirectStatisticsService(RequestContextStack requestContextStack, DeviceContext deviceContext, ConvertorExecutor convertorExecutor, MultipartWriterProvider statisticsWriterProvider)
-
-
Method Detail
-
generateFlowId
protected FlowId generateFlowId(FlowAndStatisticsMapList flowStatistics)
Get flow ID from #DeviceFlowRegistry
or create alien ID.- Parameters:
flowStatistics
- flow statistics- Returns:
- generated flow ID
-
getMultipartType
protected MultipartType getMultipartType()
Get multipart type.- Returns:
- multipart type
-
getConvertorExecutor
protected ConvertorExecutor getConvertorExecutor()
Get convertor executor.- Returns:
- convertor executor
-
getOfVersion
protected OpenflowVersion getOfVersion()
Gets openflow version.- Returns:
- the openflow version
-
buildReply
protected abstract O buildReply(List<T> input, boolean success)
Build output from multipart reply input.- Parameters:
input
- the input- Returns:
- the output
-
-