Class AbstractCompatibleStatService<I extends org.opendaylight.yangtools.binding.DataContainer,O,N extends org.opendaylight.yangtools.binding.Notification>
java.lang.Object
org.opendaylight.openflowplugin.impl.services.AbstractService<I,List<MultipartReply>>
org.opendaylight.openflowplugin.impl.services.AbstractMultipartService<I,MultipartReply>
org.opendaylight.openflowplugin.impl.statistics.services.compatibility.AbstractCompatibleStatService<I,O,N>
- All Implemented Interfaces:
BackwardCompatibleAtomicService<I,O>
- Direct Known Subclasses:
AggregateFlowsInTableService,AllFlowsInAllTablesService,AllFlowsInTableService,FlowsInTableService,GetFlowTablesStatisticsImpl
public abstract class AbstractCompatibleStatService<I extends org.opendaylight.yangtools.binding.DataContainer,O,N extends org.opendaylight.yangtools.binding.Notification>
extends AbstractMultipartService<I,MultipartReply>
implements BackwardCompatibleAtomicService<I,O>
Pulled up common functionality of notification emitting stats services (backward compatibility relic).
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCompatibleStatService(RequestContextStack requestContextStack, DeviceContext deviceContext, AtomicLong compatibilityXidSeed) -
Method Summary
Modifier and TypeMethodDescriptionabstract ObuildTxCapableResult(TransactionId emulatedTxId) com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<O>> handleAndNotify(I input, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService) process rpc request and publish corresponding notification upon success.abstract NtransformToNotification(List<MultipartReply> result, TransactionId emulatedTxId) 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, setEventIdentifier
-
Constructor Details
-
AbstractCompatibleStatService
public AbstractCompatibleStatService(RequestContextStack requestContextStack, DeviceContext deviceContext, AtomicLong compatibilityXidSeed)
-
-
Method Details
-
getOfVersion
-
handleAndNotify
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<O>> handleAndNotify(I input, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationPublishService) Description copied from interface:BackwardCompatibleAtomicServiceprocess rpc request and publish corresponding notification upon success.- Specified by:
handleAndNotifyin interfaceBackwardCompatibleAtomicService<I extends org.opendaylight.yangtools.binding.DataContainer,O> - Parameters:
input- rpc inputnotificationPublishService- publisher handle
-
buildTxCapableResult
-
transformToNotification
-