Examples of SetACLResponse


Examples of org.apache.zookeeper_voltpatches.proto.SetACLResponse

                err = Code.get(rc.err);
                break;
            }
            case OpCode.setACL: {
                lastOp = "SETA";
                rsp = new SetACLResponse(rc.stat);
                err = Code.get(rc.err);
                break;
            }
            case OpCode.closeSession: {
                lastOp = "CLOS";
View Full Code Here

Examples of org.apache.zookeeper_voltpatches.proto.SetACLResponse

  }
  public int compareTo (Object peer_) throws ClassCastException {
    if (!(peer_ instanceof SetACLResponse)) {
      throw new ClassCastException("Comparing different types of records.");
    }
    SetACLResponse peer = (SetACLResponse) peer_;
    int ret = 0;
    ret = stat.compareTo(peer.stat);
    if (ret != 0) return ret;
     return ret;
  }
View Full Code Here

Examples of org.apache.zookeeper_voltpatches.proto.SetACLResponse

      return false;
    }
    if (peer_ == this) {
      return true;
    }
    SetACLResponse peer = (SetACLResponse) peer_;
    boolean ret = false;
    ret = stat.equals(peer.stat);
    if (!ret) return ret;
     return ret;
  }
View Full Code Here

Examples of org.apache.zookeeper_voltpatches.proto.SetACLResponse

        if (acl != null && acl.size() == 0) {
            throw new KeeperException.InvalidACLException();
        }
        request.setAcl(acl);
        request.setVersion(version);
        SetACLResponse response = new SetACLResponse();
        ReplyHeader r = cnxn.submitRequest(h, request, response, null);
        if (r.getErr() != 0) {
            throw KeeperException.create(KeeperException.Code.get(r.getErr()),
                    clientPath);
        }
        return response.getStat();
    }
View Full Code Here

Examples of org.apache.zookeeper_voltpatches.proto.SetACLResponse

        h.setType(ZooDefs.OpCode.setACL);
        SetACLRequest request = new SetACLRequest();
        request.setPath(serverPath);
        request.setAcl(acl);
        request.setVersion(version);
        SetACLResponse response = new SetACLResponse();
        cnxn.queuePacket(h, new ReplyHeader(), request, response, cb,
                clientPath, serverPath, ctx, null);
    }
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.