|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
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(IProgressMonitor monitor,
long PID)
Given a process, return its parent process object. |
IHostProcess |
getProcess(IProgressMonitor monitor,
long PID)
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(IProgressMonitor monitor,
long PID,
String signal)
Kills a process. |
IHostProcess[] |
listAllProcesses(IProgressMonitor monitor)
Return a list of all processes on the remote system. |
IHostProcess[] |
listAllProcesses(IProgressMonitor monitor,
IHostProcessFilter filter)
Return a filtered list of all processes on the remote system. |
IHostProcess[] |
listAllProcesses(IProgressMonitor monitor,
String exeNameFilter,
String userNameFilter,
String stateFilter)
Return a filtered list of all processes on the remote system. |
IHostProcess[] |
listChildProcesses(IProgressMonitor monitor,
long parentPID)
Return a list of all remote child processes of the given parent process on the remote system |
IHostProcess[] |
listChildProcesses(IProgressMonitor monitor,
long parentPID,
IHostProcessFilter filter)
Return a filtered list of 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, getMessage, getName, initService, uninitService |
| Method Detail |
public IHostProcess[] listAllProcesses(IProgressMonitor monitor)
throws SystemMessageException
monitor - A progress monitor to which progress will be reported
SystemMessageException
public IHostProcess[] listAllProcesses(IProgressMonitor monitor,
IHostProcessFilter filter)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedfilter - An object to filter results by
SystemMessageException
public IHostProcess[] listAllProcesses(IProgressMonitor monitor,
String exeNameFilter,
String userNameFilter,
String stateFilter)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedexeNameFilter - 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 filtering
SystemMessageException
public IHostProcess[] listRootProcesses(IProgressMonitor monitor)
throws SystemMessageException
monitor - A progress monitor to which progress will be reported
SystemMessageException
public IHostProcess[] listChildProcesses(IProgressMonitor monitor,
long parentPID)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedparentPID - The ID of the parent process whose children are to be listed
SystemMessageException
public IHostProcess[] listChildProcesses(IProgressMonitor monitor,
long parentPID,
IHostProcessFilter filter)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedparentPID - The ID of the parent process whose children are to be listedfilter - A filter to narrow results by
SystemMessageException
public IHostProcess getParentProcess(IProgressMonitor monitor,
long PID)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedPID - the ID of the process to return parent of.
SystemMessageException
public IHostProcess getProcess(IProgressMonitor monitor,
long PID)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedPID - The process ID of the desired process
SystemMessageException
public boolean kill(IProgressMonitor monitor,
long PID,
String signal)
throws SystemMessageException
monitor - A progress monitor to which progress will be reportedPID - the ID of the process to be killed.signal - the signal to send to the process
false if the given process doesn't exist, else true.
Throws an exception if anything fails.
SystemMessageExceptionpublic String[] getSignalTypes()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||