Interface IProcessLauncher

All Known Implementing Classes:
MmfProcessLauncher, RmiProcessLauncher

public interface IProcessLauncher
Launches a process and starts establish connection with it.
  • Method Details

    • launchProcess

      Process launchProcess(ProcessBinder processBinder, IProcessConnectionListener listener) throws IOException
      Launches process with parameters specified in given ProcessBinder. Starts establishing connection with lauhced process. Established connection is provided to given IProcessConnectionListener during or after this method invocation.
      Parameters:
      processBinder - given ProcessBinder (not null)
      listener - given IProcessConnectionListener, to which established connection is provided during or after this method invocation (not null)
      Returns:
      lauched process. When connection is closed, must be killed (not null)
      Throws:
      IOException - if launching process failed
    • clean

      default void clean(String key)
      Cleanup process temporary files
      Parameters:
      key - the unique process wrapper key, cannot be null