Class RemoteProcessingProfileFactory
java.lang.Object
com.illumon.iris.db.tables.remotequery.RemoteProcessingProfileFactory
Class to return
IRemoteProcessingProfile
profiles from profile names.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Get the RemoteProcessingProfileFactory instance.getParametersFromProfile
(String profileName, int maxHeapSizeMB) Method to retrieve the JVM parameters and environment variables from a named profile.Return the set of all defined profile names.void
Activate (install) the profiles created by generateProfilesFromXml
-
Field Details
-
DEFAULT_PROFILE_NAME_PROPERTY
- See Also:
-
-
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, getParametersFromProfileString>> (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
-