/** * Instantiates a new lens ml jersey client. * * @param connection the connection */ public LensMLJerseyClient(LensConnection connection, String password) { this.connection = connection; connection.open(password); this.sessionHandle = null; }
/** * Instantiates a new lens jdbc connection. * * @param uri the uri * @param info the info */ public LensJdbcConnection(String uri, Properties info) { LensConnectionParams params = JDBCUtils.parseUrl(uri); connection = new LensConnection(params); // TODO: should we prompt here? connection.open(""); }
/** * Instantiates a new lens jdbc connection. * * @param uri the uri * @param info the info */ public LensJdbcConnection(String uri, Properties info) { LensConnectionParams params = JDBCUtils.parseUrl(uri); connection = new LensConnection(params); // TODO: should we prompt here? connection.open(""); }
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."); }