| Package | Description |
|---|---|
| org.yamcs |
| Modifier and Type | Class and Description |
|---|---|
static class |
YConfiguration.ConfigurationNotFoundException
Introduced to be able to detect when a configuration file was not specified (as opposed to when there's a
validation error inside).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
YConfiguration.containsKey(String key,
String key1) |
static boolean |
YConfiguration.getBoolean(Map<String,Object> m,
String key) |
static boolean |
YConfiguration.getBoolean(Map<String,Object> m,
String key,
boolean defaultValue)
Returns m.get(key) if it exists and is of type boolean, if m.get(key) exists and is not boolean, throw an
exception.
|
boolean |
YConfiguration.getBoolean(String key) |
boolean |
YConfiguration.getBoolean(String key,
String key1) |
List<YConfiguration> |
YConfiguration.getConfigList(String key) |
static YConfiguration |
YConfiguration.getConfiguration(String subsystem)
Loads (if not already loaded) and returns a configuration corresponding to a file <subsystem>.yaml
This method does not reload the configuration file if it has changed.
|
static YConfiguration |
YConfiguration.getConfiguration(String subsystem,
boolean reload)
Loads and returns a configuration corresponding to a file <subsystem>.yaml
This method reloads the configuration file always.
|
InputStream |
YConfigurationResolver.getConfigurationStream(String name)
Searches configuration with name
|
InputStream |
YConfiguration.DefaultConfigurationResolver.getConfigurationStream(String name) |
static double |
YConfiguration.getDouble(Map<String,Object> m,
String key,
double v) |
double |
YConfiguration.getDouble(String key) |
double |
YConfiguration.getDouble(String key,
double defaultValue) |
String |
YConfiguration.getFirstEntry()
returns the first entry(key) in the config file.
|
Map<String,Object> |
YConfiguration.getFirstMap()
returns the first entry in the config file if it's a map.
|
static int |
YConfiguration.getInt(Map<String,Object> m,
String key) |
static int |
YConfiguration.getInt(Map<String,Object> m,
String key,
int defaultValue)
return the m.get(key) as an int if it's present or v if it is not.
|
int |
YConfiguration.getInt(String key)
int configs
|
int |
YConfiguration.getInt(String key,
int defaultValue) |
int |
YConfiguration.getInt(String key,
String key1) |
int |
YConfiguration.getInt(String key,
String key1,
int defaultValue) |
static <T> List<T> |
YConfiguration.getList(Map<String,Object> m,
String key) |
<T> List<T> |
YConfiguration.getList(String key)
List configs
|
static long |
YConfiguration.getLong(Map<String,Object> m,
String key) |
static long |
YConfiguration.getLong(Map<String,Object> m,
String key,
long v)
return the m.get(key) as an long if it's present or v if it is not.
|
static Map<String,Object> |
YConfiguration.getMap(Map<String,Object> m,
String key)
Map configs
|
Map<String,Object> |
YConfiguration.getMap(String key)
Deprecated.
|
List<YConfiguration> |
YConfiguration.getServiceConfigList(String key)
This is the same like the method above but will create a {class: "string"} for strings rather than throwing an
exception.
|
static String |
YConfiguration.getString(Map m,
String key)
Returns m.get(key) if it exists and is of type string, otherwise throws an exception
|
static String |
YConfiguration.getString(Map m,
String key,
String defaultValue) |
String |
YConfiguration.getString(String key) |
String |
YConfiguration.getString(String key,
String defaultValue) |
<T> List<T> |
YConfiguration.getSubList(String key,
String key1) |
Map<String,Object> |
YConfiguration.getSubMap(String key,
String key1) |
String |
YConfiguration.getSubString(String key,
String subkey) |
static boolean |
YConfiguration.isDefined(String subsystem) |
static void |
YConfiguration.setup()
calls setup(null)
|
static void |
YConfiguration.setup(String configPrefix)
If configPrefix is not null, sets up the configuration to search the classpath for files like
"configPrefix/xyz.properties"
Also sets up the TimeEncoding configuration
|
Copyright © 2019 Space Applications Services. All rights reserved.