blob: 505d535ddd9d0aa91a97ccafa070e6278e08a30e [file] [log] [blame]
Srikanth Vavilapalli95810f52015-09-14 15:49:56 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Srikanth Vavilapalli95810f52015-09-14 15:49:56 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.flow;
17
18import org.onosproject.net.DeviceId;
19
20/**
21 * Interface for flow table statistics of a device.
22 */
23public interface TableStatisticsEntry {
24
25 /**
26 * Returns the device Id.
27 *
28 * @return device id
29 */
30 DeviceId deviceId();
31
32 /**
33 * Returns the table number.
34 *
35 * @return table number
36 */
37 int tableId();
38
39 /**
40 * Returns the number of active flow entries in this table.
41 *
42 * @return the number of active flow entries
43 */
44 long activeFlowEntries();
45
46 /**
47 * Returns the number of packets looked up in the table.
48 *
49 * @return the number of packets looked up in the table
50 */
51 long packetsLookedup();
52
53 /**
54 * Returns the number of packets that successfully matched in the table.
55 *
56 * @return the number of packets that successfully matched in the table
57 */
58 long packetsMatched();
59}