Example usage for org.apache.solr.common.cloud ZooKeeperException ZooKeeperException

List of usage examples for org.apache.solr.common.cloud ZooKeeperException ZooKeeperException

Introduction

In this page you can find the example usage for org.apache.solr.common.cloud ZooKeeperException ZooKeeperException.

Prototype

public ZooKeeperException(ErrorCode code, String msg, Throwable th) 

Source Link

Usage

From source file:com.ngdata.hbaseindexer.util.solr.SolrConfigLoader.java

License:Apache License

@Override
public String[] listConfigDir() {
    List<String> list;
    try {//  w w  w.  ja v a2s .  c om
        list = zk.getChildren(configZkPath, false, null);
    } catch (InterruptedException e) {
        // Restore the interrupted status
        Thread.currentThread().interrupt();
        log.error("", e);
        throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, "", e);
    } catch (KeeperException e) {
        log.error("", e);
        throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, "", e);
    }
    return list.toArray(new String[0]);
}