Package org.apache.pig.penny.impl.comm

Examples of org.apache.pig.penny.impl.comm.Message.type()


        public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
                throws Exception {
            final Channel channel = ctx.getChannel();
            Message m = (Message)e.getMessage();
            Tuple t = cb.receive(m);
            if (m.type() == Type.DEREG) {
                channel.close();
            }
            if (t != null) {
                if (m.type() == Type.REG) {
                    PhysicalLocation pl = new PhysicalLocation(m.source().logId(), (Integer)t.get(0));
View Full Code Here


            Tuple t = cb.receive(m);
            if (m.type() == Type.DEREG) {
                channel.close();
            }
            if (t != null) {
                if (m.type() == Type.REG) {
                    PhysicalLocation pl = new PhysicalLocation(m.source().logId(), (Integer)t.get(0));
                    plMap.put(pl, channel);
                    ctx.setAttachment(pl);
                }
                Message rsp = new Message(m.type(), m.getAck(), m.destination(), m.source(), t);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.