Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.processes
Class AbstractProcessService

java.lang.Object
  extended by 

org.eclipse.core.runtime.PlatformObject
      extended by 

org.eclipse.rse.services.AbstractService
          extended by 
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.


Constructor Summary
AbstractProcessService ()
           
 
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 org.eclipse.rse.services. AbstractService
getDescription, getName, initService, uninitService
 
Methods inherited from class org.eclipse.core.runtime. PlatformObject
getAdapter
 
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
 
Methods inherited from interface org.eclipse.core.runtime. IAdaptable
getAdapter
 

Constructor Detail

AbstractProcessService

public AbstractProcessService()
Method Detail

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.


RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire