Class MeterUtil
java.lang.Object
org.opendaylight.openflowplugin.impl.util.MeterUtil
Provides meter util methods.
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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>> static final com.google.common.base.Function
<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<AddMetersBatchOutput>> 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>> static final com.google.common.base.Function
<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<RemoveMetersBatchOutput>> 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>> static final com.google.common.base.Function
<org.opendaylight.yangtools.yang.common.RpcResult<List<BatchFailedMetersOutput>>, org.opendaylight.yangtools.yang.common.RpcResult<UpdateMetersBatchOutput>> -
Method Summary
Modifier and TypeMethodDescriptionstatic MeterRef
buildMeterPath
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, MeterId meterId) Create meter path.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) 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)
-
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>>, METER_ADD_COMPOSING_TRANSFORMorg.opendaylight.yangtools.yang.common.RpcResult<AddMetersBatchOutput>> -
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>>, METER_REMOVE_COMPOSING_TRANSFORMorg.opendaylight.yangtools.yang.common.RpcResult<RemoveMetersBatchOutput>> -
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>>, METER_UPDATE_COMPOSING_TRANSFORMorg.opendaylight.yangtools.yang.common.RpcResult<UpdateMetersBatchOutput>>
-
-
Method Details
-
buildMeterPath
public static MeterRef buildMeterPath(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> nodePath, MeterId meterId) Create meter path.- Parameters:
nodePath
- node pathmeterId
- 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)
-