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 Summary
Fields Modifier and Type Field Description static String
DEFAULT_PROFILE_NAME_PROPERTY
-
Method Summary
Modifier and Type Method Description void
generateProfilesFromXml(org.jdom2.Element profilesElement)
Given an XML Element, generate (but don't install) the profile map.org.jdom2.Element
generateProfilesXML(String elementName)
Generate an XML Element that represents the collection of JVM profiles.String
getDefaultJvmProfileName()
static RemoteProcessingProfileFactory
getInstance()
Get the RemoteProcessingProfileFactory instance.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.Set<String>
getProfileNames()
Return the set of all defined profile names.void
installNewProfiles()
Activate (install) the profiles created by generateProfilesFromXml
-
Field Details
-
Method Details
-
getInstance
Get the RemoteProcessingProfileFactory instance.- Returns:
- the RemoteProcessingProfileFactory instance
-
getProfileNames
Return the set of all defined profile names.- Returns:
- Set of all the defined profile names
-
generateProfilesXML
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
-
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 namemaxHeapSizeMB
- the max heap in MB for the query- Returns:
- a Pair containing the JVM parameters and
-