|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.services.clientserver.processes.handlers.UniversalLinuxProcessHandler
public class UniversalLinuxProcessHandler
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 |
---|
protected java.util.HashMap _usernamesByUid
protected java.util.HashMap _uidsByUserName
Constructor Detail |
---|
public UniversalLinuxProcessHandler()
Method Detail |
---|
public IHostProcess kill(IHostProcess process, java.lang.String type) throws java.lang.Exception
ProcessHandler
kill
in interface ProcessHandler
process
- The process to which the signal will be senttype
- The type of signal to send to the process, "default" for default
java.lang.Exception
public java.util.SortedSet lookupProcesses(IHostProcessFilter rpfs) throws java.lang.Exception
ProcessHandler
lookupProcesses
in interface ProcessHandler
rpfs
- The filter string to which the objects will be matched.
java.lang.Exception
public java.lang.String getUid(java.lang.String username)
public java.lang.String getUsername(java.lang.String uid)
protected java.lang.String convertToStateCode(java.lang.String state)
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |