Interface TypeSpecificWireConfigProvider

All Superinterfaces:
TypeSpecificConfig

public interface TypeSpecificWireConfigProvider
extends TypeSpecificConfig
Configuration for a type specific query.
  • Method Details

    • getWireConfig

      TypeSpecificWireConfig getWireConfig()
    • verifyConfig

      void verifyConfig​(org.jdom2.Element element, BiFunction<String,​Integer,​Double> determineMaxHeapFunction) throws ConfigurationVerificationException
      Given the element (off the xml file's root), verify the configuration entries and pre-load them. Do not activate them.
      Parameters:
      element - the Element that was generated by this ReloadableConfiguration's generateConfig call
      determineMaxHeapFunction - a function that determines the maximum heap for a worker
      Throws:
      ConfigurationVerificationException - if the element has an error
    • installConfig

      default void installConfig()
      Install the verified configuration.
    • generateConfig

      org.jdom2.Element generateConfig() throws IOException
      Generate the configuration XML Element. This may involve reading a Configuration instance and performing other actions.
      Returns:
      an Element that can be used to load the configuration. This will be passed to verifyConfig.
      Throws:
      IOException