Class Util
java.lang.Object
io.prometheus.metrics.config.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static <T extends Number>
voidassertValue(T number, Predicate<T> predicate, String message, String prefix, String propertyName) (package private) static StringgetProperty(String prefix, String propertyName, PropertySource propertySource) (package private) static BooleanloadBoolean(String prefix, String propertyName, PropertySource propertySource) (package private) static DoubleloadDouble(String prefix, String propertyName, PropertySource propertySource) loadDoubleList(String prefix, String propertyName, PropertySource propertySource) (package private) static IntegerloadInteger(String prefix, String propertyName, PropertySource propertySource) (package private) static LongloadLong(String prefix, String propertyName, PropertySource propertySource) loadMap(String prefix, String propertyName, PropertySource propertySource) (package private) static DurationloadOptionalDuration(String prefix, String propertyName, PropertySource propertySource) (package private) static StringloadString(String prefix, String propertyName, PropertySource propertySource) (package private) static StringloadStringAddSuffix(String prefix, String propertyName, PropertySource propertySource, String suffix) loadStringList(String prefix, String propertyName, PropertySource propertySource) toList(double... values)
-
Constructor Details
-
Util
Util()
-
-
Method Details
-
getProperty
-
loadBoolean
static Boolean loadBoolean(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
toList
-
loadString
static String loadString(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadStringAddSuffix
static String loadStringAddSuffix(String prefix, String propertyName, PropertySource propertySource, String suffix) -
loadStringList
static List<String> loadStringList(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadDoubleList
static List<Double> loadDoubleList(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadMap
static Map<String,String> loadMap(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadInteger
static Integer loadInteger(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadDouble
static Double loadDouble(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadLong
static Long loadLong(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
loadOptionalDuration
static Duration loadOptionalDuration(String prefix, String propertyName, PropertySource propertySource) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-
assertValue
static <T extends Number> void assertValue(T number, Predicate<T> predicate, String message, String prefix, String propertyName) throws PrometheusPropertiesException - Throws:
PrometheusPropertiesException
-