package org.opendaylight.openflowplugin.api.openflow.device;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.NodeKey;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.GetFeaturesOutput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.role.service.rev150727.OfpRole;
-import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier;
-
/**
- * Created by Martin Bobak <mbobak@cisco.com> on 25.2.2015.
+ * Holder of device's structure
*/
public interface DeviceState {
- /**
- * @return id of encapsulated node
- */
- NodeId getNodeId();
-
- /**
- * @return {@link Node} instance identifier
- */
- KeyedInstanceIdentifier<Node, NodeKey> getNodeInstanceIdentifier();
-
- /**
- * @return the features of corresponding switch
- */
- GetFeaturesOutput getFeatures();
-
- /**
- * @return true if this session is valid
- */
- boolean isValid();
-
- /**
- * @param valid the valid to set
- */
- void setValid(boolean valid);
-
- /**
- * Return node current OF protocol version
- *
- * @return
- */
- short getVersion();
-
/**
* Return true if we have relevant meter information
* from device
*/
void setGroupAvailable(boolean available);
- /**
- * Method returns true if initial statistics data were collected and written to DS.
- *
- * @return
- */
- boolean deviceSynchronized();
-
/**
* Method returns true, if device capabilities provides flow statistics.
*
boolean isQueueStatisticsAvailable();
void setQueueStatisticsAvailable(boolean available);
-
- void setDeviceSynchronized(boolean deviceSynchronized);
-
- boolean isStatisticsPollingEnabled();
-
- void setStatisticsPollingEnabledProp(boolean statPollEnabled);
-
}