Class NodeIIAR

java.lang.Object
com.scivicslab.pojoactor.core.ActorRef<NodeInterpreter>
com.scivicslab.pojoactor.workflow.IIActorRef<NodeInterpreter>
com.scivicslab.actoriac.NodeIIAR
All Implemented Interfaces:
com.scivicslab.pojoactor.core.CallableByActionName, AutoCloseable

public class NodeIIAR extends com.scivicslab.pojoactor.workflow.IIActorRef<NodeInterpreter>
Interpreter-interfaced actor reference for NodeInterpreter instances.

This class provides a concrete implementation of IIActorRef specifically for NodeInterpreter objects. It handles action invocations by name, supporting both workflow execution actions (inherited from Interpreter) and infrastructure actions (SSH command execution).

Supported actions:

Workflow actions (from Interpreter):

  • execCode - Executes the loaded workflow code
  • readYaml - Reads a YAML workflow definition from a file path
  • readJson - Reads a JSON workflow definition from a file path
  • readXml - Reads an XML workflow definition from a file path
  • reset - Resets the interpreter state

Infrastructure actions (Node-specific):

  • executeCommand - Executes a command and reports to accumulator (default)
  • executeCommandQuiet - Executes a command without reporting
  • executeSudoCommand - Executes sudo command and reports to accumulator (default)
  • executeSudoCommandQuiet - Executes sudo command without reporting

Example YAML Workflow:

name: deploy-application
steps:
  - states: ["0", "1"]
    actions:
      - actor: this
        method: executeCommand
        arguments:
          - "apt-get update"
  - states: ["1", "end"]
    actions:
      - actor: this
        method: executeCommand
        arguments:
          - "ls -la"
Author:
devteam@scivics-lab.com