Java 类org.apache.zookeeper.proto.RemoveWatchesRequest 实例源码

项目:https-github.com-apache-zookeeper    文件:ZooKeeper.java   
private Record getRemoveWatchesRequest(int opCode, WatcherType watcherType,
        final String serverPath) {
    Record request = null;
    switch (opCode) {
    case ZooDefs.OpCode.checkWatches:
        CheckWatchesRequest chkReq = new CheckWatchesRequest();
        chkReq.setPath(serverPath);
        chkReq.setType(watcherType.getIntValue());
        request = chkReq;
        break;
    case ZooDefs.OpCode.removeWatches:
        RemoveWatchesRequest rmReq = new RemoveWatchesRequest();
        rmReq.setPath(serverPath);
        rmReq.setType(watcherType.getIntValue());
        request = rmReq;
        break;
    default:
        LOG.warn("unknown type " + opCode);
        break;
    }
    return request;
}
项目:SecureKeeper    文件:ZooKeeper.java   
private Record getRemoveWatchesRequest(int opCode, WatcherType watcherType,
        final String serverPath) {
    Record request = null;
    switch (opCode) {
    case ZooDefs.OpCode.checkWatches:
        CheckWatchesRequest chkReq = new CheckWatchesRequest();
        chkReq.setPath(serverPath);
        chkReq.setType(watcherType.getIntValue());
        request = chkReq;
        break;
    case ZooDefs.OpCode.removeWatches:
        RemoveWatchesRequest rmReq = new RemoveWatchesRequest();
        rmReq.setPath(serverPath);
        rmReq.setType(watcherType.getIntValue());
        request = rmReq;
        break;
    default:
        LOG.warn("unknown type " + opCode);
        break;
    }
    return request;
}
项目:SecureKeeper    文件:ZooKeeper.java   
private Record getRemoveWatchesRequest(int opCode, WatcherType watcherType,
        final String serverPath) {
    Record request = null;
    switch (opCode) {
    case ZooDefs.OpCode.checkWatches:
        CheckWatchesRequest chkReq = new CheckWatchesRequest();
        chkReq.setPath(serverPath);
        chkReq.setType(watcherType.getIntValue());
        request = chkReq;
        break;
    case ZooDefs.OpCode.removeWatches:
        RemoveWatchesRequest rmReq = new RemoveWatchesRequest();
        rmReq.setPath(serverPath);
        rmReq.setType(watcherType.getIntValue());
        request = rmReq;
        break;
    default:
        LOG.warn("unknown type " + opCode);
        break;
    }
    return request;
}
项目:zookeeper-lite    文件:IRemoveWatchesRequest.java   
public IRemoveWatchesRequest() {
    this(new RemoveWatchesRequest());
}
项目:zookeeper-lite    文件:IRemoveWatchesRequest.java   
public IRemoveWatchesRequest(String path, int type) {
    this(new RemoveWatchesRequest(path, type));
}
项目:zookeeper-lite    文件:IRemoveWatchesRequest.java   
public IRemoveWatchesRequest(RemoveWatchesRequest record) {
    super(record);
}