Moved Netty messaging out of onos-core-dist to under onos-utils
diff --git a/utils/netty/src/main/java/org/onlab/netty/messaging/SimpleServer.java b/utils/netty/src/main/java/org/onlab/netty/messaging/SimpleServer.java
new file mode 100644
index 0000000..12fa025
--- /dev/null
+++ b/utils/netty/src/main/java/org/onlab/netty/messaging/SimpleServer.java
@@ -0,0 +1,19 @@
+package org.onlab.netty;
+
+public final class SimpleServer {
+ private SimpleServer() {}
+
+ public static void main(String... args) throws Exception {
+ NettyMessagingService server = new TestNettyMessagingService();
+ server.activate();
+ server.registerHandler("simple", new LoggingHandler());
+ server.registerHandler("echo", new EchoHandler());
+ }
+
+ public static class TestNettyMessagingService extends NettyMessagingService {
+ protected TestNettyMessagingService() {
+ Serializer serializer = new KryoSerializer();
+ this.serializer = serializer;
+ }
+ }
+}