public class BootstrapProperties
extends java.util.Properties
Constructor and Description |
---|
BootstrapProperties() |
BootstrapProperties(java.util.Properties p) |
BootstrapProperties(java.lang.String resourceName) |
Modifier and Type | Method and Description |
---|---|
Adapter |
createAdapter()
Deprecated.
use
getConfigManager() to create an AdapterManagerMBean instead. |
java.lang.String |
findAdapterResource() |
AdapterConfigManager |
getConfigManager() |
java.lang.String[] |
getConfigurationUrls() |
URLString |
getPrimaryUrl() |
java.lang.Long |
getProperty(java.lang.String key,
java.lang.Long defaultValue)
Add overloaded method to get numerical values from bootstrap.properties.
|
static java.lang.String |
getPropertyIgnoringCase(java.util.Properties p,
java.lang.String key)
Deprecated.
since 3.1.1 use
PropertyHelper.getPropertyIgnoringCase(Properties, String) instead. |
static java.lang.String |
getPropertyIgnoringCase(java.util.Properties p,
java.lang.String key,
java.lang.String defaultValue)
Deprecated.
since 3.1.1 use
PropertyHelper.getPropertyIgnoringCase(Properties, String, String) instead. |
static java.util.Properties |
getPropertySubset(java.util.Properties p,
java.lang.String prefix)
Deprecated.
since 3.1.1 use
PropertyHelper.getPropertySubset(Properties, String) instead. |
static java.util.Properties |
getPropertySubset(java.util.Properties p,
java.lang.String prefix,
boolean ignoreCase)
Deprecated.
since 3.1.1 use
PropertyHelper.getPropertySubset(Properties, String, boolean) instead. |
static boolean |
isEnabled(java.util.Properties p,
java.lang.String key) |
boolean |
isEnabled(java.lang.String key) |
boolean |
isPrimaryUrlAvailable() |
void |
reconfigureLogging() |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public BootstrapProperties()
public BootstrapProperties(java.lang.String resourceName) throws java.lang.Exception
java.lang.Exception
public BootstrapProperties(java.util.Properties p)
public java.lang.Long getProperty(java.lang.String key, java.lang.Long defaultValue)
key
- The property key to get.defaultValue
- The default numerical value if the key isn't found (or cannot be parsed as numercial).@Deprecated public Adapter createAdapter() throws java.lang.Exception
getConfigManager()
to create an AdapterManagerMBean instead.java.lang.Exception
- if an exception occured.public java.lang.String[] getConfigurationUrls()
public java.lang.String findAdapterResource()
public boolean isPrimaryUrlAvailable()
public URLString getPrimaryUrl()
public AdapterConfigManager getConfigManager() throws java.lang.Exception
java.lang.Exception
public void reconfigureLogging()
public boolean isEnabled(java.lang.String key)
public static boolean isEnabled(java.util.Properties p, java.lang.String key)
@Deprecated public static java.util.Properties getPropertySubset(java.util.Properties p, java.lang.String prefix)
PropertyHelper.getPropertySubset(Properties, String)
instead.@Deprecated public static java.util.Properties getPropertySubset(java.util.Properties p, java.lang.String prefix, boolean ignoreCase)
PropertyHelper.getPropertySubset(Properties, String, boolean)
instead.@Deprecated public static java.lang.String getPropertyIgnoringCase(java.util.Properties p, java.lang.String key, java.lang.String defaultValue)
PropertyHelper.getPropertyIgnoringCase(Properties, String, String)
instead.@Deprecated public static java.lang.String getPropertyIgnoringCase(java.util.Properties p, java.lang.String key)
PropertyHelper.getPropertyIgnoringCase(Properties, String)
instead.