/** * Obtains a {@link Pof} for the specified config uri. * * @param configUri the uri for the {@link Pof} configuration * * @return a {@link Pof} for the specified config uri */ public static Pof config(String configUri) { return new Pof(configUri, null); }
/** * Obtains a {@link Logging} for a specified destination. * * @param destination the destination of the {@link Logging} * * @return a {@link Logging} for the specified destination */ public static Logging to(String destination) { return new Logging(destination, null); }
/** * Obtains a {@link LocalStorage} that is enabled. * * @return a {@link LocalStorage} that is enabled */ public static LocalStorage enabled() { return new LocalStorage(true); }
/** * Obtains a {@link LocalHost} for a specified address. * * @param address the address of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address */ public static LocalHost of(String address) { return new LocalHost(address, null); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(Iterator<Integer> ports) { return new ClusterPort(ports); }
/** * Obtains a {@link Clustering} for a specified value. * * @param enabled is local storage enabled? * * @return a {@link Clustering} for the specified value */ public static Clustering enabled(boolean enabled) { return new Clustering(enabled); }
/** * Obtains a {@link CacheConfig} for a specified uri. * * @param uri the uri of the {@link CacheConfig} * * @return a {@link CacheConfig} for the specified uri */ public static CacheConfig of(String uri) { return new CacheConfig(uri); }
/** * Obtains a {@link ClusterName} for a specified name. * * @param name the name of the {@link ClusterName} * * @return a {@link ClusterName} for the specified name */ public static ClusterName of(String name) { return new ClusterName(name); }
/** * Obtains a {@link OperationalOverride} for a specified uri. * * @param uri the uri of the {@link OperationalOverride} * * @return a {@link OperationalOverride} for the specified uri */ public static OperationalOverride of(String uri) { return new OperationalOverride(uri); }
/** * Obtains a {@link Pof} that is disabled. * * @return a disabled {@link Pof} */ public static Pof disabled() { return new Pof(null, false); }
/** * Obtains a {@link Logging} for the stderr. * * @return a {@link Logging} for the stderr */ public static Logging toStdErr() { return new Logging("stderr", null); }
/** * Obtains a {@link LocalStorage} that is enabled. * * @return a {@link LocalStorage} that is enabled */ public static LocalStorage enabled() { return new LocalStorage(true); }
/** * Obtains a {@link LocalHost} configured for "local host only" mode. * * @return a {@link LocalHost} for local-only mode */ public static LocalHost only() { return new LocalHost(null, null); }
/** * Obtains a {@link ClusterPort} for a specified port(s). * * @param ports the possible ports for a {@link ClusterPort} * * @return a {@link ClusterPort} for the specified port(s) */ public static ClusterPort from(AvailablePortIterator ports) { return new ClusterPort(ports); }
/** * Obtains a {@link Clustering} for a specified value. * * @param enabled is local storage enabled? * * @return a {@link Clustering} for the specified value */ public static Clustering enabled(boolean enabled) { return new Clustering(enabled); }
/** * Obtains a {@link CacheConfig} for a specified uri. * * @param uri the uri of the {@link CacheConfig} * * @return a {@link CacheConfig} for the specified uri */ public static CacheConfig of(String uri) { return new CacheConfig(uri); }
/** * Obtains a {@link Pof} based on the specified parameter. * * @param enabled is {@link Pof} to be enabled? * * @return a {@link Pof} based on the specified parameter */ public static Pof enabled(boolean enabled) { return new Pof(null, enabled); }
/** * Obtains a {@link Logging} for the stdout. * * @return a {@link Logging} for the stdout */ public static Logging toStdOut() { return new Logging("stdout", null); }
/** * Obtains a {@link LocalStorage} that is enabled. * * @return a {@link LocalStorage} that is enabled */ public static LocalStorage enabled() { return new LocalStorage(true); }
/** * Obtains a {@link Pof} that is enabled. * * @return a disabled {@link Pof} */ public static Pof enabled() { return new Pof(null, true); }