commit | 7bb050183de18d29d5865ddd6660d5fec3d7e2f6 | [log] [tgz] |
---|---|---|
author | alshabib <alshabibi.ali@gmail.com> | Wed Aug 05 10:15:09 2015 -0700 |
committer | alshabib <alshabibi.ali@gmail.com> | Tue Aug 18 10:24:21 2015 -0700 |
tree | 0c23603c02b898161d199ef1aaac4810649c77d2 | |
parent | 47e7b804de77947017d91a54adf77e78b5d60b81 [diff] [blame] |
Initial implementation of Meter Service (needs testing) Change-Id: Ie07bd3e2bd7c67a6499c965d8926eb361ad16462 store impl started Change-Id: Ib8b474f40dcecff335a421c12ad149fe9830c427 full implementation Change-Id: Ie59fd61d02972bd04d887bdcca9745793b880681
diff --git a/incubator/api/src/main/java/org/onosproject/incubator/net/meter/Band.java b/incubator/api/src/main/java/org/onosproject/incubator/net/meter/Band.java index ecd6504..1342a22 100644 --- a/incubator/api/src/main/java/org/onosproject/incubator/net/meter/Band.java +++ b/incubator/api/src/main/java/org/onosproject/incubator/net/meter/Band.java
@@ -69,6 +69,20 @@ */ Type type(); + /** + * Returns the packets seen by this band. + * + * @return a long value + */ + long packets(); + + /** + * Return the bytes seen by this band. + * + * @return a byte counter + */ + long bytes(); + interface Builder { /**