Package com.netflix.genie.web.scripts
Class ManagedScript
java.lang.Object
com.netflix.genie.web.scripts.ManagedScript
- Direct Known Subclasses:
ResourceSelectorScript
Abstract script class for components that rely on an external script to be loaded and invoked at runtime.
This class makes use of
ScriptManager
to execute.- Since:
- 4.0.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
ManagedScript
(ScriptManager scriptManager, ManagedScriptBaseProperties properties, io.micrometer.core.instrument.MeterRegistry registry) -
Method Summary
-
Constructor Details
-
ManagedScript
protected ManagedScript(ScriptManager scriptManager, ManagedScriptBaseProperties properties, io.micrometer.core.instrument.MeterRegistry registry)
-
-
Method Details
-
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 Object evaluateScript(Map<String, Object> scriptParameters) throws ScriptExecutionException, ScriptNotConfiguredException
-