public class AbstractStorageManager extends Object
Modifier and Type | Field and Description |
---|---|
protected File |
base |
protected ScheduledExecutorService |
queryExecutor |
Constructor and Description |
---|
AbstractStorageManager(File base) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkValid()
Check if the base directory is a valid directory
|
void |
dispose() |
protected Map<String,File> |
findStorages()
Scan the file base for valid storages
|
File |
getBase() |
protected String |
probe(File file)
Probe the directory if it is a valid storage
|
protected final ScheduledExecutorService queryExecutor
protected final File base
public AbstractStorageManager(File base)
public File getBase()
public void dispose()
protected Map<String,File> findStorages()
protected String probe(File file)
file
- the directory to probenull
if it is not a valid storeprotected void checkValid()
IllegalStateException
- if the base if not valid