Package org.apache.zookeeper.proto

Examples of org.apache.zookeeper.proto.SyncRequest


       ByteBuffer bb = ByteBuffer.wrap(boas.toByteArray());
       Request readReq = new Request(null, 0x0, 0, OpCode.getData,
               bb, new ArrayList<Id>());

       boas.reset();
       SyncRequest syncReq = new SyncRequest("/testrace");
       syncReq.serialize(boa, "request");
       bb = ByteBuffer.wrap(boas.toByteArray());
       Request writeReq = new Request(null, 0x0, 0, OpCode.sync,
                                 bb, new ArrayList<Id>());

       processor.addToCommittedRequests(writeReq);
View Full Code Here


                err = Code.get(rc.err);
                break;
            }
            case OpCode.sync: {
                lastOp = "SYNC";
                SyncRequest syncRequest = new SyncRequest();
                ByteBufferInputStream.byteBuffer2Record(request.request,
                        syncRequest);
                rsp = new SyncResponse(syncRequest.getPath());
                break;
            }
            case OpCode.check: {
                lastOp = "CHEC";
                rsp = new SetDataResponse(rc.stat);
View Full Code Here

TOP

Related Classes of org.apache.zookeeper.proto.SyncRequest

Copyright © 2018 www.massapicom. 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.