Class ShellActor

java.lang.Object
com.scivicslab.pojoactor.core.ActorRef<ShellActor>
com.scivicslab.turingworkflow.workflow.IIActorRef<ShellActor>
com.scivicslab.workfloweditor.service.ShellActor
All Implemented Interfaces:
com.scivicslab.pojoactor.core.CallableByActionName, AutoCloseable

public class ShellActor extends com.scivicslab.turingworkflow.workflow.IIActorRef<ShellActor>
Built-in actor that executes shell commands.
  • Field Summary

    Fields inherited from class com.scivicslab.pojoactor.core.ActorRef

    actorName, actorSystem, object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShellActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.scivicslab.pojoactor.core.ActionResult
    exec(String command)
     
    void
     

    Methods inherited from class com.scivicslab.turingworkflow.workflow.IIActorRef

    callByActionName, hasAnnotatedAction, invokeAnnotatedAction, parseFirstArgument

    Methods inherited from class com.scivicslab.pojoactor.core.ActorRef

    ask, ask, askNow, clearJsonState, clearPendingMessages, close, createChild, expandVariables, getJsonBoolean, getJsonInt, getJsonString, getJsonString, getLastResult, getName, getNamesOfChildren, getParentName, hasJson, hasJsonState, initLogger, isAlive, json, putJson, setLastResult, setParentName, system, tell, tell, tellNow, toStringOfJson, toStringOfYaml

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShellActor

      public ShellActor(String name, com.scivicslab.turingworkflow.workflow.IIActorSystem system)
  • Method Details

    • setOutputListener

      public void setOutputListener(Consumer<String> listener)
    • exec

      public com.scivicslab.pojoactor.core.ActionResult exec(String command)