From: Tony Tkacik Date: Wed, 7 May 2014 11:14:22 +0000 (+0000) Subject: Merge "Bug 946: Fixed eclipse errors with nagasena projects" X-Git-Tag: autorelease-tag-v20140601202136_82eb3f9~130 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=9b843f3565f84258ebea1b437ae1025dfd4a52d2;hp=-c Merge "Bug 946: Fixed eclipse errors with nagasena projects" --- 9b843f3565f84258ebea1b437ae1025dfd4a52d2 diff --combined opendaylight/commons/opendaylight/pom.xml index c0fc4024ce,fbcacbdc83..6ec506b030 --- a/opendaylight/commons/opendaylight/pom.xml +++ b/opendaylight/commons/opendaylight/pom.xml @@@ -19,7 -19,6 +19,7 @@@ 0.4.2-SNAPSHOT 0.5.2-SNAPSHOT + 4.1 1.50 2.3.7 @@@ -56,9 -55,8 +56,9 @@@ 3.0.0 - 0000.0002.0038.0-SNAPSHOT + 0000.0002.0038.0 2.15 + 1.0.1 3.0.1 3.1.0 3.1.6 @@@ -79,7 -77,7 +79,7 @@@ 2010.09.24.4-SNAPSHOT 2013.10.21.2-SNAPSHOT 2010.09.24.4-SNAPSHOT - 2.3.0 + 2.3.2 0.6.2.201302030002 2.4 1.7 @@@ -94,7 -92,6 +94,7 @@@ 2.0.1 1.1.1 4.8.1 + 3.0.1 1.0.9 0.4.2-SNAPSHOT 2.5.1 @@@ -112,7 -109,6 +112,7 @@@ http://nexus.opendaylight.org/content 2013.08.27.4-SNAPSHOT + 20080701 0.0.2-SNAPSHOT 5.0.0 5.0.0 @@@ -144,9 -140,7 +144,9 @@@ jacoco java org.openflow.openflowj,net.sf.jung2 + 1.0.0 1.2.1 + 3.1.4.RELEASE 3.1.3.RELEASE 3.1.3.RELEASE 0.4.2-SNAPSHOT @@@ -212,12 -206,6 +212,12 @@@ jackson-databind ${jackson.version} + + com.fasterxml.jackson.datatype + jackson-datatype-json-org + ${jackson.version} + + com.fasterxml.jackson.jaxrs jackson-jaxrs-base @@@ -623,11 -611,6 +623,11 @@@ jolokia-osgi ${jolokia.version} + + org.json + json + ${org.json.version} + org.opendaylight.controller appauth @@@ -887,13 -870,6 +887,13 @@@ netconf-client ${netconf.version} + + + + org.opendaylight.controller + netconf-config-dispatcher + ${netconf.version} + org.opendaylight.controller netconf-impl @@@ -1099,11 -1075,6 +1099,11 @@@ sal-rest-connector ${mdsal.version} + + org.opendaylight.controller + sal-rest-docgen + ${mdsal.version} + org.opendaylight.controller sal-restconf-broker @@@ -1339,16 -1310,6 +1339,6 @@@ ganymed 1.1-SNAPSHOT - - org.opendaylight.controller.thirdparty - nagasena - ${exi.nagasena.version} - - - org.opendaylight.controller.thirdparty - nagasena-rta - ${exi.nagasena.version} - org.opendaylight.controller.thirdparty @@@ -1442,11 -1403,6 +1432,11 @@@ yang-model-util ${yangtools.version} + + org.opendaylight.yangtools + yang-parser-api + ${yangtools.version} + org.opendaylight.yangtools yang-parser-impl @@@ -1483,6 -1439,16 +1473,16 @@@ yang-ext ${yang-ext.version} + + org.openexi + nagasena + ${exi.nagasena.version} + + + org.openexi + nagasena-rta + ${exi.nagasena.version} + org.osgi org.osgi.compendium diff --combined opendaylight/distribution/opendaylight/pom.xml index 615668f5eb,b751394cfa..221866fdd9 --- a/opendaylight/distribution/opendaylight/pom.xml +++ b/opendaylight/distribution/opendaylight/pom.xml @@@ -39,11 -39,6 +39,11 @@@ jackson-databind + + com.fasterxml.jackson.datatype + jackson-datatype-json-org + + com.fasterxml.jackson.jaxrs jackson-jaxrs-base @@@ -58,7 -53,6 +58,7 @@@ com.fasterxml.jackson.module jackson-module-jaxb-annotations + com.google.code.gson gson @@@ -347,11 -341,6 +347,11 @@@ org.jolokia jolokia-osgi + + + org.json + json + org.opendaylight.controller appauth @@@ -876,12 -865,6 +876,12 @@@ org.opendaylight.controller netconf-client + + + + org.opendaylight.controller + netconf-config-dispatcher + org.opendaylight.controller netconf-impl @@@ -998,10 -981,6 +998,10 @@@ org.opendaylight.controller sal-rest-connector + + org.opendaylight.controller + sal-rest-docgen + org.opendaylight.controller sal-restconf-broker @@@ -1095,14 -1074,6 +1095,6 @@@ org.opendaylight.controller.thirdparty ganymed - - org.opendaylight.controller.thirdparty - nagasena - - - org.opendaylight.controller.thirdparty - nagasena-rta - org.opendaylight.yangtools binding-generator-api @@@ -1216,6 -1187,14 +1208,14 @@@ xtend-lib-osgi 2.4.3 + + org.openexi + nagasena + + + org.openexi + nagasena-rta + org.zeromq jeromq diff --combined opendaylight/netconf/netconf-it/src/test/java/org/opendaylight/controller/netconf/it/pax/IdentityRefNetconfTest.java index ebfcff3cd4,0aacfeef83..981f1148e4 --- a/opendaylight/netconf/netconf-it/src/test/java/org/opendaylight/controller/netconf/it/pax/IdentityRefNetconfTest.java +++ b/opendaylight/netconf/netconf-it/src/test/java/org/opendaylight/controller/netconf/it/pax/IdentityRefNetconfTest.java @@@ -19,9 -19,8 +19,9 @@@ import static org.ops4j.pax.exam.CoreOp import static org.ops4j.pax.exam.CoreOptions.streamBundle; import static org.ops4j.pax.exam.CoreOptions.systemPackages; import static org.ops4j.pax.exam.CoreOptions.systemProperty; -import io.netty.channel.nio.NioEventLoopGroup; +import io.netty.util.HashedWheelTimer; +import io.netty.util.Timer; import java.io.IOException; import java.net.InetSocketAddress; import java.util.concurrent.ExecutionException; @@@ -35,15 -34,11 +35,15 @@@ import org.junit.Test import org.junit.matchers.JUnitMatchers; import org.junit.runner.RunWith; import org.opendaylight.controller.netconf.api.NetconfMessage; -import org.opendaylight.controller.netconf.client.NetconfClientDispatcher; +import org.opendaylight.controller.netconf.client.NetconfClientDispatcherImpl; +import org.opendaylight.controller.netconf.client.SimpleNetconfClientSessionListener; +import org.opendaylight.controller.netconf.client.conf.NetconfClientConfiguration; +import org.opendaylight.controller.netconf.client.conf.NetconfClientConfigurationBuilder; import org.opendaylight.controller.netconf.client.test.TestingNetconfClient; import org.opendaylight.controller.netconf.util.test.XmlFileLoader; import org.opendaylight.controller.netconf.util.xml.XmlUtil; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker; +import org.opendaylight.protocol.framework.NeverReconnectStrategy; import org.ops4j.pax.exam.Configuration; import org.ops4j.pax.exam.Option; import org.ops4j.pax.exam.junit.PaxExam; @@@ -56,9 -51,6 +56,9 @@@ import org.xml.sax.SAXException import com.google.common.base.Preconditions; import com.google.common.base.Throwables; +import io.netty.channel.nio.NioEventLoopGroup; +import io.netty.util.concurrent.GlobalEventExecutor; + @Ignore @RunWith(PaxExam.class) public class IdentityRefNetconfTest { @@@ -112,8 -104,8 +112,8 @@@ mavenBundle("org.slf4j", "log4j-over-slf4j").versionAsInProject(), mavenBundle("ch.qos.logback", "logback-core").versionAsInProject(), mavenBundle("ch.qos.logback", "logback-classic").versionAsInProject(), - mavenBundle("org.opendaylight.controller.thirdparty", "nagasena").versionAsInProject(), - mavenBundle("org.opendaylight.controller.thirdparty", "nagasena-rta").versionAsInProject()); + mavenBundle("org.openexi", "nagasena").versionAsInProject(), + mavenBundle("org.openexi", "nagasena-rta").versionAsInProject()); } @@@ -129,15 -121,15 +129,15 @@@ public void testIdRef() throws Exception { Preconditions.checkNotNull(broker, "Controller not initialized"); - NioEventLoopGroup nettyThreadgroup = new NioEventLoopGroup(); - NetconfClientDispatcher clientDispatcher = new NetconfClientDispatcher(nettyThreadgroup, nettyThreadgroup, - CLIENT_CONNECTION_TIMEOUT_MILLIS); NetconfMessage edit = xmlFileToNetconfMessage("netconfMessages/editConfig_identities.xml"); NetconfMessage commit = xmlFileToNetconfMessage("netconfMessages/commit.xml"); NetconfMessage getConfig = xmlFileToNetconfMessage("netconfMessages/getConfig.xml"); - try (TestingNetconfClient netconfClient = new TestingNetconfClient("client", tcpAddress, CLIENT_CONNECTION_TIMEOUT_MILLIS, clientDispatcher)) { + NioEventLoopGroup nettyThreadgroup = new NioEventLoopGroup(); + Timer timer = new HashedWheelTimer(); + NetconfClientDispatcherImpl clientDispatcher = new NetconfClientDispatcherImpl(nettyThreadgroup, nettyThreadgroup, timer); + try (TestingNetconfClient netconfClient = new TestingNetconfClient("client", clientDispatcher, getClientConfiguration(tcpAddress))) { sendMessage(edit, netconfClient); sendMessage(commit, netconfClient); sendMessage(getConfig, netconfClient, "id-test", @@@ -149,9 -141,6 +149,9 @@@ clientDispatcher.close(); } catch (Exception e) { fail(Throwables.getStackTraceAsString(e)); + } finally { + nettyThreadgroup.shutdownGracefully().get(); + timer.stop(); } } @@@ -171,14 -160,4 +171,14 @@@ ParserConfigurationException { return XmlFileLoader.xmlFileToNetconfMessage(fileName); } + + public NetconfClientConfiguration getClientConfiguration(final InetSocketAddress tcpAddress) { + final NetconfClientConfigurationBuilder b = NetconfClientConfigurationBuilder.create(); + b.withAddress(tcpAddress); + b.withSessionListener(new SimpleNetconfClientSessionListener()); + b.withReconnectStrategy(new NeverReconnectStrategy(GlobalEventExecutor.INSTANCE, + CLIENT_CONNECTION_TIMEOUT_MILLIS)); + b.withConnectionTimeoutMillis(CLIENT_CONNECTION_TIMEOUT_MILLIS); + return b.build(); + } }