RSE
Release 1.0

org.eclipse.rse.services.local.processes
Class LocalProcessService

java.lang.Object
  extended byorg.eclipse.rse.services.processes.AbstractProcessService
      extended byorg.eclipse.rse.services.local.processes.LocalProcessService
All Implemented Interfaces:
ILocalService, IProcessService, IService

public class LocalProcessService
extends AbstractProcessService
implements ILocalService, IProcessService


Field Summary
protected  String[] _statusTypes
           
protected  ProcessHandler handler
           
 
Constructor Summary
LocalProcessService()
           
 
Method Summary
 String getDescription()
           
 String getName()
           
 String[] getSignalTypes()
          Returns a list of the types of signals that can be sent to a process on the remote system.
 void initService(IProgressMonitor monitor)
           
protected  String[] internalGetSignalTypes()
          Returns a list of the signal types supported by the 'kill' command on this system
 boolean kill(IProgressMonitor monitor, long PID, String signal)
          Kills a process.
 IHostProcess[] listAllProcesses(IProgressMonitor monitor, IHostProcessFilter filter)
          Return a filtered list of all processes on the remote system.
 void uninitService(IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.rse.services.processes.AbstractProcessService
getMessage, getParentProcess, getProcess, listAllProcesses, listAllProcesses, listChildProcesses, listChildProcesses, listRootProcesses
 
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
getParentProcess, getProcess, listAllProcesses, listAllProcesses, listChildProcesses, listChildProcesses, listRootProcesses
 
Methods inherited from interface org.eclipse.rse.services.IService
getMessage
 

Field Detail

_statusTypes

protected String[] _statusTypes

handler

protected ProcessHandler handler
Constructor Detail

LocalProcessService

public LocalProcessService()
Method Detail

getName

public String getName()
Specified by:
getName in interface IService

getDescription

public String getDescription()
Specified by:
getDescription in interface IService

listAllProcesses

public IHostProcess[] listAllProcesses(IProgressMonitor monitor,
                                       IHostProcessFilter filter)
                                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
filter - An object to filter results by
Returns:
Filtered list of processes
Throws:
SystemMessageException

kill

public boolean kill(IProgressMonitor monitor,
                    long PID,
                    String signal)
             throws SystemMessageException
Description copied from interface: IProcessService
Kills a process.

Specified by:
kill in interface IProcessService
Parameters:
monitor - A progress monitor to which progress will be reported
PID - the ID of the process to be killed.
signal - the signal to send to the process
Returns:
false if the given process doesn't exist, else true. Throws an exception if anything fails.
Throws:
SystemMessageException

getSignalTypes

public String[] getSignalTypes()
Description copied from interface: IProcessService
Returns a list of the types of signals that can be sent to a process on the remote system.

Specified by:
getSignalTypes in interface IProcessService
Returns:
the signal types, or null if there are none, or they cannot be found.

internalGetSignalTypes

protected String[] internalGetSignalTypes()
Returns a list of the signal types supported by the 'kill' command on this system

Returns:
a list of the signal types or null if there are none or there is an error in executing the kill command.

initService

public void initService(IProgressMonitor monitor)
Specified by:
initService in interface IService

uninitService

public void uninitService(IProgressMonitor monitor)
Specified by:
uninitService in interface IService

RSE
Release 1.0

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