public LensMetadataClient(LensConnection connection) { this.connection = connection; this.params = connection.getLensConnectionParams(); objFact = new ObjectFactory(); }
/** * Gets the prepared queries web target. * * @param client the client * @return the prepared queries web target */ private WebTarget getPreparedQueriesWebTarget(Client client) { return client.target(connection.getLensConnectionParams().getBaseConnectionUrl()) .path(connection.getLensConnectionParams().getQueryResourcePath()).path("preparedqueries"); }
/** * Gets the query web target. * * @param client the client * @return the query web target */ private WebTarget getQueryWebTarget(Client client) { return client.target(connection.getLensConnectionParams().getBaseConnectionUrl()) .path(connection.getLensConnectionParams().getQueryResourcePath()).path("queries"); }
/** * Gets the user for the lens session */ public String getUser() { return this.connection.getLensConnectionParams().getUser(); } }
public LensMetadataClient(LensConnection connection) { this.connection = connection; this.params = connection.getLensConnectionParams(); objFact = new ObjectFactory(); }
/** * Gets the prepared queries web target. * * @param client the client * @return the prepared queries web target */ private WebTarget getPreparedQueriesWebTarget(Client client) { return client.target(connection.getLensConnectionParams().getBaseConnectionUrl()) .path(connection.getLensConnectionParams().getQueryResourcePath()).path("preparedqueries"); }
/** * Gets the user for the lens session */ public String getUser() { return this.connection.getLensConnectionParams().getUser(); } }
/** * Gets the query web target. * * @param client the client * @return the query web target */ private WebTarget getQueryWebTarget(Client client) { return client.target(connection.getLensConnectionParams().getBaseConnectionUrl()) .path(connection.getLensConnectionParams().getQueryResourcePath()).path("queries"); }
public Configuration getConf() { return connection.getLensConnectionParams().getConf(); }
protected WebTarget getMLWebTarget() { Client client = connection.buildClient(); LensConnectionParams connParams = connection.getLensConnectionParams(); String baseURI = connParams.getBaseConnectionUrl(); String mlURI = connParams.getConf().get(LENS_ML_RESOURCE_PATH, DEFAULT_ML_RESOURCE_PATH); return client.target(baseURI).path(mlURI); }
private void connectToLensServer() { log.debug("Connecting to lens server {}", new LensConnectionParams(conf)); connection = new LensConnection(new LensConnectionParams(conf)); connection.open(password); log.debug("Successfully connected to server {}", connection); pathValidator = new PathValidator(connection.getLensConnectionParams().getSessionConf()); Preconditions.checkNotNull(pathValidator, "Error in initializing Path Validator."); }
private void connectToLensServer() { log.debug("Connecting to lens server {}", new LensConnectionParams(conf)); connection = new LensConnection(new LensConnectionParams(conf)); connection.open(password); log.debug("Successfully connected to server {}", connection); pathValidator = new PathValidator(connection.getLensConnectionParams().getSessionConf()); Preconditions.checkNotNull(pathValidator, "Error in initializing Path Validator."); }
LensClient.getCliLogger().debug("Query {} status: {}", handle, queryDetails.getStatus()); try { Thread.sleep(connection.getLensConnectionParams().getQueryPollInterval()); } catch (InterruptedException e) { throw new IllegalStateException(e); LensClient.getCliLogger().info("Query Status:{} ", queryDetails.getStatus()); try { Thread.sleep(connection.getLensConnectionParams().getQueryPollInterval()); } catch (InterruptedException e) { throw new IllegalStateException(e);
LensClient.getCliLogger().debug("Query {} status: {}", handle, queryDetails.getStatus()); try { Thread.sleep(connection.getLensConnectionParams().getQueryPollInterval()); } catch (InterruptedException e) { throw new IllegalStateException(e); LensClient.getCliLogger().info("Query Status:{} ", queryDetails.getStatus()); try { Thread.sleep(connection.getLensConnectionParams().getQueryPollInterval()); } catch (InterruptedException e) { throw new IllegalStateException(e);