Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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

java.lang.Object
  extended by 
org.eclipse.rse.services.clientserver.processes.handlers.UniversalAIXProcessHandler
All Implemented Interfaces:
ProcessHandler
Direct Known Subclasses:
UniversalZOSProcessHandler

public class UniversalAIXProcessHandler
extends Object
implements ProcessHandler


Field Summary
protected   HashMap _uidsByUserName
           
protected   HashMap _usernamesByUid
           
 
Constructor Summary
UniversalAIXProcessHandler ()
          Creates a new ProcessHandler for AIX platforms.
 
Method Summary
protected   String convertToStateCode ( String state)
          Return the unique state code assocated with the state given by the ps listing on the AIX machine.
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
  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

_usernamesByUid

protected 
HashMap _usernamesByUid

_uidsByUserName

protected 
HashMap _uidsByUserName
Constructor Detail

UniversalAIXProcessHandler

public UniversalAIXProcessHandler()
Creates a new ProcessHandler for AIX platforms.

Method Detail

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 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:
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.


RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire