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$$$()
void
dispose()
JComponent
getComponent()
String
getNewScriptText(String scriptLanguage)
Called when a query type is selected for a script without git selected, and without any script code.Boolean
hasScript()
Determine if this type-specific panel currently requires a script.boolean
isChanged(PersistentQueryConfiguration initialConfig)
void
populateConfigurationFromPanel(PersistentQueryConfiguration modifiedConfig)
void
populatePanelFromConfiguration(PersistentQueryConfiguration initialConfig)
void
setActivate(ConfigEditorInterface configEditor, boolean active)
void
setEditable(boolean isEditable)
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceTypeSpecificConfigPanel
-
populatePanelFromConfiguration
- Specified by:
populatePanelFromConfiguration
in interfaceTypeSpecificConfigPanel
-
populateConfigurationFromPanel
- Specified by:
populateConfigurationFromPanel
in interfaceTypeSpecificConfigPanel
-
setEditable
public void setEditable(boolean isEditable)- Specified by:
setEditable
in interfaceTypeSpecificConfigPanel
-
isChanged
- Specified by:
isChanged
in interfaceTypeSpecificConfigPanel
-
setActivate
- Specified by:
setActivate
in interfaceTypeSpecificConfigPanel
-
dispose
public void dispose()- Specified by:
dispose
in interfaceTypeSpecificConfigPanel
-
hasScript
Description copied from interface:TypeSpecificConfigPanel
Determine 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:
hasScript
in 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:TypeSpecificConfigPanel
Called 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:
getNewScriptText
in interfaceTypeSpecificConfigPanel
- Parameters:
scriptLanguage
- the language for the new script text- Returns:
- a starting script, or null if none is needed
-
$$$getRootComponent$$$
- Noinspection:
- ALL
-