Examples of ExploreClient


Examples of co.cask.cdap.explore.client.ExploreClient

    List<String> tokenParams = Lists.newArrayList(params.getExtraInfos().get(ConnectionParams.Info.EXPLORE_AUTH_TOKEN));
    if (tokenParams != null && !tokenParams.isEmpty() && !tokenParams.get(0).isEmpty()) {
      authToken = tokenParams.get(0);
    }

    ExploreClient exploreClient = new FixedAddressExploreClient(params.getHost(), params.getPort(), authToken);
    if (!exploreClient.isServiceAvailable()) {
      throw new SQLException("Cannot connect to " + url + ", service unavailable");
    }
    return new ExploreConnection(exploreClient);
  }
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.