Class InstanceApacheConfiguration

java.lang.Object
org.opennms.pris.config.AbstractApacheConfiguration
org.opennms.pris.config.InstanceApacheConfiguration
All Implemented Interfaces:
Configuration, InstanceConfiguration

public class InstanceApacheConfiguration extends AbstractApacheConfiguration implements InstanceConfiguration
  • Constructor Details

    • InstanceApacheConfiguration

      public InstanceApacheConfiguration(Path basePath, String instance)
  • Method Details

    • getBasePath

      public Path getBasePath()
      Description copied from interface: Configuration
      Returns the path to the configuration.
      Specified by:
      getBasePath in interface Configuration
      Returns:
      the absolute path to the configuration folder.
    • getInstanceIdentifier

      public String getInstanceIdentifier()
      Description copied from interface: InstanceConfiguration
      Returns the identifier of the instance.
      Specified by:
      getInstanceIdentifier in interface InstanceConfiguration
      Returns:
      the identifier string
    • subset

      public InstanceConfiguration subset(String prefix)
      Description copied from interface: InstanceConfiguration
      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.
      Specified by:
      subset in interface InstanceConfiguration
      Parameters:
      prefix - The prefix used to select the properties
      Returns:
      a subset configuration