RSE
Release 1.0

org.eclipse.rse.services.processes
Class AbstractProcessService

java.lang.Object
  extended byorg.eclipse.rse.services.processes.AbstractProcessService
All Implemented Interfaces:
IProcessService, IService
Direct Known Subclasses:
DStoreProcessService, LocalProcessService

public abstract class AbstractProcessService
extends Object
implements IProcessService


Constructor Summary
AbstractProcessService()
           
 
Method Summary
 SystemMessage getMessage(String messageID)
           
 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.
 IHostProcess[] listAllProcesses(IProgressMonitor monitor)
          Return a 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)
          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
 
Methods inherited from interface org.eclipse.rse.services.processes.IProcessService
getSignalTypes, kill, listAllProcesses
 
Methods inherited from interface org.eclipse.rse.services.IService
getDescription, getName, initService, uninitService
 

Constructor Detail

AbstractProcessService

public AbstractProcessService()
Method Detail

listAllProcesses

public IHostProcess[] listAllProcesses(IProgressMonitor monitor,
                                       String exeNameFilter,
                                       String userNameFilter,
                                       String stateFilter)
                                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:
monitor - A progress monitor to which progress will be reported
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
Returns:
Filtered list of processes
Throws:
SystemMessageException

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

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
See Also:
IProcessService.listRootProcesses(org.eclipse.core.runtime.IProgressMonitor)

listChildProcesses

public IHostProcess[] listChildProcesses(IProgressMonitor monitor,
                                         long parentPID)
                                  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:
monitor - A progress monitor to which progress will be reported
parentPID - The ID of the parent process whose children are to be listed
Returns:
List of child processes
Throws:
SystemMessageException

listChildProcesses

public IHostProcess[] listChildProcesses(IProgressMonitor monitor,
                                         long parentPID,
                                         IHostProcessFilter filter)
                                  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:
monitor - A progress monitor to which progress will be reported
parentPID - The ID of the parent process whose children are to be listed
filter - A filter to narrow results by
Returns:
Filtered list of child processes
Throws:
SystemMessageException

getParentProcess

public IHostProcess getParentProcess(IProgressMonitor monitor,
                                     long PID)
                              throws SystemMessageException
Description copied from interface: IProcessService
Given a process, return its parent process object.

Specified by:
getParentProcess in interface IProcessService
Parameters:
monitor - A progress monitor to which progress will be reported
PID - the ID of the process to return parent of.
Returns:
The parent process
Throws:
SystemMessageException

getProcess

public IHostProcess getProcess(IProgressMonitor monitor,
                               long PID)
                        throws SystemMessageException
Description copied from interface: IProcessService
Given a pid, return an IHostProcess object for it.

Specified by:
getProcess in interface IProcessService
Parameters:
monitor - A progress monitor to which progress will be reported
PID - The process ID of the desired process
Returns:
IHostProcess object for the given pid
Throws:
SystemMessageException

getMessage

public SystemMessage getMessage(String messageID)
Specified by:
getMessage in interface IService

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.