Package com.illumon.iris.controller
Class InWorkerServiceTypeDetails
java.lang.Object
com.illumon.iris.controller.InWorkerServiceTypeDetails
- All Implemented Interfaces:
Serializable
Container for details on an in-worker service type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The routing service type used by an in-worker service. -
Constructor Summary
ConstructorsConstructorDescriptionInWorkerServiceTypeDetails
(boolean hasScript, String scriptUpdateClass, String scriptSetupClass, InWorkerServiceTypeDetails.RoutingServiceType routingServiceType, String routingServiceTag, List<String> routingServiceExcludeTags, List<String> configContextValues, List<String> dbServerClasses, List<String> allowedGroups, String customFieldName, List<String> customFieldValues, boolean customFieldEditable) Create a holder for details on an in-worker service. -
Method Summary
Modifier and TypeMethodDescriptionReturn a List of the groups allowed to run this in-worker service.Return a List of the configuration context values allowed for this in-worker service.Provide the name of an optional custom text field.Provide the available values for an optional text field.Return a List of the server classes allowed for this in-worker service.Return a List of the routing tag values not allowed for this in-worker service.Return the allowed routing service tag for this in-worker service.Return theInWorkerServiceTypeDetails.RoutingServiceType
used by this in-worker service.Return the script setup class for this in-worker service.Return the script update class for this in-worker service.boolean
Return whether this in-worker service type has a script.boolean
Indicate whether or not the custom field is editable (allows the user to provide their own values).
-
Constructor Details
-
InWorkerServiceTypeDetails
public InWorkerServiceTypeDetails(boolean hasScript, @Nullable String scriptUpdateClass, @Nullable String scriptSetupClass, @NotNull InWorkerServiceTypeDetails.RoutingServiceType routingServiceType, @Nullable String routingServiceTag, @NotNull List<String> routingServiceExcludeTags, @NotNull List<String> configContextValues, @NotNull List<String> dbServerClasses, @NotNull List<String> allowedGroups, @Nullable String customFieldName, @NotNull List<String> customFieldValues, boolean customFieldEditable) Create a holder for details on an in-worker service.- Parameters:
hasScript
- if true, this in-worker service type has a scriptscriptUpdateClass
- if defined, the class to be called by the console to set up a new script. This class must implement the com.illumon.iris.console.events.InWorkerServiceScriptUpdate interfacescriptSetupClass
- if defined, the class to be called by the worker to define the script variables. This class must implement theInWorkerServiceScriptSetup
interfaceroutingServiceType
- the RoutingServiceTyperoutingServiceTag
- the routing service tag which will define this in-worker service's available optionsroutingServiceExcludeTags
- the routing service tags which should not be available to this in-worker serviceconfigContextValues
- the list of allowed configuration contexts for this in-worker servicedbServerClasses
- the db server classes on which this in-worker service can runallowedGroups
- the user groups allowed to configure this type of in-worker servicecustomFieldName
- the name of an optional custom text fieldcustomFieldValues
- the values of an optional custom text fieldcustomFieldEditable
- if true, the custom field should allow user-defined values
-
-
Method Details
-
hasScript
public boolean hasScript()Return whether this in-worker service type has a script.- Returns:
- true if the in-worker service has a script, false otherwise
-
getRoutingServiceType
Return theInWorkerServiceTypeDetails.RoutingServiceType
used by this in-worker service.- Returns:
- the
InWorkerServiceTypeDetails.RoutingServiceType
-
getRoutingServiceTag
Return the allowed routing service tag for this in-worker service.- Returns:
- the allowed routing service tag allowed for this in-worker service, or null if none are defined
-
getRoutingServiceExcludeTags
Return a List of the routing tag values not allowed for this in-worker service.- Returns:
- a List of the routing tag values not allowed for this in-worker service
-
getConfigContextValues
Return a List of the configuration context values allowed for this in-worker service.- Returns:
- a List of the configuration context values allowed for this in-worker service
-
getDbServerClasses
Return a List of the server classes allowed for this in-worker service.- Returns:
- a List of the server classes allowed for this in-worker service
-
getAllowedGroups
Return a List of the groups allowed to run this in-worker service.- Returns:
- a List of the groups allowed to run this in-worker service
-
getScriptUpdateClass
Return the script update class for this in-worker service.- Returns:
- the script update class for this in-worker service, or null if none is provided
-
getScriptSetupClass
Return the script setup class for this in-worker service.- Returns:
- the script setup class for this in-worker service, or null if none is provided
-
getCustomFieldName
Provide the name of an optional custom text field.- Returns:
- the text field's name, or null if none is required
-
getCustomFieldValues
Provide the available values for an optional text field.- Returns:
- the available values, or null if none are provided
-
isCustomFieldEditable
public boolean isCustomFieldEditable()Indicate whether or not the custom field is editable (allows the user to provide their own values).- Returns:
- true if the custom field is editable, false otherwise
-