package com.yahoo.slingstone.demo;

/**
 * Created with IntelliJ IDEA.
 * User: xuji
 * Date: 10/18/13
 * Time: 9:27 AM
 * To change this template use File | Settings | File Templates.
 */
public class FederationHandler {
}

@@ -33,192 +33,462 @@
 o;%0A%0A
-/**%0A * Created with IntelliJ IDEA.%0A * User: xuji%0A * Date: 10/18/13%0A * Time: 9:27 AM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class FederationHandler %7B
+import org.jboss.netty.channel.*;%0A%0A%0Apublic class FederationHandler extends SimpleChannelHandler %7B%0A    @Override%0A    public void messageReceived(ChannelHandlerContext cxt, MessageEvent e) %7B%0A        System.out.println(%22Got a message: %22 + e.getMessage());%0A    %7D%0A    @Override%0A    public void exceptionCaught(ChannelHandlerContext cxt, ExceptionEvent e) %7B%0A        e.getCause().printStackTrace();%0A%0A        Channel ch = e.getChannel();%0A        ch.close();%0A    %7D
 %0A%7D%0A

add FederationHandler