Class RemoteProcessingProfileFactory

java.lang.Object
com.illumon.iris.db.tables.remotequery.RemoteProcessingProfileFactory

public class RemoteProcessingProfileFactory
extends Object
Class to return IRemoteProcessingProfile profiles from profile names.
  • Field Details

  • Method Details

    • getInstance

      public static RemoteProcessingProfileFactory getInstance()
      Get the RemoteProcessingProfileFactory instance.
      Returns:
      the RemoteProcessingProfileFactory instance
    • getProfileNames

      public Set<String> getProfileNames()
      Return the set of all defined profile names.
      Returns:
      Set of all the defined profile names
    • generateProfilesXML

      public org.jdom2.Element generateProfilesXML​(String elementName)
      Generate an XML Element that represents the collection of JVM profiles.
      Parameters:
      elementName - the name to be used for the Element
      Returns:
      the generated XML Element
    • getDefaultJvmProfileName

      public String getDefaultJvmProfileName()
    • generateProfilesFromXml

      public void generateProfilesFromXml​(org.jdom2.Element profilesElement)
      Given an XML Element, generate (but don't install) the profile map.
      Parameters:
      profilesElement - the XML Element generated by generateProfileXML
    • installNewProfiles

      public void installNewProfiles()
      Activate (install) the profiles created by generateProfilesFromXml
    • getParametersFromProfile

      public static com.fishlib.base.Pair<String[],​Map<String,​String>> getParametersFromProfile​(String profileName, int maxHeapSizeMB)
      Method to retrieve the JVM parameters and environment variables from a named profile. This method should always be called to retrieve these values because it ensures everything is done on a single factory and its associated profiles.
      Parameters:
      profileName - the profile name
      maxHeapSizeMB - the max heap in MB for the query
      Returns:
      a Pair containing the JVM parameters and