Skip to content

Script Executors

vasanth-asokan edited this page Jan 29, 2015 · 2 revisions

Executing a script module is usually specific to the application in question. Executions typically involve pulling out specific classes and/or resources from the module and invoking methods on the classes. Out of the box, Nicobar comes with a Hystrix based script module executor. The HystrixScriptModuleExecutor provides hooks to execute a set of script modules (either specified directly, or via a ModuleId) wrapped in a Hystrix command, ScriptModuleExecutionCommand, which provides simple bulkheading around long script module execution latencies. The command also provides basic metrics like latency and success and failure counts.

As the application integrator, you will have to supply a ScriptModuleExecutable, which can wrap application specific execution behavior around a `ScriptModule`.