Bug 5596 Cleaning part 1
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceState.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.api.openflow.device;
10
11 /**
12  * Holder of device's structure
13  */
14 public interface DeviceState {
15
16     /**
17      * Return true if we have relevant meter information
18      * from device
19      *
20      * @return
21      */
22     boolean isMetersAvailable();
23
24     /**
25      * Set information about meter statistics availability.
26      */
27     void setMeterAvailable(boolean available);
28
29     /**
30      * Return true if we have relevant group information
31      * from device
32      *
33      * @return
34      */
35     boolean isGroupAvailable();
36
37     /**
38      * Set information about group statistics availability.
39      */
40     void setGroupAvailable(boolean available);
41
42     /**
43      * Method returns true, if device capabilities provides flow statistics.
44      *
45      * @return
46      */
47     boolean isFlowStatisticsAvailable();
48
49     void setFlowStatisticsAvailable(boolean available);
50
51     /**
52      * Method returns true, if device capabilities provides table statistics.
53      *
54      * @return
55      */
56     boolean isTableStatisticsAvailable();
57
58     void setTableStatisticsAvailable(boolean available);
59
60     /**
61      * Method returns true, if device capabilities provides flow statistics.
62      *
63      * @return
64      */
65     boolean isPortStatisticsAvailable();
66
67     void setPortStatisticsAvailable(boolean available);
68
69     /**
70      * Method returns true, if device capabilities provides queue statistics.
71      *
72      * @return
73      */
74     boolean isQueueStatisticsAvailable();
75
76     void setQueueStatisticsAvailable(boolean available);
77
78     boolean isStatisticsPollingEnabled();
79
80 }