blob: 7bef2c8df3a3216d295ef165b6aba77cf34204b4 [file] [log] [blame]
tom8bb16062014-09-12 14:47:46 -07001package org.onlab.onos.net.flow;
2
3/**
4 * Represents a flow rule and its associated accumulated metrics.
5 */
6public interface FlowEntry extends FlowRule {
7
Ayaka Koshibe414196d2014-09-17 13:46:43 -07008
9 FlowId id();
10
tom8bb16062014-09-12 14:47:46 -070011 /**
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}