org.eclipse.rse.services.clientserver.processes.handlers
Class UniversalAIXProcessHandler
java.lang.Object
org.eclipse.rse.services.clientserver.processes.handlers.UniversalAIXProcessHandler
- All Implemented Interfaces:
- ISystemProcessRemoteConstants, ProcessHandler
- Direct Known Subclasses:
- UniversalZOSProcessHandler
- public class UniversalAIXProcessHandler
- extends Object
- implements ProcessHandler, ISystemProcessRemoteConstants
| Fields inherited from interface org.eclipse.rse.services.clientserver.processes.ISystemProcessRemoteConstants |
ALL_STATES, ALL_STATES_STR, PROCESS_ATTRIBUTES_COUNT, PROCESS_ATTRIBUTES_INDEX_EXENAME, PROCESS_ATTRIBUTES_INDEX_GID, PROCESS_ATTRIBUTES_INDEX_PID, PROCESS_ATTRIBUTES_INDEX_PPID, PROCESS_ATTRIBUTES_INDEX_STATUS, PROCESS_ATTRIBUTES_INDEX_TGID, PROCESS_ATTRIBUTES_INDEX_TRACERPID, PROCESS_ATTRIBUTES_INDEX_UID, PROCESS_ATTRIBUTES_INDEX_USERNAME, PROCESS_ATTRIBUTES_INDEX_VMRSS, PROCESS_ATTRIBUTES_INDEX_VMSIZE, PROCESS_MINER_ERROR_NO_HANDLER, PROCESS_MINER_SUCCESS, PROCESS_SIGNAL_TYPE_DEFAULT, STATE_ACTIVE, STATE_ACTIVE_INDEX, STATE_ENDING_INDEX, STATE_IDLE, STATE_IDLE_INDEX, STATE_NONEXISTENT, STATE_NONEXISTENT_INDEX, STATE_PAGING, STATE_PAGING_INDEX, STATE_RUNNING, STATE_RUNNING_INDEX, STATE_SLEEPING, STATE_SLEEPING_INDEX, STATE_STARTING_INDEX, STATE_TRACED, STATE_TRACED_INDEX, STATE_WAITING, STATE_WAITING_INDEX, STATE_ZOMBIE, STATE_ZOMBIE_INDEX, STATE_ZOS_ASYNCHRONOUSTHREAD, STATE_ZOS_ASYNCHRONOUSTHREAD_INDEX, STATE_ZOS_CANCELLED, STATE_ZOS_CANCELLED_INDEX, STATE_ZOS_COMSYSKERNELWAIT, STATE_ZOS_COMSYSKERNELWAIT_INDEX, STATE_ZOS_DETACHED, STATE_ZOS_DETACHED_INDEX, STATE_ZOS_ENDING_INDEX, STATE_ZOS_FILESYSKERNELWAIT, STATE_ZOS_FILESYSKERNELWAIT_INDEX, STATE_ZOS_FORKING, STATE_ZOS_FORKING_INDEX, STATE_ZOS_INITIALPROCESSTHREAD, STATE_ZOS_INITIALPROCESSTHREAD_INDEX, STATE_ZOS_MEDIUMWEIGHTTHREAD, STATE_ZOS_MEDIUMWEIGHTTHREAD_INDEX, STATE_ZOS_MSGQRECEIVEWAIT, STATE_ZOS_MSGQRECEIVEWAIT_INDEX, STATE_ZOS_MSGQSENDWAIT, STATE_ZOS_MSGQSENDWAIT_INDEX, STATE_ZOS_MULTITHREAD, STATE_ZOS_MULTITHREAD_INDEX, STATE_ZOS_MVSPAUSEWAIT, STATE_ZOS_MVSPAUSEWAIT_INDEX, STATE_ZOS_MVSWAIT, STATE_ZOS_MVSWAIT_INDEX, STATE_ZOS_OTHERKERNELWAIT, STATE_ZOS_OTHERKERNELWAIT_INDEX, STATE_ZOS_PTHREADCREATED, STATE_ZOS_PTHREADCREATED_INDEX, STATE_ZOS_PTHREADCREATEDTASKS, STATE_ZOS_PTHREADCREATEDTASKS_INDEX, STATE_ZOS_PTRACEKERNELWAIT, STATE_ZOS_PTRACEKERNELWAIT_INDEX, STATE_ZOS_QUIESCEFROZEN, STATE_ZOS_QUIESCEFROZEN_INDEX, STATE_ZOS_RUNNING, STATE_ZOS_RUNNING_INDEX, STATE_ZOS_SEMAPHOREWAIT, STATE_ZOS_SEMAPHOREWAIT_INDEX, STATE_ZOS_SINGLE, STATE_ZOS_SINGLE_INDEX, STATE_ZOS_SLEEPING, STATE_ZOS_SLEEPING_INDEX, STATE_ZOS_STARTING_INDEX, STATE_ZOS_STOPPED, STATE_ZOS_STOPPED_INDEX, STATE_ZOS_SWAPPEDOUT, STATE_ZOS_SWAPPEDOUT_INDEX, STATE_ZOS_WAITINGFORCHILD, STATE_ZOS_WAITINGFORCHILD_INDEX, STATE_ZOS_ZOMBIE, STATE_ZOS_ZOMBIE_INDEX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_usernamesByUid
protected HashMap _usernamesByUid
_uidsByUserName
protected HashMap _uidsByUserName
UniversalAIXProcessHandler
public UniversalAIXProcessHandler()
- Creates a new ProcessHandler for AIX platforms.
lookupProcesses
public SortedSet lookupProcesses(IHostProcessFilter rpfs)
throws 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:
Exception
getPSOutput
protected HashMap getPSOutput(String nextLine)
- Parses one line of output from the ps command - placing the contents into
a hashmap, where the keys are the names of process attributes and the values
are the attribute values
- Parameters:
nextLine - a line of output from the ps command
- Returns:
- a map of names-values of process attributes
kill
public IHostProcess kill(IHostProcess process,
String type)
throws 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 senttype - 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:
Exception
convertToStateCode
protected String convertToStateCode(String state)
- Return the unique state code assocated with the state given by
the ps listing on the AIX machine.
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.