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 SummaryConstructors Modifier Constructor Description protectedManagedScript(ScriptManager scriptManager, ManagedScriptBaseProperties properties, io.micrometer.core.instrument.MeterRegistry registry)
 - 
Method SummaryAll 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- 
ManagedScriptprotected ManagedScript(ScriptManager scriptManager, ManagedScriptBaseProperties properties, io.micrometer.core.instrument.MeterRegistry registry) 
 
- 
 - 
Method Detail- 
warmUppublic 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.
 - 
evaluateScriptprotected java.lang.Object evaluateScript(java.util.Map<java.lang.String,java.lang.Object> scriptParameters) throws ScriptExecutionException, ScriptNotConfiguredException
 
- 
 
-