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 | |
| 8 | /** |
| 9 | * Returns the number of milliseconds this flow rule has been applied. |
| 10 | * |
| 11 | * @return number of millis |
| 12 | */ |
| 13 | long lifeMillis(); |
| 14 | |
| 15 | /** |
| 16 | * Returns the number of milliseconds this flow rule has been idle. |
| 17 | * |
| 18 | * @return number of millis |
| 19 | */ |
| 20 | long idleMillis(); |
| 21 | |
| 22 | /** |
| 23 | * Returns the number of packets this flow rule has matched. |
| 24 | * |
| 25 | * @return number of packets |
| 26 | */ |
| 27 | long packets(); |
| 28 | |
| 29 | /** |
| 30 | * Returns the number of bytes this flow rule has matched. |
| 31 | * |
| 32 | * @return number of bytes |
| 33 | */ |
| 34 | long bytes(); |
| 35 | |
| 36 | } |