Class MeterUtil


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

      • 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 Detail

      • buildMeterPath

        public static MeterRef buildMeterPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.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)