Add EOS listener.
[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     boolean isMetersAvailable();
21
22     /**
23      * Set information about meter statistics availability.
24      */
25     void setMeterAvailable(boolean available);
26
27     /**
28      * Return true if we have relevant group information
29      * from device.
30      */
31     boolean isGroupAvailable();
32
33     /**
34      * Set information about group statistics availability.
35      */
36     void setGroupAvailable(boolean available);
37
38     /**
39      * Method returns true, if device capabilities provides flow statistics.
40      */
41     boolean isFlowStatisticsAvailable();
42
43     void setFlowStatisticsAvailable(boolean available);
44
45     /**
46      * Method returns true, if device capabilities provides table statistics.
47      */
48     boolean isTableStatisticsAvailable();
49
50     void setTableStatisticsAvailable(boolean available);
51
52     /**
53      * Method returns true, if device capabilities provides flow statistics.
54      */
55     boolean isPortStatisticsAvailable();
56
57     void setPortStatisticsAvailable(boolean available);
58
59     /**
60      * Method returns true, if device capabilities provides queue statistics.
61      */
62     boolean isQueueStatisticsAvailable();
63
64     void setQueueStatisticsAvailable(boolean available);
65 }