org.eclipse.rse.services.processes
Class AbstractHostProcess
java.lang.Object
org.eclipse.rse.services.processes.AbstractHostProcess
-
All Implemented Interfaces:
-
IHostProcess
-
public class AbstractHostProcess
- extends
Object
- implements
IHostProcess
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_properties
protected
Object[] _properties
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)
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)
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.