|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.subsystems.processes.core.subsystem.impl.RemoteProcessImpl
public class RemoteProcessImpl
Represents a remote process on the client machine. Wrappers an IRemoteServerProcess, with methods for returning information about the underlying process, as well as more client-oriented methods for returning information about the associated subsystem, connection, and filter string.
Field Summary | |
---|---|
protected IRemoteProcessContext |
_context
|
protected IRemoteProcess |
_parentProcess
|
protected IHostProcess |
_underlyingProcess
|
static char |
CONNECTION_DELIMITER
|
Constructor Summary | |
---|---|
RemoteProcessImpl(IRemoteProcessContext context,
IHostProcess process)
Constructor that takes a context object containing important information. |
Method Summary | |
---|---|
String |
getAbsolutePath()
Get fully qualified name of associated object in /proc filesystem: root plus path plus pid. |
String |
getAbsolutePathPlusConnection()
Get fully qualified connection and folder name of associated object in /proc filesystem: profile.connection/path/procfolder. |
Object |
getAdapter(Class adapter)
|
String |
getAllProperties()
Returns all properties of this process in the same format as given in the dataelement |
IRemoteProcessContext |
getContext()
Return the context associated with this remote process |
IHostProcessFilter |
getFilterString()
Return the filter string resolved to get this object |
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()
Subclasses must override to return the underlying object, whether that is a DataElement, or an IRemoteServerProcess |
IRemoteProcess |
getParentRemoteProcess()
Get the parent remote process of this process |
IRemoteProcessSubSystem |
getParentRemoteProcessSubSystem()
Get parent subsystem |
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 |
IHost |
getSystemConnection()
Return the connection this remote process is from. |
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 |
setFilterString(IHostProcessFilter filterString)
Set the filter string resolved to get this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char CONNECTION_DELIMITER
protected IRemoteProcessContext _context
protected IHostProcess _underlyingProcess
protected IRemoteProcess _parentProcess
Constructor Detail |
---|
public RemoteProcessImpl(IRemoteProcessContext context, IHostProcess process)
context
- An object holding contextual information about this objectIRemoteProcessContext
Method Detail |
---|
public IRemoteProcessSubSystem getParentRemoteProcessSubSystem()
IRemoteProcess
getParentRemoteProcessSubSystem
in interface IRemoteProcess
public IHost getSystemConnection()
IRemoteProcess
getSystemConnection
in interface IRemoteProcess
public IHostProcessFilter getFilterString()
IRemoteProcess
getFilterString
in interface IRemoteProcess
public void setFilterString(IHostProcessFilter filterString)
setFilterString
in interface IRemoteProcess
public String getAbsolutePathPlusConnection()
IRemoteProcess
getAbsolutePathPlusConnection
in interface IRemoteProcess
public IRemoteProcess getParentRemoteProcess()
IRemoteProcess
getParentRemoteProcess
in interface IRemoteProcess
public IRemoteProcessContext getContext()
getContext
in interface IRemoteProcess
public String getAbsolutePath()
IRemoteProcess
getAbsolutePath
in interface IRemoteProcess
public long getPid()
IHostProcess
getPid
in interface IHostProcess
public long getPPid()
IHostProcess
getPPid
in interface IHostProcess
public String getName()
IHostProcess
getName
in interface IHostProcess
public String getState()
IHostProcess
getState
in interface IHostProcess
public long getTgid()
IHostProcess
getTgid
in interface IHostProcess
public long getTracerPid()
IHostProcess
getTracerPid
in interface IHostProcess
public long getUid()
IHostProcess
getUid
in interface IHostProcess
public String getUsername()
IHostProcess
getUsername
in interface IHostProcess
public long getGid()
IHostProcess
getGid
in interface IHostProcess
public boolean isRoot()
IHostProcess
isRoot
in interface IHostProcess
public String getAllProperties()
IHostProcess
getAllProperties
in interface IHostProcess
public long getVmSizeInKB()
IHostProcess
getVmSizeInKB
in interface IHostProcess
public long getVmRSSInKB()
IHostProcess
getVmRSSInKB
in interface IHostProcess
public String getLabel()
IHostProcess
getLabel
in interface IHostProcess
public Object getObject()
getObject
in interface IRemoteProcess
public Object getAdapter(Class adapter)
getAdapter
in interface IAdaptable
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |