2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.openflowplugin.api.openflow.device;
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
15 import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
18 * Holder of device's structure
20 public interface DeviceState {
23 * @return true if this session is valid
28 * @param valid the valid to set
30 void setValid(boolean valid);
33 * Return true if we have relevant meter information
38 boolean isMetersAvailable();
41 * Set information about meter statistics availability.
43 void setMeterAvailable(boolean available);
46 * Return true if we have relevant group information
51 boolean isGroupAvailable();
54 * Set information about group statistics availability.
56 void setGroupAvailable(boolean available);
59 * Method returns true if initial statistics data were collected and written to DS.
63 boolean deviceSynchronized();
66 * Method returns true, if device capabilities provides flow statistics.
70 boolean isFlowStatisticsAvailable();
72 void setFlowStatisticsAvailable(boolean available);
75 * Method returns true, if device capabilities provides table statistics.
79 boolean isTableStatisticsAvailable();
81 void setTableStatisticsAvailable(boolean available);
84 * Method returns true, if device capabilities provides flow statistics.
88 boolean isPortStatisticsAvailable();
90 void setPortStatisticsAvailable(boolean available);
93 * Method returns true, if device capabilities provides queue statistics.
97 boolean isQueueStatisticsAvailable();
99 void setQueueStatisticsAvailable(boolean available);
101 void setDeviceSynchronized(boolean deviceSynchronized);
103 boolean isStatisticsPollingEnabled();
105 void setStatisticsPollingEnabledProp(boolean statPollEnabled);