Optimized imports
[openflowplugin.git] / openflowplugin-api / src / main / java / org / opendaylight / openflowplugin / api / openflow / md / core / session / SessionManager.java
index d82bd7cef7bf23dac1ae51ac1be8f2d9c5f397df..c7685e56ea2ca0fb0b7660dfe025e24989dcbcbd 100644 (file)
@@ -18,9 +18,9 @@ import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
 import org.opendaylight.openflowplugin.api.openflow.md.core.ConnectionConductor;
 import org.opendaylight.openflowplugin.api.openflow.md.core.IMDMessageTranslator;
 import org.opendaylight.openflowplugin.api.openflow.md.core.SwitchConnectionDistinguisher;
-import org.opendaylight.openflowplugin.api.statistics.MessageSpy;
 import org.opendaylight.openflowplugin.api.openflow.md.core.TranslatorKey;
 import org.opendaylight.openflowplugin.api.openflow.md.queue.PopListener;
+import org.opendaylight.openflowplugin.api.openflow.statistics.MessageSpy;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
 import org.opendaylight.yangtools.concepts.ListenerRegistration;
 import org.opendaylight.yangtools.yang.binding.DataContainer;
@@ -52,6 +52,7 @@ public interface SessionManager extends AutoCloseable {
      * @param context
      */
     public void addSessionContext(SwitchSessionKeyOF sessionKey, SessionContext context);
+    public void setRole(SessionContext context);
 
     /**
      * disconnect particular auxiliary {@link ConnectionAdapter}, identified by
@@ -134,4 +135,8 @@ public interface SessionManager extends AutoCloseable {
      */
     MessageSpy<DataContainer> getMessageSpy();
 
+    /**
+     * @return collection of current sessions
+     */
+    Collection<SessionContext> getAllSessions();
 }