|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.services.clientserver.processes.HostProcessFilterImpl
public class HostProcessFilterImpl
A class representing a remote process filter string. This is a name pattern
for returning lists of remote processes when used as input to the
UniversalProcessMiner class.
Valid generic names are names with one or two asterisks
anywhere in the name, as in:
ABC* or *ABC or A*C
*ABC* or *A*C or A*C*
toString().
| Field Summary | |
|---|---|
protected boolean |
_resolveVariables
|
static String |
ALL
|
protected boolean |
anystatus
|
protected String |
gid
|
protected long |
maxVM
|
protected long |
minVM
|
protected String |
name
|
protected String |
pid
|
protected String |
ppid
|
protected HashMap |
states
|
protected String |
status
|
protected String |
username
|
protected static char |
WILDCARD
|
| Constructor Summary | |
|---|---|
HostProcessFilterImpl()
Constructor to use when there is no existing filter string. |
|
HostProcessFilterImpl(boolean resolveVariables)
Constructor to use when there is no existing filter string. |
|
HostProcessFilterImpl(String input)
Constructor to use when filter string already exists. |
|
HostProcessFilterImpl(String input,
boolean resolveVariables)
Constructor to use when filter string already exists. |
|
| Method Summary | |
|---|---|
boolean |
allows(String status)
Returns whether this filter allows a process with the status line status to pass through. |
boolean |
getAnyStatus()
Returns true when all process states are selected. |
String |
getGid()
Return the process group id (gid) part of this filter string. |
String |
getMaxVM()
Returns the maximum VM size for processes allowed by this filter |
String |
getMinVM()
Returns the minimum VM size for processes allowed by this filter |
String |
getName()
Return the process name part of this filter string. |
String |
getPid()
Return the process id (pid) part of this filter string. |
String |
getPpid()
Return the process parent id (ppid) part of this filter string. |
boolean |
getSpecificState(String stateCode)
|
HashMap |
getStates()
|
String |
getUsername()
Return the username part of this filter string. |
protected void |
init()
|
protected void |
initInput(String input)
|
protected void |
initStates()
|
boolean |
satisfiesState(String state)
|
void |
setAnyStatus()
Select all/any process states |
void |
setGid(String obj)
Set the process group id (gid) part of this filter string. |
void |
setMaxVM(String strMaxVM)
Sets the maximum VM size for processes allowed by this filter |
void |
setMinVM(String strMinVM)
Sets the minimum VM size for processes allowed by this filter |
void |
setName(String obj)
Set the name part of this filter string. |
void |
setPid(String obj)
Set the process id part of this filter string. |
void |
setPpid(String obj)
Set the process parent id part of this filter string. |
void |
setSpecificState(String stateCode)
|
void |
setUsername(String obj)
Set the user id (uid) part of this filter string. |
protected String |
toStateString()
|
String |
toString()
Convert this filter into a filter string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ALL
protected static final char WILDCARD
protected String name
protected String username
protected String gid
protected String ppid
protected String pid
protected long minVM
protected long maxVM
protected boolean anystatus
protected String status
protected HashMap states
protected boolean _resolveVariables
| Constructor Detail |
|---|
public HostProcessFilterImpl()
public HostProcessFilterImpl(boolean resolveVariables)
public HostProcessFilterImpl(String input)
public HostProcessFilterImpl(String input,
boolean resolveVariables)
| Method Detail |
|---|
protected void initStates()
protected void init()
protected void initInput(String input)
public HashMap getStates()
getStates in interface IHostProcessFilterpublic String getName()
getName in interface IHostProcessFilterpublic String getUsername()
getUsername in interface IHostProcessFilterpublic String getGid()
getGid in interface IHostProcessFilterpublic String getPpid()
getPpid in interface IHostProcessFilterpublic String getPid()
getPid in interface IHostProcessFilterpublic boolean getAnyStatus()
getAnyStatus in interface IHostProcessFilterpublic String getMinVM()
getMinVM in interface IHostProcessFilterpublic String getMaxVM()
getMaxVM in interface IHostProcessFilterpublic void setName(String obj)
setName in interface IHostProcessFilterpublic void setUsername(String obj)
setUsername in interface IHostProcessFilterpublic void setGid(String obj)
setGid in interface IHostProcessFilterpublic void setPpid(String obj)
setPpid in interface IHostProcessFilterpublic void setPid(String obj)
setPid in interface IHostProcessFilterpublic void setAnyStatus()
setAnyStatus in interface IHostProcessFilterpublic void setMinVM(String strMinVM)
setMinVM in interface IHostProcessFilterpublic void setMaxVM(String strMaxVM)
setMaxVM in interface IHostProcessFilterpublic String toString()
toString in class Objectprotected String toStateString()
public boolean allows(String status)
status to pass through. The status line contains some of the contents of
the status file contained in the processes numbered directory in
the /proc filesystem. For example, the status line of process 12345 is
the contents of the file /proc/12345/stat.
The status line must be structured as follows:
"pid|name|status|tgid|ppid|tracerpid|uid|username|gid|vmSize|vmRSS"
allows in interface IHostProcessFilterpublic boolean getSpecificState(String stateCode)
getSpecificState in interface IHostProcessFilterpublic void setSpecificState(String stateCode)
setSpecificState in interface IHostProcessFilterpublic boolean satisfiesState(String state)
satisfiesState in interface IHostProcessFilter
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||