Examples of initFromBuffer()


Examples of org.voltdb.ClientResponseImpl.initFromBuffer()

                    }
                }
                while (message.hasRemaining());
                message.flip();
                ClientResponseImpl response = new ClientResponseImpl();
                response.initFromBuffer(message);
                return response;
            }
        });
    }
}
View Full Code Here

Examples of org.voltdb.ClientResponseImpl.initFromBuffer()

        @Override
        public void handleMessage(ByteBuffer buf, Connection c) {
            long nowNanos = System.nanoTime();
            ClientResponseImpl response = new ClientResponseImpl();
            try {
                response.initFromBuffer(buf);
            } catch (IOException e1) {
                // TODO Auto-generated catch block
                e1.printStackTrace();
            }
View Full Code Here

Examples of org.voltdb.ClientResponseImpl.initFromBuffer()

         * Handle an incoming message
         * @throws IOException
         */
        public void handleInput(ByteBuffer message, Connection connection) throws IOException {
            ClientResponseImpl response = new ClientResponseImpl();
            response.initFromBuffer(message);
            ProcedureCallback cb = null;
            cb = m_callbacks.remove(response.getClientHandle());
            if (cb != null) {
                try {
                    cb.clientCallback(response);
View Full Code Here

Examples of org.voltdb.StoredProcedureInvocation.initFromBuffer()

        buf.flip();

        StoredProcedureInvocation spi = new StoredProcedureInvocation();
        try {
            spi.initFromBuffer(buf);
        } catch (IOException e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

Examples of org.voltdb.StoredProcedureInvocation.initFromBuffer()

        buf.flip();

        StoredProcedureInvocation spi = new StoredProcedureInvocation();
        try {
            spi.initFromBuffer(buf);
        } catch (IOException e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

Examples of org.voltdb.StoredProcedureInvocation.initFromBuffer()

        try {
            ByteBuffer buf = ByteBuffer.allocate(pi.getSerializedSize());
            pi.flattenToBuffer(buf);
            buf.flip();
            spi = new StoredProcedureInvocation();
            spi.initFromBuffer(buf);
        } catch (IOException e) {
            e.printStackTrace();
            fail();
        }
View Full Code Here

Examples of org.voltdb.StoredProcedureInvocation.initFromBuffer()

        @Override
        public void handleMessage(ByteBuffer message, Connection c) {
            try {
                StoredProcedureInvocation spi = new StoredProcedureInvocation();
                spi.initFromBuffer(message);

                final String proc = spi.getProcName();

                // record if we got a ping
                if (proc.equals("@Ping"))
View Full Code Here

Examples of org.voltdb.StoredProcedureInvocation.initFromBuffer()

            ByteBuffer buf = ByteBuffer.allocate(invocation.getSerializedSize());
            invocation.flattenToBuffer(buf);
            buf.flip();

            StoredProcedureInvocation rti = new StoredProcedureInvocation();
            rti.initFromBuffer(buf);
            return rti;
        } else {
            return invocation;
        }
    }
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.