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 Details

  • Method Details

    • getOfVersion

      public OpenflowVersion 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: BackwardCompatibleAtomicService
      process rpc request and publish corresponding notification upon success.
      Specified by:
      handleAndNotify in interface BackwardCompatibleAtomicService<I extends org.opendaylight.yangtools.binding.DataContainer,O>
      Parameters:
      input - rpc input
      notificationPublishService - publisher handle
    • buildTxCapableResult

      public abstract O buildTxCapableResult(TransactionId emulatedTxId)
    • transformToNotification

      public abstract N transformToNotification(List<MultipartReply> result, TransactionId emulatedTxId)