Bug 5596 Cleaning part 1
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / device / DeviceState.java
index d5fcf47ce94b0beb337487d2ed15af5d988afe11..becc8d09cb25ee177bad18cfe1e3178a760d06d2 100644 (file)
@@ -8,50 +8,11 @@
 
 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
@@ -78,13 +39,6 @@ public interface DeviceState {
      */
     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.
      *
@@ -121,14 +75,6 @@ public interface DeviceState {
 
     void setQueueStatisticsAvailable(boolean available);
 
-    void setDeviceSynchronized(boolean deviceSynchronized);
-
-    void setRole(OfpRole ofpRole);
-
-    OfpRole getRole();
-
     boolean isStatisticsPollingEnabled();
 
-    void setStatisticsPollingEnabledProp(boolean statPollEnabled);
-
 }