RSE
Release 3.2

org.eclipse.rse.services.clientserver.processes.handlers
Class UniversalLinuxProcessHandler

java.lang.Object
  extended by org.eclipse.rse.services.clientserver.processes.handlers.UniversalLinuxProcessHandler
All Implemented Interfaces:
ProcessHandler

public class UniversalLinuxProcessHandler
extends java.lang.Object
implements ProcessHandler


Field Summary
protected  java.util.HashMap _uidsByUserName
           
protected  java.util.HashMap _usernamesByUid
           
 
Constructor Summary
UniversalLinuxProcessHandler()
          Creates a new ProcessHandler for Linux platforms.
 
Method Summary
protected  java.lang.String convertToStateCode(java.lang.String state)
          Return the unique state code assocated with the state given by the status file on the Linux machine.
 java.lang.String getUid(java.lang.String username)
          Gets the uid associated with the given username on this system
 java.lang.String getUsername(java.lang.String uid)
          Gets the username associated with the given uid on this system
 IHostProcess kill(IHostProcess process, java.lang.String type)
          Sends a kill signal to a process.
 java.util.SortedSet lookupProcesses(IHostProcessFilter rpfs)
          Given a filter string, returns the results of querying all processes that match the filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_usernamesByUid

protected java.util.HashMap _usernamesByUid

_uidsByUserName

protected java.util.HashMap _uidsByUserName
Constructor Detail

UniversalLinuxProcessHandler

public UniversalLinuxProcessHandler()
Creates a new ProcessHandler for Linux platforms.

Method Detail

kill

public IHostProcess kill(IHostProcess process,
                         java.lang.String type)
                  throws java.lang.Exception
Description copied from interface: ProcessHandler
Sends a kill signal to a process.

Specified by:
kill in interface ProcessHandler
Parameters:
process - The process to which the signal will be sent
type - The type of signal to send to the process, "default" for default
Returns:
the process after the signal is sent, or null if the process no longer exists.
Throws:
java.lang.Exception

lookupProcesses

public java.util.SortedSet lookupProcesses(IHostProcessFilter rpfs)
                                    throws java.lang.Exception
Description copied from interface: ProcessHandler
Given a filter string, returns the results of querying all processes that match the filter. The results MUST BE SORTED NUMERICALLY BY PID.

Specified by:
lookupProcesses in interface ProcessHandler
Parameters:
rpfs - The filter string to which the objects will be matched.
Returns:
a list of the results of the query. Does not ever return null!
Throws:
java.lang.Exception

getUid

public java.lang.String getUid(java.lang.String username)
Gets the uid associated with the given username on this system


getUsername

public java.lang.String getUsername(java.lang.String uid)
Gets the username associated with the given uid on this system


convertToStateCode

protected java.lang.String convertToStateCode(java.lang.String state)
Return the unique state code assocated with the state given by the status file on the Linux machine.


RSE
Release 3.2

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