|
 |
|
|
org.eclipse.rse.services.processes
Class AbstractProcessService
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.rse.services.AbstractService
org.eclipse.rse.services.processes.AbstractProcessService
-
All Implemented Interfaces:
-
IAdaptable,
IService,
IProcessService
-
public abstract class AbstractProcessService
- extends
AbstractService
- implements
IProcessService
Abstract base class for RSE Process Service.
Method Summary
|
SystemMessage
|
getMessage
(
String messageID)
Deprecated. This method was removed from IProcessService in RSE 3.0, and
implementers are not expected to return anything useful. Use
SimpleSystemMessage to create system messages
instead.
|
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. |
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)
Return a single IHostProcess object for the 'init' process with pid 1. |
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
AbstractProcessService
public AbstractProcessService()
listAllProcesses
public
IHostProcess[] listAllProcesses(
String exeNameFilter,
String userNameFilter,
String stateFilter,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IProcessService
- Return a filtered list of all processes on the remote system.
-
-
Specified by:
-
listAllProcesses
in interface
IProcessService
-
-
Parameters:
-
exeNameFilter - The executable name to filter results by, or null if
no exeName filtering -
userNameFilter - The user name to filter results by, or null if no
userName filtering -
stateFilter - The state code to filter results by, or null if no
state filtering -
monitor - A progress monitor to which progress will be reported
-
Returns:
- Filtered list of processes
-
Throws:
-
SystemMessageException
- in case anything goes wrong
listAllProcesses
public
IHostProcess[] listAllProcesses(
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IProcessService
- Return a list of all processes on the remote system.
-
-
Specified by:
-
listAllProcesses
in interface
IProcessService
-
-
Parameters:
-
monitor - A progress monitor to which progress will be reported
-
Returns:
- List of all processes
-
Throws:
-
SystemMessageException
- in case anything goes wrong
listRootProcesses
public
IHostProcess[] listRootProcesses(
IProgressMonitor monitor)
throws
SystemMessageException
- Return a single IHostProcess object for the 'init' process with pid 1.
-
-
Specified by:
-
listRootProcesses
in interface
IProcessService
-
-
Parameters:
-
monitor - Progress monitor
-
Returns:
- Array with 1 element, the IHostProcess object for the root
process
-
Throws:
-
SystemMessageException
- in case anything goes wrong -
See Also:
-
IProcessService.listRootProcesses(org.eclipse.core.runtime.IProgressMonitor)
listChildProcesses
public
IHostProcess[] listChildProcesses(long parentPID,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IProcessService
- Return a list of all remote child processes of the given parent process
on the remote system
-
-
Specified by:
-
listChildProcesses
in interface
IProcessService
-
-
Parameters:
-
parentPID - The ID of the parent process whose children are to be
listed -
monitor - A progress monitor to which progress will be reported
-
Returns:
- List of child processes
-
Throws:
-
SystemMessageException
- in case anything goes wrong
listChildProcesses
public
IHostProcess[] listChildProcesses(long parentPID,
IHostProcessFilter filter,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IProcessService
- Return a filtered list of remote child processes of the given parent
process on the remote system
-
-
Specified by:
-
listChildProcesses
in interface
IProcessService
-
-
Parameters:
-
parentPID - The ID of the parent process whose children are to be
listed -
filter - A filter to narrow results by -
monitor - A progress monitor to which progress will be reported
-
Returns:
- Filtered list of child processes
-
Throws:
-
SystemMessageException
- in case anything goes wrong
getParentProcess
public
IHostProcess getParentProcess(long pid,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IProcessService
- Given a process, return its parent process object.
-
-
Specified by:
-
getParentProcess
in interface
IProcessService
-
-
Parameters:
-
pid - the ID of the process to return parent of. -
monitor - A progress monitor to which progress will be reported
-
Returns:
- The parent process
-
Throws:
-
SystemMessageException
- in case anything goes wrong
getProcess
public
IHostProcess getProcess(long pid,
IProgressMonitor monitor)
throws
SystemMessageException
-
Description copied from interface:
IProcessService
- Given a pid, return an IHostProcess object for it.
-
-
Specified by:
-
getProcess
in interface
IProcessService
-
-
Parameters:
-
pid - The process ID of the desired process -
monitor - A progress monitor to which progress will be reported
-
Returns:
- IHostProcess object for the given pid
-
Throws:
-
SystemMessageException
- in case anything goes wrong
getMessage
public
SystemMessage getMessage(
String messageID)
-
Deprecated. This method was removed from IProcessService in RSE 3.0, and
implementers are not expected to return anything useful. Use
SimpleSystemMessage to create system messages
instead.
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|
|