public class ScriptPluginScanner
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.io.FileFilter |
FILENAME_FILTER |
Constructor and Description |
---|
ScriptPluginScanner(java.io.File extdir,
java.io.File cachedir,
FileCache<com.dtolabs.rundeck.core.plugins.ProviderLoader> filecache,
int rescanInterval) |
Modifier and Type | Method and Description |
---|---|
com.dtolabs.rundeck.core.plugins.ProviderLoader |
createCacheItemForFile(java.io.File file) |
com.dtolabs.rundeck.core.plugins.ProviderLoader |
createLoader(java.io.File file) |
void |
doScanAll()
scan all found files to cache them
|
java.io.FileFilter |
getFileFilter()
Return the file filter
|
protected java.lang.String |
getVersionForFile(java.io.File file)
Return the version string for the plugin file, or null
|
boolean |
isExpired(ProviderIdent ident,
java.io.File file)
Return true if the entry has expired
|
boolean |
isValidPluginFile(java.io.File file)
Return true if the file is a valid plugin file for the scanner
|
java.util.List<ProviderIdent> |
listProviders()
List available providers
|
java.io.File |
scanForFile(ProviderIdent ident)
scan for matching file for the provider def
|
boolean |
shouldRescan()
Return true if any file has been added/removed/modified, and the last full scan has not happened within a certain
interval
|
public ScriptPluginScanner(java.io.File extdir, java.io.File cachedir, FileCache<com.dtolabs.rundeck.core.plugins.ProviderLoader> filecache, int rescanInterval)
public com.dtolabs.rundeck.core.plugins.ProviderLoader createLoader(java.io.File file)
public com.dtolabs.rundeck.core.plugins.ProviderLoader createCacheItemForFile(java.io.File file)
public java.io.FileFilter getFileFilter()
public boolean isValidPluginFile(java.io.File file)
protected java.lang.String getVersionForFile(java.io.File file)
public final java.io.File scanForFile(ProviderIdent ident) throws com.dtolabs.rundeck.core.plugins.PluginScannerException
com.dtolabs.rundeck.core.plugins.PluginScannerException
public java.util.List<ProviderIdent> listProviders()
public boolean isExpired(ProviderIdent ident, java.io.File file)
public boolean shouldRescan()
public void doScanAll() throws com.dtolabs.rundeck.core.plugins.PluginScannerException
PluginScannerException