Package com.netflix.genie.web.scripts
Class ManagedScript
- java.lang.Object
-
- com.netflix.genie.web.scripts.ManagedScript
-
- Direct Known Subclasses:
ResourceSelectorScript
public abstract class ManagedScript extends java.lang.Object
Abstract script class for components that rely on an external script to be loaded and invoked at runtime. This class makes use ofScriptManager
to execute.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ManagedScript(ScriptManager scriptManager, ManagedScriptBaseProperties properties, io.micrometer.core.instrument.MeterRegistry registry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
evaluateScript(java.util.Map<java.lang.String,java.lang.Object> scriptParameters)
void
warmUp()
Request the script to be warm and ready for evaluation.
-
-
-
Constructor Detail
-
ManagedScript
protected ManagedScript(ScriptManager scriptManager, ManagedScriptBaseProperties properties, io.micrometer.core.instrument.MeterRegistry registry)
-
-
Method Detail
-
warmUp
public void warmUp()
Request the script to be warm and ready for evaluation. This is a best-effort attempt with no guarantee of success. Furthermore loading may happen asynchronously.
-
evaluateScript
protected java.lang.Object evaluateScript(java.util.Map<java.lang.String,java.lang.Object> scriptParameters) throws ScriptExecutionException, ScriptNotConfiguredException
-
-