|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.hq.autoinventory.scanimpl.ScanMethodBase
org.hyperic.hq.autoinventory.scanimpl.FileScan
public class FileScan
This implementation of ScanMethod knows how to scan the filesystem. It can be configured to scan the whole filesystem, or to only scan certain directories while ignoring others. It can also ignore entire filesystems of a particular type, for example network mounted filesystems or CD-ROM drives (ie iso9660 filesystems).
Field Summary | |
---|---|
static java.lang.String |
FS_TYPE_ALL
|
static java.lang.String |
FS_TYPE_LOCAL
|
static java.lang.String |
FS_TYPE_NETWORK
|
static java.lang.String[] |
FS_TYPES
|
Fields inherited from class org.hyperic.hq.autoinventory.scanimpl.ScanMethodBase |
---|
_authorityLevel, _config, _scanner, _state |
Constructor Summary | |
---|---|
FileScan()
|
|
FileScan(boolean isWindows)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Get the description of this ScanMethod. |
java.lang.String |
getDisplayName()
Get the human readable name of this ScanMethod. |
boolean |
getIsInterrupted()
|
java.lang.String |
getName()
Get the name of this ScanMethod. |
protected ConfigOption[] |
getOptionsArray()
Subclasses implement this method to return the array of ConfigOptions supported by the scan method. |
void |
notifyScanDir(java.io.File dir)
The MatcherScanner calls this method for each directory it traverses. |
void |
scan(ConfigResponse platformConfig,
ServerDetector[] serverDetectors)
Perform a scan for this method. |
Methods inherited from class org.hyperic.hq.autoinventory.scanimpl.ScanMethodBase |
---|
getAuthorityLevel, getConfig, getConfigSchema, init, setAuthorityLevel, setScanner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FS_TYPE_ALL
public static final java.lang.String FS_TYPE_LOCAL
public static final java.lang.String FS_TYPE_NETWORK
public static final java.lang.String[] FS_TYPES
Constructor Detail |
---|
public FileScan()
public FileScan(boolean isWindows)
Method Detail |
---|
public java.lang.String getName()
ScanMethod
getName
in interface ScanMethod
public java.lang.String getDisplayName()
ScanMethod
getDisplayName
in interface ScanMethod
public java.lang.String getDescription()
ScanMethod
getDescription
in interface ScanMethod
protected ConfigOption[] getOptionsArray()
ScanMethodBase
getOptionsArray
in class ScanMethodBase
public void scan(ConfigResponse platformConfig, ServerDetector[] serverDetectors) throws AutoinventoryException
ScanMethod
scan
in interface ScanMethod
platformConfig
- ConfigResponse for the platformserverDetectors
- an array of ServerDetectors to use when scanning.
AutoinventoryException
- If an error occurs during the scan.public boolean getIsInterrupted()
getIsInterrupted
in interface MatcherInterruptCallback
MatcherInterruptCallback.getIsInterrupted()
public void notifyScanDir(java.io.File dir)
MatcherProgressCallback
notifyScanDir
in interface MatcherProgressCallback
MatcherProgressCallback.notifyScanDir(java.io.File)
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |