|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProcessService
An IProcessService is an abstraction of a process service that runs over some sort of connection. It can be shared among multiple instances of a subsystem. Each subsystem is currently responsible for layering an abstraction over whatever it wants to construct as a service.
Implementers of this interface will have to either be instantiated, initialized, or somehow derive a connection as part of its state.
| Method Summary | |
|---|---|
IHostProcess |
getParentProcess(long pid,
IProgressMonitor monitor)
Given a process, return its parent process object. |
IHostProcess |
getProcess(long pid,
IProgressMonitor monitor)
Given a pid, return an IHostProcess object for it. |
String[] |
getSignalTypes()
Returns a list of the types of signals that can be sent to a process on the remote system. |
boolean |
kill(long pid,
String signal,
IProgressMonitor monitor)
Kills a process. |
IHostProcess[] |
listAllProcesses(IHostProcessFilter filter,
IProgressMonitor monitor)
Return a filtered list of all processes on the remote system. |
IHostProcess[] |
listAllProcesses(IProgressMonitor monitor)
Return a list of all processes on the remote system. |
IHostProcess[] |
listAllProcesses(String exeNameFilter,
String userNameFilter,
String stateFilter,
IProgressMonitor monitor)
Return a filtered list of all processes on the remote system. |
IHostProcess[] |
listChildProcesses(long parentPID,
IHostProcessFilter filter,
IProgressMonitor monitor)
Return a filtered list of remote child processes of the given parent process on the remote system |
IHostProcess[] |
listChildProcesses(long parentPID,
IProgressMonitor monitor)
Return a list of all remote child processes of the given parent process on the remote system |
IHostProcess[] |
listRootProcesses(IProgressMonitor monitor)
Returns root processes on the remote system |
| Methods inherited from interface org.eclipse.rse.services.IService |
|---|
getDescription, getName, initService, uninitService |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Method Detail |
|---|
IHostProcess[] listAllProcesses(IProgressMonitor monitor)
throws SystemMessageException
monitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess[] listAllProcesses(IHostProcessFilter filter,
IProgressMonitor monitor)
throws SystemMessageException
filter - An object to filter results bymonitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess[] listAllProcesses(String exeNameFilter,
String userNameFilter,
String stateFilter,
IProgressMonitor monitor)
throws SystemMessageException
exeNameFilter - The executable name to filter results by, or null if
no exeName filteringuserNameFilter - The user name to filter results by, or null if no
userName filteringstateFilter - The state code to filter results by, or null if no
state filteringmonitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess[] listRootProcesses(IProgressMonitor monitor)
throws SystemMessageException
monitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess[] listChildProcesses(long parentPID,
IProgressMonitor monitor)
throws SystemMessageException
parentPID - The ID of the parent process whose children are to be
listedmonitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess[] listChildProcesses(long parentPID,
IHostProcessFilter filter,
IProgressMonitor monitor)
throws SystemMessageException
parentPID - The ID of the parent process whose children are to be
listedfilter - A filter to narrow results bymonitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess getParentProcess(long pid,
IProgressMonitor monitor)
throws SystemMessageException
pid - the ID of the process to return parent of.monitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
IHostProcess getProcess(long pid,
IProgressMonitor monitor)
throws SystemMessageException
pid - The process ID of the desired processmonitor - A progress monitor to which progress will be reported
SystemMessageException - in case anything goes wrong
boolean kill(long pid,
String signal,
IProgressMonitor monitor)
throws SystemMessageException
pid - the ID of the process to be killed.signal - the signal to send to the processmonitor - A progress monitor to which progress will be reported
false if the given process doesn't exist, else
true. Throws an exception if anything fails.
SystemMessageException - in case anything goes wrongString[] getSignalTypes()
|
RSE Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||