org.eclipse.rse.services.clientserver.processes.handlers
Interface ProcessHandler
-
All Known Implementing Classes:
-
UniversalAIXProcessHandler,
UniversalLinuxProcessHandler,
UniversalMacOSXProcessHandler,
UniversalZOSProcessHandler
-
public interface ProcessHandler
Because process mining is system-specific, this interface abstracts out
the work from the UniversalProcessMiner, and allows system-specific classes
to take care of the work individually.
lookupProcesses
SortedSet lookupProcesses(
IHostProcessFilter rpfs)
throws
Exception
- Given a filter string, returns the results of querying all processes that match the filter.
The results MUST BE SORTED NUMERICALLY BY PID.
-
-
Parameters:
-
rpfs
- The filter string to which the objects will be matched.
-
Returns:
- a list of the results of the query. Does not ever return null!
-
Throws:
-
Exception
kill
IHostProcess kill(
IHostProcess process,
String type)
throws
Exception
- Sends a kill signal to a process.
-
-
Parameters:
-
process
- The process to which the signal will be sent -
type
- The type of signal to send to the process, "default" for default
-
Returns:
- the process after the signal is sent, or null if the process no longer exists.
-
Throws:
-
Exception
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.