/** * Set the value of the property {@value #MINI_START_ACCUMULO_PROP} * * @param startAccumulo Flag to mini start Accumulo or not */ public FluoConfiguration setMiniStartAccumulo(boolean startAccumulo) { setProperty(MINI_START_ACCUMULO_PROP, startAccumulo); return this; }
/** * Set the value of the property {@value #MINI_START_ACCUMULO_PROP} * * @param startAccumulo Flag to mini start Accumulo or not */ public FluoConfiguration setMiniStartAccumulo(boolean startAccumulo) { setProperty(MINI_START_ACCUMULO_PROP, startAccumulo); return this; }
private FluoConfiguration setNonNegativeInt(String property, int value) { Preconditions.checkArgument(value >= 0, property + " must be non-negative"); setProperty(property, value); return this; }
private FluoConfiguration setNonNegativeInt(String property, int value) { Preconditions.checkArgument(value >= 0, property + " must be non-negative"); setProperty(property, value); return this; }
private FluoConfiguration setPositiveInt(String property, int value) { Preconditions.checkArgument(value > 0, property + " must be positive"); setProperty(property, value); return this; }
private FluoConfiguration setPositiveLong(String property, long value) { Preconditions.checkArgument(value > 0, property + " must be positive"); setProperty(property, value); return this; }
/** * Sets the connection retry timeout property {@value #CONNECTION_RETRY_TIMEOUT_MS_PROP} in * milliseconds. Must be positive. * * @since 1.2.0 */ public FluoConfiguration setConnectionRetryTimeout(int timeoutMS) { Preconditions.checkArgument(timeoutMS >= -1, CONNECTION_RETRY_TIMEOUT_MS_PROP + " must be >= -1"); setProperty(CONNECTION_RETRY_TIMEOUT_MS_PROP, timeoutMS); return this; }
private FluoConfiguration setNonEmptyString(String property, String value) { Objects.requireNonNull(value, property + " cannot be null"); Preconditions.checkArgument(!value.isEmpty(), property + " cannot be empty"); setProperty(property, value); return this; }
private FluoConfiguration setNonEmptyString(String property, String value) { Objects.requireNonNull(value, property + " cannot be null"); Preconditions.checkArgument(!value.isEmpty(), property + " cannot be empty"); setProperty(property, value); return this; }
/** * Sets URL to directory where observer jars can be found * <p> * Sets the value of the property {@value #OBSERVER_JARS_URL_PROP} * * @param observerJarsUrl URL to observer jars directory, must not be null * @since 1.2.0 */ public FluoConfiguration setObserverJarsUrl(String observerJarsUrl) { setProperty(OBSERVER_JARS_URL_PROP, verifyNotNull(OBSERVER_JARS_URL_PROP, observerJarsUrl)); return this; }
@Deprecated public FluoConfiguration setAccumuloClasspath(String path) { setProperty(ADMIN_ACCUMULO_CLASSPATH_PROP, verifyNotNull(ADMIN_ACCUMULO_CLASSPATH_PROP, path)); return this; }
/** * Sets directory where observers jars can found for initialization * <p> * Sets the value of the property {@value #OBSERVER_INIT_DIR_PROP} * * @param observerDir Path to directory, must not be null * @since 1.2.0 */ public FluoConfiguration setObserverInitDir(String observerDir) { setProperty(OBSERVER_INIT_DIR_PROP, verifyNotNull(OBSERVER_INIT_DIR_PROP, observerDir)); return this; }
/** * Sets URL to directory where observer jars can be found * <p> * Sets the value of the property {@value #OBSERVER_JARS_URL_PROP} * * @param observerJarsUrl URL to observer jars directory, must not be null * @since 1.2.0 */ public FluoConfiguration setObserverJarsUrl(String observerJarsUrl) { setProperty(OBSERVER_JARS_URL_PROP, verifyNotNull(OBSERVER_JARS_URL_PROP, observerJarsUrl)); return this; }
/** * Sets the Apache Accumulo password property {@value #ACCUMULO_PASSWORD_PROP} * * @param accumuloPassword The password to use, must not be null. */ public FluoConfiguration setAccumuloPassword(String accumuloPassword) { setProperty(ACCUMULO_PASSWORD_PROP, verifyNotNull(ACCUMULO_PASSWORD_PROP, accumuloPassword)); return this; }
/** * Sets directory where observers jars can found for initialization * <p> * Sets the value of the property {@value #OBSERVER_INIT_DIR_PROP} * * @param observerDir Path to directory, must not be null * @since 1.2.0 */ public FluoConfiguration setObserverInitDir(String observerDir) { setProperty(OBSERVER_INIT_DIR_PROP, verifyNotNull(OBSERVER_INIT_DIR_PROP, observerDir)); return this; }
@Deprecated public FluoConfiguration setAccumuloClasspath(String path) { setProperty(ADMIN_ACCUMULO_CLASSPATH_PROP, verifyNotNull(ADMIN_ACCUMULO_CLASSPATH_PROP, path)); return this; }
/** * Sets paths to jars to provide to Accumulo. If not set, Fluo will find jars on classpath * <p> * Sets the value of the property {@value #ACCUMULO_JARS_PROP} * * @param path CSV list of paths, must not be null * @since 1.2.0 */ public FluoConfiguration setAccumuloJars(String path) { setProperty(ACCUMULO_JARS_PROP, verifyNotNull(ACCUMULO_JARS_PROP, path)); return this; }
@Deprecated private void addObserver(ObserverSpecification oconf, int next) { Map<String, String> params = oconf.getConfiguration().toMap(); StringBuilder paramString = new StringBuilder(); for (java.util.Map.Entry<String, String> pentry : params.entrySet()) { paramString.append(','); paramString.append(pentry.getKey()); paramString.append('='); paramString.append(pentry.getValue()); } setProperty(OBSERVER_PREFIX + "" + next, oconf.getClassName() + paramString); }
@Deprecated private void addObserver(ObserverSpecification oconf, int next) { Map<String, String> params = oconf.getConfiguration().toMap(); StringBuilder paramString = new StringBuilder(); for (java.util.Map.Entry<String, String> pentry : params.entrySet()) { paramString.append(','); paramString.append(pentry.getKey()); paramString.append('='); paramString.append(pentry.getValue()); } setProperty(OBSERVER_PREFIX + "" + next, oconf.getClassName() + paramString); }
private static Environment initOracleEnv(FluoConfiguration config, int port) { FluoConfiguration c = new FluoConfiguration(config); c.setProperty(FluoConfigurationImpl.ORACLE_PORT_PROP, port); return new Environment(c); }