package org.opendaylight.openflowplugin.openflow.md.core;
+import java.util.List;
import java.util.concurrent.Future;
+import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
import org.opendaylight.openflowplugin.openflow.md.core.session.SessionContext;
+import org.opendaylight.openflowplugin.openflow.md.queue.QueueProcessor;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
+import org.opendaylight.yangtools.yang.binding.DataObject;
+
+import com.google.common.collect.Lists;
/**
* @author mirehak
*/
-/**
- * @author mirehak
- *
- */
public interface ConnectionConductor {
/** distinguished connection states */
RIP
}
+ /** supported version ordered by height (highest version is at the beginning) */
+ public static final List<Short> versionOrder = Lists.newArrayList((short) 0x04, (short) 0x01);
+
/**
* initialize wiring around {@link #connectionAdapter}
*/
* @return the auxiliaryKey (null if this is a primary connection)
*/
public SwitchConnectionDistinguisher getAuxiliaryKey();
+
+ /**
+ * @return the connectionAdapter
+ */
+ public ConnectionAdapter getConnectionAdapter();
+
+ /**
+ * assign global queueKeeper
+ * @param queueKeeper
+ */
+ void setQueueProcessor(QueueProcessor<OfHeader, DataObject> queueKeeper);
+
+ /**
+ * @param errorHandler for internal exception handling
+ */
+ void setErrorHandler(ErrorHandler errorHandler);
+
+ /**
+ * @param conductorId
+ */
+ void setId(int conductorId);
+
}