|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.services.dstore.processes.DStoreHostProcess
This class implements the IRemoteClientProcess interface by wrappering a DataElement and returning process attribute information from the underlying DataElement. It also contains client-specific methods for getting contextual information about the process such as the associated subsystem and connection.
| Field Summary | |
|---|---|
protected HashMap |
_contents
|
protected String |
_fullyQualifiedProcess
|
protected long |
_gid
|
protected boolean |
_isRoot
|
protected boolean |
_isStale
|
protected String |
_label
|
protected String |
_name
|
protected long |
_pid
|
protected long |
_ppid
|
protected HashMap |
_properties
|
protected HashMap |
_propertyStates
|
protected Object |
_remoteObj
|
protected long |
_tgid
|
protected long |
_tracerPid
|
protected long |
_uid
|
protected String |
_username
|
static boolean |
ROOT_FALSE
|
static boolean |
ROOT_TRUE
|
| Fields inherited from interface org.eclipse.rse.services.clientserver.IServiceConstants |
|---|
FAILED, FAILED_TO_DELETE_DIR, FAILED_WITH_DOES_NOT_EXIST, FAILED_WITH_EXCEPTION, FAILED_WITH_EXIST, FAILED_WITH_SECURITY, SUCCESS, TOKEN_SEPARATOR, UNEXPECTED_ERROR, VERSION_1 |
| Constructor Summary | |
|---|---|
DStoreHostProcess(org.eclipse.dstore.core.model.DataElement dataElementObj)
Constructor that takes a dataElement object containing the process information, and a parent process. |
|
| Method Summary | |
|---|---|
String |
getAbsolutePath()
|
Object |
getAdapter(Class adapterType)
|
String |
getAllProperties()
Returns all properties of this process in the same format as given in the dataelement |
protected String |
getAttributes(String newAttributes)
The Properties of the process are returned from the miner in a string that can be parsed using the String.split method, with delimiter "|". |
long |
getGid()
Get the process owner's group id (gid) |
String |
getLabel()
Get the display name for this process. |
String |
getName()
Get the name of the executable owning this process |
Object |
getObject()
Returns the DataElement for this object |
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 |
protected String |
getSubAttribute(int attIndex)
Returns a subattribute of the A_VALUE of this process's associated data element. |
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) |
protected void |
init(org.eclipse.dstore.core.model.DataElement dataElementObj)
|
boolean |
isRoot()
Returns whether this is the root process or not |
protected void |
setAbsolutePath(String path)
|
protected void |
setAllProperties(String allProperties)
|
protected void |
setGid(long gid)
|
protected void |
setGid(String newGid)
|
void |
setLabel(String newLabel)
|
protected void |
setName(String exeName)
|
protected void |
setPid(long newPid)
|
protected void |
setPid(String newPid)
|
protected void |
setPPid(long newPPid)
|
protected void |
setPPid(String newPPid)
|
void |
setProcess(Object dataElementObj)
Set the DataElement for this object |
protected void |
setState(String newState)
|
protected void |
setSubAttribute(int attIndex,
String newSubAttribute)
Helper method for setting any attributes of the underlying DataElement. |
protected void |
setTgid(long tgid)
|
protected void |
setTgid(String newTgid)
|
protected void |
setTracerPid(long tracerPid)
|
protected void |
setTracerPid(String newTracerPid)
|
protected void |
setUid(long uid)
|
protected void |
setUid(String newUid)
|
protected void |
setUsername(String username)
|
protected void |
setVmRSSInKB(long size)
|
protected void |
setVmSizeInKB(long size)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean ROOT_TRUE
public static final boolean ROOT_FALSE
protected String _name
protected String _username
protected long _pid
protected long _ppid
protected long _tgid
protected long _tracerPid
protected long _uid
protected long _gid
protected String _label
protected String _fullyQualifiedProcess
protected boolean _isRoot
protected Object _remoteObj
protected HashMap _contents
protected boolean _isStale
protected HashMap _properties
protected HashMap _propertyStates
| Constructor Detail |
public DStoreHostProcess(org.eclipse.dstore.core.model.DataElement dataElementObj)
| Method Detail |
protected void init(org.eclipse.dstore.core.model.DataElement dataElementObj)
protected String getAttributes(String newAttributes)
The string contains properties of the object in the following order
public void setProcess(Object dataElementObj)
public Object getObject()
public String getAbsolutePath()
public String getLabel()
IHostProcess
getLabel in interface IHostProcesspublic long getPid()
IHostProcess
getPid in interface IHostProcesspublic String getName()
IHostProcess
getName in interface IHostProcesspublic String getState()
IHostProcess
getState in interface IHostProcesspublic long getTgid()
IHostProcess
getTgid in interface IHostProcesspublic long getTracerPid()
IHostProcess
getTracerPid in interface IHostProcesspublic long getUid()
IHostProcess
getUid in interface IHostProcesspublic String getUsername()
IHostProcess
getUsername in interface IHostProcesspublic long getGid()
IHostProcess
getGid in interface IHostProcessprotected void setAbsolutePath(String path)
protected void setGid(long gid)
protected void setGid(String newGid)
public void setLabel(String newLabel)
protected void setName(String exeName)
protected void setPid(long newPid)
protected void setPid(String newPid)
protected void setState(String newState)
protected void setTgid(long tgid)
protected void setTgid(String newTgid)
protected void setTracerPid(long tracerPid)
protected void setTracerPid(String newTracerPid)
protected void setUid(long uid)
protected void setUid(String newUid)
protected void setUsername(String username)
public Object getAdapter(Class adapterType)
getAdapter in interface IAdaptablepublic long getPPid()
IHostProcess
getPPid in interface IHostProcessprotected void setPPid(long newPPid)
protected void setPPid(String newPPid)
public boolean isRoot()
IHostProcess
isRoot in interface IHostProcesspublic String getAllProperties()
IHostProcess
getAllProperties in interface IHostProcessprotected void setAllProperties(String allProperties)
allProperties - public long getVmSizeInKB()
IHostProcess
getVmSizeInKB in interface IHostProcesspublic long getVmRSSInKB()
IHostProcess
getVmRSSInKB in interface IHostProcessprotected void setVmSizeInKB(long size)
size - the size to setprotected void setVmRSSInKB(long size)
size - the size to setprotected String getSubAttribute(int attIndex)
attIndex - the index of the desired subattribute
protected void setSubAttribute(int attIndex,
String newSubAttribute)
attIndex - newSubAttribute -
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||