|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.core.dialogbase.features.SystemSnapshotFeature
This feature allows taking of system snapshots of the whole dialog hierarchy
for every dialog. It uses a SystemInfoService, which must be accessible
in the dialog hierarchy (because this is a core service, it should be).
| Constructor Summary | |
SystemSnapshotFeature()
|
|
| Method Summary | |
SystemInfoOptions |
createSystemInfoOptions(int detailLevel)
Creates a new SystemInfoOptions with the given detail level.
|
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected void |
init()
Called when the feature is initializing. |
void |
printSystemSnapshot()
Takes a system snapshot and prints it to the console. |
void |
saveSystemSnapshotToFile(java.io.File file)
Takes a system snapshot and saves it to a file. |
void |
saveSystemSnapshotToFile(java.io.File file,
SystemInfoNode snapshot)
Saves the system snapshot given to a file. |
SystemInfoNode |
takeSystemSnapshot()
Takes a current system snapshot of the dialog hierarchy normal details and returns it. |
SystemInfoNode |
takeSystemSnapshot(int detailLevel)
Takes a current system snapshot of the dialog hierarchy with the given detail level and returns it. |
SystemInfoNode |
takeSystemSnapshot(java.lang.String infoClass,
int detailLevel)
Takes a current system snapshot of the given information class with the given detail level and returns it. |
SystemInfoNode |
takeSystemSnapshot(java.lang.String infoClass,
SystemInfoOptions options)
Takes a current system snapshot of the given information class with the given SystemInfoOptions and returns it. |
| Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature |
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, prepare, release |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemSnapshotFeature()
| Method Detail |
protected void init()
AbstractFeatureDialogControl installed to. To access the
DialogControl use the AbstractFeature.getDialogControl() method.
Override this method to perform some action on initialization e.g. register public services.
init in class AbstractFeatureAbstractFeature.init()
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptionAbstractFeature.dispose()public SystemInfoNode takeSystemSnapshot(int detailLevel)
detailLevel - the detail level to take snapshit with
SystemInfoNode with the collected informationpublic SystemInfoNode takeSystemSnapshot()
SystemInfoNode with the collected informationpublic void printSystemSnapshot()
public void saveSystemSnapshotToFile(java.io.File file)
file - the File to save information into
public void saveSystemSnapshotToFile(java.io.File file,
SystemInfoNode snapshot)
file - the File to save information intosnapshot - a SystemInfoNode with the system information
public SystemInfoNode takeSystemSnapshot(java.lang.String infoClass,
int detailLevel)
infoClass - the information class to get the information fordetailLevel - the detail level to take snapshit with
SystemInfoNode with the collected information
public SystemInfoNode takeSystemSnapshot(java.lang.String infoClass,
SystemInfoOptions options)
SystemInfoOptions and returns it.
infoClass - the information class to get the information foroptions - the SystemInfoOptions to use
SystemInfoNode with the collected informationpublic SystemInfoOptions createSystemInfoOptions(int detailLevel)
SystemInfoOptions with the given detail level.
This method should only be used when starting collection of system
information to create the initial SystemInfoOptions for a
collection run.
detailLevel - the detail level to collect information of
SystemInfoOptions
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||