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.ObjectAbstract script class for components that rely on an external script to be loaded and invoked at runtime. This class makes use ofScriptManagerto execute.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedManagedScript(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.ObjectevaluateScript(java.util.Map<java.lang.String,java.lang.Object> scriptParameters)voidwarmUp()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
-
-