Class ForkECios

java.lang.Object
ecmwf.common.technical.ForkAbstract
ecmwf.common.technical.ForkECios
All Implemented Interfaces:
Closeable, AutoCloseable

public class ForkECios extends ForkAbstract
The Class ForkECios.
  • Constructor Details

    • ForkECios

      public ForkECios(String[] args)
      Instantiates a new fork e cios.
      Parameters:
      args - the args
    • ForkECios

      public ForkECios(String uid, String[] args)
      Instantiates a new fork e cios.
      Parameters:
      uid - the uid
      args - the args
    • ForkECios

      public ForkECios(String uid, String dir, String[] args)
      Instantiates a new fork e cios.
      Parameters:
      uid - the uid
      dir - the dir
      args - the args
  • Method Details

    • close

      public void close()
      Close. Close.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class ForkAbstract
    • getSocketConfig

      public static SocketConfig getSocketConfig()
      Gets the socket config.
      Returns:
      the socket config
    • start

      public void start() throws IOException
      Start. Start.
      Specified by:
      start in class ForkAbstract
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • start

      public void start(int timeOut) throws IOException
      Start.
      Parameters:
      timeOut - the time out
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • check

      public boolean check(String[][] expect, String[][] errors) throws IOException
      Check. Check.
      Overrides:
      check in class ForkAbstract
      Parameters:
      expect - the expect
      errors - the errors
      Returns:
      true, if successful
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • kill

      public static boolean kill(long pid)
      Kill.
      Parameters:
      pid - the pid
      Returns:
      true, if successful
    • kill

      public boolean kill()
      Kill. Kill.
      Specified by:
      kill in class ForkAbstract
      Returns:
      true, if successful
    • getInputStream

      public InputStream getInputStream() throws IOException
      Gets the input stream. Gets the input stream.
      Specified by:
      getInputStream in class ForkAbstract
      Returns:
      the input stream
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • interrupted

      public long interrupted()
      Interrupted. Interrupted.
      Overrides:
      interrupted in class ForkAbstract
      Returns:
      the long
    • restarted

      public void restarted()
      Restarted. Restarted.
      Overrides:
      restarted in class ForkAbstract
    • getCommand

      public String getCommand()
      Gets the command. Gets the command.
      Specified by:
      getCommand in class ForkAbstract
      Returns:
      the command
    • getCommandWithArgs

      public String getCommandWithArgs()
      Gets the command with args.
      Returns:
      the command with args