X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=openflowplugin-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fapi%2Fopenflow%2Fdevice%2FDeviceState.java;h=becc8d09cb25ee177bad18cfe1e3178a760d06d2;hb=d8cc382a8dbdcb7c89b68457b3ae0b6d576ee28f;hp=d5fcf47ce94b0beb337487d2ed15af5d988afe11;hpb=e077fe8509dd91a31bb9d0c109370cb2d78aeabf;p=openflowplugin.git diff --git a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceState.java b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceState.java index d5fcf47ce9..becc8d09cb 100644 --- a/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceState.java +++ b/openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/device/DeviceState.java @@ -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 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); - }