-/* Copyright (C)2013 Pantheon Technologies, s.r.o. All rights reserved. */
+/*
+ * Copyright (c) 2013 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
package org.opendaylight.openflowjava.protocol.impl.core;
import io.netty.bootstrap.ServerBootstrap;
import org.opendaylight.openflowjava.protocol.api.connection.SwitchConnectionHandler;
import org.opendaylight.openflowjava.protocol.impl.connection.ServerFacade;
+import org.opendaylight.openflowjava.protocol.impl.serialization.SerializationFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
*/
@Override
public void run() {
- LOGGER.info("Switch ");
bossGroup = new NioEventLoopGroup();
workerGroup = new NioEventLoopGroup();
try {
channelInitializer.setSwitchConnectionHandler(switchConnectionHandler);
}
+ /**
+ * @param switchIdleTimeout in milliseconds
+ */
public void setSwitchIdleTimeout(long switchIdleTimeout) {
channelInitializer.setSwitchIdleTimeout(switchIdleTimeout);
}
+
+ /**
+ * @param tlsSupported
+ */
+ public void setEncryption(boolean tlsSupported) {
+ channelInitializer.setEncryption(tlsSupported);
+ }
+ /**
+ * @param sf serialization factory
+ */
+ public void setSerializationFactory(SerializationFactory sf) {
+ channelInitializer.setSerializationFactory(sf);
+ }
}