java.lang.Object
org.opendaylight.openflowplugin.impl.util.MeterUtil

public final class MeterUtil extends Object
Provides meter util methods.
  • Field Details

    • METER_ADD_TRANSFORM

      public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddMetersBatchOutput>> METER_ADD_TRANSFORM
    • METER_ADD_COMPOSING_TRANSFORM

      public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<AddMetersBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<AddMetersBatchOutput>> METER_ADD_COMPOSING_TRANSFORM
    • METER_REMOVE_TRANSFORM

      public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveMetersBatchOutput>> METER_REMOVE_TRANSFORM
    • METER_REMOVE_COMPOSING_TRANSFORM

      public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMetersBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<RemoveMetersBatchOutput>> METER_REMOVE_COMPOSING_TRANSFORM
    • METER_UPDATE_TRANSFORM

      public static final com.google.common.base.Function<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateMetersBatchOutput>> METER_UPDATE_TRANSFORM
    • METER_UPDATE_COMPOSING_TRANSFORM

      public static final com.google.common.base.Function<org.apache.commons.lang3.tuple.Pair<org.opendaylight.yangtools.yang.common.RpcResult<UpdateMetersBatchOutput>,org.opendaylight.yangtools.yang.common.RpcResult<SendBarrierOutput>>,org.opendaylight.yangtools.yang.common.RpcResult<UpdateMetersBatchOutput>> METER_UPDATE_COMPOSING_TRANSFORM
  • Method Details

    • buildMeterPath

      public static MeterRef buildMeterPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, MeterId meterId)
      Create meter path.
      Parameters:
      nodePath - node path
      meterId - meter Id
      Returns:
      instance identifier assembled for given node and meter
    • createCumulativeFunction

      public static <O> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>,org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>> createCumulativeFunction(Iterable<? extends Meter> inputBatchMeters)
    • createCumulativeFunction

      public static <O> com.google.common.base.Function<List<org.opendaylight.yangtools.yang.common.RpcResult<O>>,org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>> createCumulativeFunction(Iterable<? extends Meter> inputBatchMeters, int sizeOfInputBatch)