|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.sysinfo.DefaultSystemInfoOptions
An default implementation of SystemInfoOptions.
| Field Summary |
| Fields inherited from interface com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions |
DETAIL_LEVEL_DETAILED, DETAIL_LEVEL_FULL, DETAIL_LEVEL_NORMAL, DETAIL_LEVEL_SIMPLE |
| Constructor Summary | |
DefaultSystemInfoOptions(int detailLevel)
Creates a new DefaultSystemInfoOptions. |
|
| Method Summary | |
java.lang.String |
createId(java.lang.Object object)
Creates a unique id for the object given (unique while this application runs). |
int |
getDetailLevel()
Returns the detail level of informations to collect (can be any of SystemInfoOptions.DETAIL_LEVEL_SIMPLE, SystemInfoOptions.DETAIL_LEVEL_NORMAL,
SystemInfoOptions.DETAIL_LEVEL_DETAILED, SystemInfoOptions.DETAIL_LEVEL_FULL). |
java.lang.Object |
getOption(java.lang.String key)
Returns a previously set option object for the given key. |
java.lang.String |
getTraversedId(java.lang.Object object)
Returns the stored traveres id for the object given. |
boolean |
isDetailLevelAtLeast(int minLevel)
Returns true, if this SystemInfoOptions detail
level is least min_level or more detailed. |
boolean |
isTraversed(java.lang.Object object)
Returns true, if the object given was already traversed within the
current run of collecting system information. |
void |
markTraversed(java.lang.Object object,
java.lang.String id)
Marks the given object as traversed. |
boolean |
markTraversedAndSetId(SystemInfoNode node,
java.lang.Object object)
Marks the given object as traversed and sets a created id to the given SystemInfoNode.
|
void |
setOption(java.lang.String key,
java.lang.Object option)
Sets an additional option object for the key given. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultSystemInfoOptions(int detailLevel)
DefaultSystemInfoOptions.
| Method Detail |
public int getDetailLevel()
SystemInfoOptionsSystemInfoOptions.DETAIL_LEVEL_SIMPLE, SystemInfoOptions.DETAIL_LEVEL_NORMAL,
SystemInfoOptions.DETAIL_LEVEL_DETAILED, SystemInfoOptions.DETAIL_LEVEL_FULL).
getDetailLevel in interface SystemInfoOptionspublic boolean isDetailLevelAtLeast(int minLevel)
SystemInfoOptionstrue, if this SystemInfoOptions detail
level is least min_level or more detailed.
isDetailLevelAtLeast in interface SystemInfoOptionsminLevel - the minimum detail level to check againstpublic java.lang.Object getOption(java.lang.String key)
SystemInfoOptions
getOption in interface SystemInfoOptionskey - the key of the option to return (not null)
null is returned)SystemInfoOptions.getOption(java.lang.String)
public void setOption(java.lang.String key,
java.lang.Object option)
SystemInfoOptions
setOption in interface SystemInfoOptionskey - the option key (not null)option - the option object to set (if null, will be removed)SystemInfoOptions.setOption(java.lang.String, java.lang.Object)public java.lang.String createId(java.lang.Object object)
SystemInfoOptionsSystem.identityHashCode(Object))
in hexadecimal representation.
createId in interface SystemInfoOptionsSystemInfoOptions.createId(java.lang.Object)
public void markTraversed(java.lang.Object object,
java.lang.String id)
SystemInfoOptions
markTraversed in interface SystemInfoOptionsobject - an object beeing traversed (may be null)id - the id to set (if null, a unique id will be set using
SystemInfoOptions.createId(Object))SystemInfoOptions.markTraversed(java.lang.Object, java.lang.String)public boolean isTraversed(java.lang.Object object)
SystemInfoOptionstrue, if the object given was already traversed within the
current run of collecting system information.
isTraversed in interface SystemInfoOptionsobject - the object beeing checked (if null, always false
will be returned)SystemInfoOptions.isTraversed(java.lang.Object)public java.lang.String getTraversedId(java.lang.Object object)
SystemInfoOptions
getTraversedId in interface SystemInfoOptionsobject - the object to get an id for (may be null, then always
null will be returned)
null if the object was not yet traversed
and so no traverse-id was storedSystemInfoOptions.getTraversedId(java.lang.Object)
public boolean markTraversedAndSetId(SystemInfoNode node,
java.lang.Object object)
SystemInfoOptionsSystemInfoNode.
If the object already was traversed, the id will set as reference id.
markTraversedAndSetId in interface SystemInfoOptionsnode - the SystemInfoNode to set id or idref (if null, no id will be set)object - the object traversing (may be null; the id for null will be "<null>")
true if object is traversed the first time,
false otherwiseSystemInfoOptions.markTraversedAndSetId(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, java.lang.Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||