Package org.opennms.pris.api
Interface InstanceConfiguration
- All Superinterfaces:
Configuration
- All Known Implementing Classes:
InstanceApacheConfiguration
Container for an instance configuration.
- Author:
- Dustin Frisch <fooker@lab.sh>
-
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier of the instance.Return a decorator Configuration containing every key from the current Configuration that starts with the specified prefix.Methods inherited from interface org.opennms.pris.api.Configuration
addProperty, containsKey, getBasePath, getBoolean, getBoolean, getInt, getInt, getKeys, getPath, getPath, getPaths, getString, getString, getStringArray, isEmpty
-
Method Details
-
getInstanceIdentifier
String getInstanceIdentifier()Returns the identifier of the instance.- Returns:
- the identifier string
-
subset
Return a decorator Configuration containing every key from the current Configuration that starts with the specified prefix. The prefix is removed from the keys in the subset. Since the subset is a decorator and not a modified copy of the initial Configuration, any change made to the subset is available to the Configuration, and reciprocally.- Parameters:
prefix
- The prefix used to select the properties- Returns:
- a subset configuration
-