public class Settings
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MULTI_VALUE_SEPARATOR
Separator used in parameters with multiple values.
|
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
static Settings |
forNamespace(java.lang.String myNs)
Load configuration from "sds.conf" file found either in "$HOME/.oio/" or
"/etc/oio/", or from "/etc/oio/sds.conf.d/$NS".
|
static Settings |
fromFile(java.lang.String myNs,
java.lang.String confPath)
Load namespace settings from INI file.
|
io.openio.sds.proxy.ProxySettings |
proxy()
Returns oio proxyd connection configuration
|
Settings |
proxy(io.openio.sds.proxy.ProxySettings proxy)
Specifies a proxyd connection configuration
|
io.openio.sds.storage.rawx.RawxSettings |
rawx()
Returns rawx services connection configuration
|
Settings |
rawx(io.openio.sds.storage.rawx.RawxSettings rawx)
Specifies rawx connections configuration
|
public static final java.lang.String MULTI_VALUE_SEPARATOR
public static Settings fromFile(java.lang.String myNs, java.lang.String confPath) throws java.io.FileNotFoundException
myNs
- name of the namespace to loadconfPath
- path to the configuration fileSettings
objectjava.io.FileNotFoundException
- when the specified file does not existjava.lang.IllegalArgumentException
- when a parsing error occurspublic static Settings forNamespace(java.lang.String myNs) throws java.io.FileNotFoundException
myNs
- name of the namespace to loadSettings
objectjava.io.FileNotFoundException
- if no valid configuration file could be found in default placespublic io.openio.sds.proxy.ProxySettings proxy()
public Settings proxy(io.openio.sds.proxy.ProxySettings proxy)
proxy
- the configuration to setpublic io.openio.sds.storage.rawx.RawxSettings rawx()
public Settings rawx(io.openio.sds.storage.rawx.RawxSettings rawx)
rawx
- the configuration to set