tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 1 | package org.onlab.onos.net.flow; |
| 2 | |
| 3 | /** |
| 4 | * Represents a flow rule and its associated accumulated metrics. |
| 5 | */ |
| 6 | public interface FlowEntry extends FlowRule { |
| 7 | |
Ayaka Koshibe | 414196d | 2014-09-17 13:46:43 -0700 | [diff] [blame] | 8 | |
| 9 | FlowId id(); |
| 10 | |
tom | 8bb1606 | 2014-09-12 14:47:46 -0700 | [diff] [blame] | 11 | /** |
| 12 | * Returns the number of milliseconds this flow rule has been applied. |
| 13 | * |
| 14 | * @return number of millis |
| 15 | */ |
| 16 | long lifeMillis(); |
| 17 | |
| 18 | /** |
| 19 | * Returns the number of milliseconds this flow rule has been idle. |
| 20 | * |
| 21 | * @return number of millis |
| 22 | */ |
| 23 | long idleMillis(); |
| 24 | |
| 25 | /** |
| 26 | * Returns the number of packets this flow rule has matched. |
| 27 | * |
| 28 | * @return number of packets |
| 29 | */ |
| 30 | long packets(); |
| 31 | |
| 32 | /** |
| 33 | * Returns the number of bytes this flow rule has matched. |
| 34 | * |
| 35 | * @return number of bytes |
| 36 | */ |
| 37 | long bytes(); |
| 38 | |
| 39 | } |