org.eclipse.rse.services.local.processes
Class LocalProcessService
java.lang.Object
org.eclipse.rse.services.processes.AbstractProcessService
org.eclipse.rse.services.local.processes.LocalProcessService
- All Implemented Interfaces:
- ILocalService, IProcessService, IService
- public class LocalProcessService
- extends AbstractProcessService
- implements ILocalService, IProcessService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_statusTypes
protected String[] _statusTypes
handler
protected ProcessHandler handler
LocalProcessService
public LocalProcessService()
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 reportedfilter - 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 reportedPID - 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
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.