Package com.illumon.iris.console.events
Class InWorkerServiceConfigPanel
java.lang.Object
com.illumon.iris.console.events.InWorkerServiceConfigPanel
- All Implemented Interfaces:
TypeSpecificConfigPanel
public class InWorkerServiceConfigPanel extends Object implements TypeSpecificConfigPanel
TypeSpecificConfigPanel implementation for in-worker services. This includes logic to update script information and other editor
parameters based on the chosen service type.
-
Method Summary
Modifier and Type Method Description JComponent$$$getRootComponent$$$()voiddispose()JComponentgetComponent()StringgetNewScriptText(String scriptLanguage)Called when a query type is selected for a script without git selected, and without any script code.BooleanhasScript()Determine if this type-specific panel currently requires a script.booleanisChanged(PersistentQueryConfiguration initialConfig)voidpopulateConfigurationFromPanel(PersistentQueryConfiguration modifiedConfig)voidpopulatePanelFromConfiguration(PersistentQueryConfiguration initialConfig)voidsetActivate(ConfigEditorInterface configEditor, boolean active)voidsetEditable(boolean isEditable)
-
Method Details
-
getComponent
- Specified by:
getComponentin interfaceTypeSpecificConfigPanel
-
populatePanelFromConfiguration
- Specified by:
populatePanelFromConfigurationin interfaceTypeSpecificConfigPanel
-
populateConfigurationFromPanel
- Specified by:
populateConfigurationFromPanelin interfaceTypeSpecificConfigPanel
-
setEditable
public void setEditable(boolean isEditable)- Specified by:
setEditablein interfaceTypeSpecificConfigPanel
-
isChanged
- Specified by:
isChangedin interfaceTypeSpecificConfigPanel
-
setActivate
- Specified by:
setActivatein interfaceTypeSpecificConfigPanel
-
dispose
public void dispose()- Specified by:
disposein interfaceTypeSpecificConfigPanel
-
hasScript
Description copied from interface:TypeSpecificConfigPanelDetermine if this type-specific panel currently requires a script. This is only applicable if a type-specific panel may or may not require a script.- Specified by:
hasScriptin interfaceTypeSpecificConfigPanel- Returns:
- null if it is not applicable or not determined, true if it currently requires a script, false if it does not currently require a script
-
getNewScriptText
Description copied from interface:TypeSpecificConfigPanelCalled when a query type is selected for a script without git selected, and without any script code. If a default script is desired, this should provide it.- Specified by:
getNewScriptTextin interfaceTypeSpecificConfigPanel- Parameters:
scriptLanguage- the language for the new script text- Returns:
- a starting script, or null if none is needed
-
$$$getRootComponent$$$
- Noinspection:
- ALL
-