org.netbeans.modules.extexecution/2 1.25.1

org.netbeans.spi.extexecution.destroy
Interface ProcessDestroyPerformer


public interface ProcessDestroyPerformer

A service capable of properly terminating external process along with any child processes created during execution.

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.

Since:
1.16

Method Summary
 void destroy(Process process, Map<String,String> env)
          Destroys the process passed as parameter and attempts to terminate all child processes created during the process' execution.
 

Method Detail

destroy

void destroy(Process process,
             Map<String,String> env)
Destroys the process passed as parameter and attempts to terminate all child processes created during the process' execution.

Parameters:
process - process to kill
env - Map containing environment variable names and values. Any process running with such envvar's value will be terminated. Improves localization of child processes.

org.netbeans.modules.extexecution/2 1.25.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.