Package io.jooby.node

Interface NodeTask


public interface NodeTask
Node task executor.
Since:
2.8.0
Author:
edgar.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(String cmd, String... args)
    Execute a node task (without blocking the caller thread).
    default void
    executeOnce(String cmd, String... args)
    Run a task once per JVM instance.
  • Method Details

    • executeOnce

      default void executeOnce(@Nonnull String cmd, @Nonnull String... args)
      Run a task once per JVM instance. Specially created for joobyRun to supports application restart (hot reload) and long running node processes (like a web server).
      Parameters:
      cmd - Command.
      args - Arguments.
    • execute

      void execute(@Nonnull String cmd, @Nonnull String... args)
      Execute a node task (without blocking the caller thread).
      Parameters:
      cmd - Command.
      args - Arguments.