org.eclipse.rse.services.clientserver.processes.handlers
Class UniversalServerProcessImpl
java.lang.Object
org.eclipse.rse.services.clientserver.processes.handlers.UniversalServerProcessImpl
-
All Implemented Interfaces:
-
IRemoteServerProcess,
IHostProcess
-
public class UniversalServerProcessImpl
- extends
Object
- implements
IRemoteServerProcess
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)
You can also 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
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
|
void
|
setGid
(
String gid)
Set the process owner's group id (gid) |
void
|
setLabel
(
String label)
Set the display name for this process. |
void
|
setName
(
String name)
Set the name of the executable owning this process |
void
|
setPid
(
String pid)
Set the process id (pid) associated with this process. |
void
|
setPPid
(
String ppid)
Set the parent process id (ppid) associated with this process. |
void
|
setState
(
String state)
Set the state of the process |
void
|
setTgid
(
String tgid)
Set the Tgid |
void
|
setTracerPid
(
String tracerpid)
Set the TracerPid |
void
|
setUid
(
String uid)
Set the process owner's user id (uid) |
void
|
setUsername
(
String username)
Set the process owner's username |
void
|
setVmRSSInKB
(
String size)
Sets the virtual memory resident set size of this process (in kB). |
void
|
setVmSizeInKB
(
String size)
Sets the virtual memory size of this process (in kB) |
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_properties
protected
Object[] _properties
UniversalServerProcessImpl
public UniversalServerProcessImpl()
- create a new UniversalServerProcessImpl with the default property set
UniversalServerProcessImpl
public UniversalServerProcessImpl(
String initialAttributes)
- create a new UniversalServerProcessImpl with initial Attributes.
This is equivalent to constructing the object, then calling setAllProperties(initialAttributes)
getLongAttribute
protected
Long getLongAttribute(
String value,
long dflt)
-
-
getIntAttribute
protected
Integer getIntAttribute(
String value,
int dflt)
-
-
setPid
public void setPid(
String pid)
-
Description copied from interface:
IRemoteServerProcess
- Set the process id (pid) associated with this process.
-
-
Specified by:
-
setPid
in interface
IRemoteServerProcess
-
setPPid
public void setPPid(
String ppid)
-
Description copied from interface:
IRemoteServerProcess
- Set the parent process id (ppid) associated with this process.
-
-
Specified by:
-
setPPid
in interface
IRemoteServerProcess
-
setName
public void setName(
String name)
-
Description copied from interface:
IRemoteServerProcess
- Set the name of the executable owning this process
-
-
Specified by:
-
setName
in interface
IRemoteServerProcess
-
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)
-
Description copied from interface:
IRemoteServerProcess
- Set the display name for this process.
-
-
Specified by:
-
setLabel
in interface
IRemoteServerProcess
-
setState
public void setState(
String state)
-
Description copied from interface:
IRemoteServerProcess
- Set the state of the process
-
-
Specified by:
-
setState
in interface
IRemoteServerProcess
-
setTgid
public void setTgid(
String tgid)
-
Description copied from interface:
IRemoteServerProcess
- Set the Tgid
-
-
Specified by:
-
setTgid
in interface
IRemoteServerProcess
-
setTracerPid
public void setTracerPid(
String tracerpid)
-
Description copied from interface:
IRemoteServerProcess
- Set the TracerPid
-
-
Specified by:
-
setTracerPid
in interface
IRemoteServerProcess
-
setUid
public void setUid(
String uid)
-
Description copied from interface:
IRemoteServerProcess
- Set the process owner's user id (uid)
-
-
Specified by:
-
setUid
in interface
IRemoteServerProcess
-
setUsername
public void setUsername(
String username)
-
Description copied from interface:
IRemoteServerProcess
- Set the process owner's username
-
-
Specified by:
-
setUsername
in interface
IRemoteServerProcess
-
setGid
public void setGid(
String gid)
-
Description copied from interface:
IRemoteServerProcess
- Set the process owner's group id (gid)
-
-
Specified by:
-
setGid
in interface
IRemoteServerProcess
-
setVmSizeInKB
public void setVmSizeInKB(
String size)
-
Description copied from interface:
IRemoteServerProcess
- Sets the virtual memory size of this process (in kB)
-
-
Specified by:
-
setVmSizeInKB
in interface
IRemoteServerProcess
-
setVmRSSInKB
public void setVmRSSInKB(
String size)
-
Description copied from interface:
IRemoteServerProcess
- Sets the virtual memory resident set size of this process (in kB).
This is the actual amount of RAM used by the process.
-
-
Specified by:
-
setVmRSSInKB
in interface
IRemoteServerProcess
-
setAllProperties
public void setAllProperties(
String allProperties)
- You can also 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
- 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
-
-
Specified by:
-
setAllProperties
in interface
IRemoteServerProcess
-
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 IUniversalDataStoreConstants.TOKEN_SEPARATOR;
-
-
Specified by:
-
getAllProperties
in interface
IHostProcess
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.