|
RSE Release 1.0 |
|||||||||||
| 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
| Field Summary | |
|---|---|
protected HashMap |
_uidsByUserName
|
protected HashMap |
_usernamesByUid
|
| Fields inherited from interface org.eclipse.rse.services.clientserver.IServiceConstants |
|---|
FAILED, FAILED_TO_DELETE_DIR, FAILED_WITH_DOES_NOT_EXIST, FAILED_WITH_EXCEPTION, FAILED_WITH_EXIST, FAILED_WITH_SECURITY, SUCCESS, TOKEN_SEPARATOR, UNEXPECTED_ERROR, VERSION_1 |
| Constructor Summary | |
|---|---|
UniversalLinuxProcessHandler()
Creates a new ProcessHandler for Linux platforms. |
|
| Method Summary | |
|---|---|
protected String |
convertToStateCode(String state)
Return the unique state code assocated with the state given by the status file on the Linux machine. |
String |
getUid(String username)
Gets the uid associated with the given username on this system |
String |
getUsername(String uid)
Gets the username associated with the given uid on this system |
IHostProcess |
kill(IHostProcess process,
String type)
Sends a kill signal to a process. |
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 HashMap _usernamesByUid
protected HashMap _uidsByUserName
| Constructor Detail |
public UniversalLinuxProcessHandler()
| Method Detail |
public IHostProcess kill(IHostProcess process,
String type)
throws Exception
ProcessHandler
kill in interface ProcessHandlerprocess - The process to which the signal will be senttype - The type of signal to send to the process, "default" for default
Exception
public SortedSet lookupProcesses(IHostProcessFilter rpfs)
throws Exception
ProcessHandler
lookupProcesses in interface ProcessHandlerrpfs - The filter string to which the objects will be matched.
Exceptionpublic String getUid(String username)
public String getUsername(String uid)
protected String convertToStateCode(String state)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||