| Package | Description |
|---|---|
| org.yamcs | |
| org.yamcs.api |
| 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. if m.get(key) does not exist, return the default value.
|
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 |
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 |
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) |
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<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) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
YConfigurationResolver.getConfigurationStream(String name)
Searches configuration by name
|
Copyright © 2019 Space Applications Services. All rights reserved.