ProcessesImplementation
and Processes
@Deprecated public interface ProcessDestroyPerformer
Implementation of this interface should be published in default lookup
in order to be used by
ExternalProcessSupport.destroy(java.lang.Process, java.util.Map)
and ExternalProcessBuilder
.
Note: not to be implemented by modules, might not be present in all versions
of the application.
Please use ExternalProcessSupport.destroy(java.lang.Process, java.util.Map)
for accessing the service.
Modifier and Type | Method and Description |
---|---|
void |
destroy(Process process,
Map<String,String> env)
Deprecated.
Destroys the process passed as parameter and attempts to terminate all child
processes created during the process' execution.
|
void destroy(Process process, Map<String,String> env)
process
- process to killenv
- Map containing environment variable names and values.
Any process running with such envvar's value will be
terminated. Improves localization of child processes.