|
Hyperic HQ Plugin API v. 5.8.0 | |||||||||
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 String |
FS_TYPE_ALL
|
static String |
FS_TYPE_LOCAL
|
static String |
FS_TYPE_NETWORK
|
static String[] |
FS_TYPES
|
Fields inherited from class org.hyperic.hq.autoinventory.scanimpl.ScanMethodBase |
---|
_authorityLevel, _autoApproveConfig, _config, _scanner, _state |
Constructor Summary | |
---|---|
FileScan()
|
|
FileScan(boolean isWindows)
|
Method Summary | |
---|---|
String |
getDescription()
Get the description of this ScanMethod. |
String |
getDisplayName()
Get the human readable name of this ScanMethod. |
boolean |
getIsInterrupted()
|
String |
getName()
Get the name of this ScanMethod. |
protected org.hyperic.util.config.ConfigOption[] |
getOptionsArray()
Subclasses implement this method to return the array of ConfigOptions supported by the scan method. |
void |
notifyScanDir(File dir)
|
void |
scan(org.hyperic.util.config.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 String FS_TYPE_ALL
public static final String FS_TYPE_LOCAL
public static final String FS_TYPE_NETWORK
public static final String[] FS_TYPES
Constructor Detail |
---|
public FileScan()
public FileScan(boolean isWindows)
Method Detail |
---|
public String getName()
ScanMethod
getName
in interface ScanMethod
public String getDisplayName()
ScanMethod
getDisplayName
in interface ScanMethod
public String getDescription()
ScanMethod
getDescription
in interface ScanMethod
protected org.hyperic.util.config.ConfigOption[] getOptionsArray()
ScanMethodBase
getOptionsArray
in class ScanMethodBase
public void scan(org.hyperic.util.config.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 org.hyperic.util.file.match.MatcherInterruptCallback
MatcherInterruptCallback.getIsInterrupted()
public void notifyScanDir(File dir)
notifyScanDir
in interface org.hyperic.util.file.match.MatcherProgressCallback
MatcherProgressCallback.notifyScanDir(java.io.File)
|
Hyperic HQ Plugin API v. 5.8.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |