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
Answertopia.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.processes
Class AbstractHostProcess


java.lang.Object
  extended by 
org.eclipse.rse.services.processes.AbstractHostProcess
All Implemented Interfaces:
IHostProcess

public class AbstractHostProcess
extends Object
implements IHostProcess


Field Summary
protected   Object[] _properties
           
 
Constructor Summary
AbstractHostProcess ()
          create a new AbstractHostProcess with the default property set
AbstractHostProcess ( String initialAttributes)
          create a new AbstractHostProcess with initial Attributes.
 
Method Summary
  String getAllProperties ()
          Return all the properties of this data structure in one string.
 long getGid ()
          Get the process owner's group id (gid)
protected   Integer getIntAttribute ( String value, int dflt)
           
  String getLabel ()
          Get the display name for this process.
protected   Long getLongAttribute ( String value, long dflt)
           
  String getName ()
          Get the name of the executable owning this process
 long getPid ()
          Get the process id (pid) associated with this process.
 long getPPid ()
          Get the parent process id (ppid) associated with this process.
  String getState ()
          Get the state of the process
 long getTgid ()
          Get the Tgid
 long getTracerPid ()
          Get the TracerPid
 long getUid ()
          Get the process owner's user id (uid)
  String getUsername ()
          Get the process owner's username
 long getVmRSSInKB ()
          Returns the virtual memory resident set size of this process (in kB).
 long getVmSizeInKB ()
          Returns the virtual memory size of this process (in kB)
 boolean isRoot ()
          Returns whether this is the root process or not
 void setAllProperties ( String allProperties)
          This method allows to set all attributes at once with your own string passed as a parameter, as long as the string is in the same format as outlined below (pass in null to use the DataElement's string).
 void setGid ( String gid)
           
 void setLabel ( String label)
           
 void setName ( String name)
           
 void setPid ( String pid)
           
 void setPPid ( String ppid)
           
 void setState ( String state)
           
 void setTgid ( String tgid)
           
 void setTracerPid ( String tracerpid)
           
 void setUid ( String uid)
           
 void setUsername ( String username)
           
 void setVmRSSInKB ( String size)
           
 void setVmSizeInKB ( String size)
           
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_properties

protected 
Object[] _properties
Constructor Detail

AbstractHostProcess

public AbstractHostProcess()
create a new AbstractHostProcess with the default property set


AbstractHostProcess

public AbstractHostProcess(
String initialAttributes)
create a new AbstractHostProcess with initial Attributes. This is equivalent to constructing the object, then calling setAllProperties(initialAttributes).

Parameters:
initialAttributes - String of initial attributes
See Also:
setAllProperties(String)
Method Detail

getLongAttribute

protected 
Long getLongAttribute(
String value,
                                long dflt)

getIntAttribute

protected 
Integer getIntAttribute(
String value,
                                  int dflt)

setPid

public void setPid(
String pid)

setPPid

public void setPPid(
String ppid)

setName

public void setName(
String name)

getLabel

public 
String getLabel()
Description copied from interface: IHostProcess
Get the display name for this process.

Specified by:
getLabel in interface IHostProcess

setLabel

public void setLabel(
String label)

setState

public void setState(
String state)

setTgid

public void setTgid(
String tgid)

setTracerPid

public void setTracerPid(
String tracerpid)

setUid

public void setUid(
String uid)

setUsername

public void setUsername(
String username)

setGid

public void setGid(
String gid)

setVmSizeInKB

public void setVmSizeInKB(
String size)

setVmRSSInKB

public void setVmRSSInKB(
String size)

setAllProperties

public void setAllProperties(
String allProperties)
This method allows to set all attributes at once with your own string passed as a parameter, as long as the string is in the same format as outlined below (pass in null to use the DataElement's string).

The string contains properties of the object in the following order, separated by IServiceConstants.TOKEN_SEPARATOR:

  • Process Id (pid) - long
  • Executable name - String
  • Status - char
  • Tgid - long
  • Process Parent id (ppid) - long
  • Tracer pid - long
  • User id (uid) - long
  • Username - String
  • Group id (gid) - long
  • VM Size - long
  • VM RSS - long

Parameters:
allProperties - Property String as defined above

getPid

public long getPid()
Description copied from interface: IHostProcess
Get the process id (pid) associated with this process.

Specified by:
getPid in interface IHostProcess

getPPid

public long getPPid()
Description copied from interface: IHostProcess
Get the parent process id (ppid) associated with this process.

Specified by:
getPPid in interface IHostProcess

getName

public 
String getName()
Description copied from interface: IHostProcess
Get the name of the executable owning this process

Specified by:
getName in interface IHostProcess

getState

public 
String getState()
Description copied from interface: IHostProcess
Get the state of the process

Specified by:
getState in interface IHostProcess

getTgid

public long getTgid()
Description copied from interface: IHostProcess
Get the Tgid

Specified by:
getTgid in interface IHostProcess

getTracerPid

public long getTracerPid()
Description copied from interface: IHostProcess
Get the TracerPid

Specified by:
getTracerPid in interface IHostProcess

getUid

public long getUid()
Description copied from interface: IHostProcess
Get the process owner's user id (uid)

Specified by:
getUid in interface IHostProcess

getUsername

public 
String getUsername()
Description copied from interface: IHostProcess
Get the process owner's username

Specified by:
getUsername in interface IHostProcess

getGid

public long getGid()
Description copied from interface: IHostProcess
Get the process owner's group id (gid)

Specified by:
getGid in interface IHostProcess

isRoot

public boolean isRoot()
Description copied from interface: IHostProcess
Returns whether this is the root process or not

Specified by:
isRoot in interface IHostProcess

getVmSizeInKB

public long getVmSizeInKB()
Description copied from interface: IHostProcess
Returns the virtual memory size of this process (in kB)

Specified by:
getVmSizeInKB in interface IHostProcess

getVmRSSInKB

public long getVmRSSInKB()
Description copied from interface: IHostProcess
Returns the virtual memory resident set size of this process (in kB). This is the actual amount of RAM used by the process.

Specified by:
getVmRSSInKB in interface IHostProcess

getAllProperties

public 
String getAllProperties()
Return all the properties of this data structure in one string. Properties are separated by IServiceConstants.TOKEN_SEPARATOR.

Specified by:
getAllProperties in interface IHostProcess
Returns:
String of Properties
See Also:
setAllProperties(String)

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