Class AbstractGetFlowStatistics<T extends OfHeader>
java.lang.Object
org.opendaylight.openflowplugin.impl.services.AbstractService<GetFlowStatisticsInput,List<T>>
org.opendaylight.openflowplugin.impl.services.AbstractMultipartService<GetFlowStatisticsInput,T>
org.opendaylight.openflowplugin.impl.statistics.services.direct.AbstractGetFlowStatistics<T>
- All Implemented Interfaces:
GetFlowStatistics,org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.Rpc<GetFlowStatisticsInput,,GetFlowStatisticsOutput>> org.opendaylight.yangtools.binding.Rpc<GetFlowStatisticsInput,GetFlowStatisticsOutput>
- Direct Known Subclasses:
MultiGetFlowStatistics,SingleGetFlowStatistics
public abstract class AbstractGetFlowStatistics<T extends OfHeader>
extends AbstractMultipartService<GetFlowStatisticsInput,T>
implements GetFlowStatistics
The Flow direct statistics service.
-
Field Summary
Fields inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetFlowStatistics
QNAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGetFlowStatistics(RequestContextStack requestContextStack, DeviceContext deviceContext, ConvertorExecutor convertorExecutor, MultipartWriterProvider statisticsWriterProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract GetFlowStatisticsOutputbuildReply(List<T> input, boolean success) Build output from multipart reply input.protected FlowIdgenerateFlowId(FlowAndStatisticsMapList flowStatistics) Get flow ID from #DeviceFlowRegistryor create alien ID.protected ConvertorExecutorGet convertor executor.protected MultipartTypeGet multipart type.protected OpenflowVersionGets openflow version.final com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetFlowStatisticsOutput>> invoke(GetFlowStatisticsInput input) Methods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractMultipartService
createCallback, handleServiceCallMethods inherited from class org.opendaylight.openflowplugin.impl.services.AbstractService
buildRequest, canUseSingleLayerSerialization, getDatapathId, getDeviceContext, getDeviceInfo, getDeviceRegistry, getEventIdentifier, getMessageSpy, getRequestContextStack, getTxFacade, getVersion, handleServiceCall, setEventIdentifierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.direct.statistics.rev160511.GetFlowStatistics
implementedInterface
-
Constructor Details
-
AbstractGetFlowStatistics
protected AbstractGetFlowStatistics(RequestContextStack requestContextStack, DeviceContext deviceContext, ConvertorExecutor convertorExecutor, MultipartWriterProvider statisticsWriterProvider)
-
-
Method Details
-
invoke
public final com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetFlowStatisticsOutput>> invoke(GetFlowStatisticsInput input) - Specified by:
invokein interfaceGetFlowStatistics- Specified by:
invokein interfaceorg.opendaylight.yangtools.binding.Rpc<GetFlowStatisticsInput,GetFlowStatisticsOutput>
-
generateFlowId
Get flow ID from #DeviceFlowRegistryor create alien ID.- Parameters:
flowStatistics- flow statistics- Returns:
- generated flow ID
-
getMultipartType
Get multipart type.- Returns:
- multipart type
-
getConvertorExecutor
Get convertor executor.- Returns:
- convertor executor
-
getOfVersion
Gets openflow version.- Returns:
- the openflow version
-
buildReply
Build output from multipart reply input.- Parameters:
input- the input- Returns:
- the output
-