Interface IProcessLauncher
- All Known Implementing Classes:
MmfProcessLauncher,RmiProcessLauncher
public interface IProcessLauncher
Launches a process and starts establish connection with it.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidCleanup process temporary fileslaunchProcess(ProcessBinder processBinder, IProcessConnectionListener listener) Launches process with parameters specified in givenProcessBinder.
-
Method Details
-
launchProcess
Process launchProcess(ProcessBinder processBinder, IProcessConnectionListener listener) throws IOException Launches process with parameters specified in givenProcessBinder. Starts establishing connection with lauhced process. Established connection is provided to givenIProcessConnectionListenerduring or after this method invocation.- Parameters:
processBinder- givenProcessBinder(notnull)listener- givenIProcessConnectionListener, to which established connection is provided during or after this method invocation (notnull)- Returns:
- lauched process. When connection is closed, must be killed (not
null) - Throws:
IOException- if launching process failed
-
clean
Cleanup process temporary files- Parameters:
key- the unique process wrapper key, cannot benull
-