public interface MeterTracker
Facilitates:
When sending messages, MessageFutures are used to allow the caller
to determine the outcome of the request either synchronously or
asynchronously, at their preference.
| Modifier and Type | Method and Description |
|---|---|
List<MBodyExperimenter> |
getExperimenter(DataPathId dpid)
Returns meter configuration or statistics (for OF 1.0 datapaths),
encoded in experimenter multipart replies.
|
List<MBodyMeterConfig> |
getMeterConfig(DataPathId dpid)
Returns the meter configuration details from the specified datapath.
|
MBodyMeterConfig |
getMeterConfig(DataPathId dpid,
MeterId meterId)
Returns the meter configuration for the given meter ID, from the
specified datapath.
|
MBodyMeterFeatures |
getMeterFeatures(DataPathId dpid)
Returns the meter features for the specified datapath.
|
List<MBodyMeterStats> |
getMeterStats(DataPathId dpid)
Returns the meter statistics from the specified datapath.
|
MBodyMeterStats |
getMeterStats(DataPathId dpid,
MeterId meterId)
Returns the meter statistics for the given meter ID, from the specified
datapath.
|
MessageFuture |
sendMeterMod(OfmMeterMod meterMod,
DataPathId dpid)
Sends the given MeterMod message to the specified datapath.
|
List<MBodyMeterConfig> getMeterConfig(DataPathId dpid)
Note that this is a synchronous call that blocks until all the meter configuration replies have returned from the datapath.
dpid - the target datapathNullPointerException - if dpid is nullNotFoundException - if the specified datapath does not existVersionMismatchException - if datapath is not
OpenFlow 1.3 compliantMBodyMeterConfig getMeterConfig(DataPathId dpid, MeterId meterId)
Note that this is a synchronous call that blocks until all the meter configuration reply has returned from the datapath.
dpid - the target datapathmeterId - the ID of the meterNullPointerException - if either parameter is nullNotFoundException - if the specified datapath or meter
does not existVersionMismatchException - if datapath is not
OpenFlow 1.3 compliantList<MBodyMeterStats> getMeterStats(DataPathId dpid)
Note that this is a synchronous call that blocks until all the meter statistics replies have returned from the datapath.
dpid - the target datapathNullPointerException - if dpid is nullNotFoundException - if the specified datapath does not existVersionMismatchException - if datapath is not
OpenFlow 1.3 compliantMBodyMeterStats getMeterStats(DataPathId dpid, MeterId meterId)
Note that this is a synchronous call that blocks until the meter statistics reply has returned from the datapath.
dpid - the target datapathmeterId - the target meter IDNullPointerException - if either parameter is nullNotFoundException - if the specified datapath or meter
does not existVersionMismatchException - if datapath is not
OpenFlow 1.3 compliantMBodyMeterFeatures getMeterFeatures(DataPathId dpid)
Note that this is a synchronous call that blocks until the meter features reply has returned from the datapath.
dpid - the target datapathNullPointerException - if dpid is nullNotFoundException - if the specified datapath does not existVersionMismatchException - if datapath is not
OpenFlow 1.3 compliantList<MBodyExperimenter> getExperimenter(DataPathId dpid)
Note that this is a synchronous call that blocks until the replies have returned from the datapath.
dpid - the target datapathNullPointerException - if dpid is nullNotFoundException - if the specified datapath does not existMessageFuture sendMeterMod(OfmMeterMod meterMod, DataPathId dpid) throws OpenflowException
Adds the meter to the specified datapath if the message's
command is ADD.
Modifies the meter on the specified datapath if the message's
command is MODIFY.
Deletes the meter from the specified datapath if the message's
command is DELETE.
meterMod - the MeterMod message to senddpid - the target datapathNullPointerException - if either parameter is nullIllegalArgumentException - if meterMod is mutableNotFoundException - if the specified datapath does not existOpenflowException - if there was an issue sending the messageMeterModCommandCopyright © 2014. All Rights Reserved.