|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.ExhibitFile
public final class ExhibitFile
Routines to handle the filesystem representation of an exhibit. This absorbs some functionality buried in the old ImageInfoCache classes and methods.
| Field Summary | |
|---|---|
private static int |
_estimatedDirScanUtil
Estimated CPU utilisation per getFilesystemBasedExhibitNames() filter operation/thread. |
private static int |
_gFBEN_concurrencyLimit
Limit on number of concurrent threads in getFilesystemBasedExhibitNames(). |
| Constructor Summary | |
|---|---|
ExhibitFile()
|
|
| Method Summary | |
|---|---|
static java.util.Set<java.lang.String> |
getFilesystemBasedExhibitNames(java.io.File baseDir,
boolean checkFileContent)
Collect a set of names of exhibits in the filesystem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int _gFBEN_concurrencyLimit
Values of 2--8 are usually good.
private static final int _estimatedDirScanUtil
ParTasks.UTILISATION_MAX is taken to represent 100% CPU-bound.
We make sure that this value is at least UTILISATION_MIN.
| Constructor Detail |
|---|
public ExhibitFile()
| Method Detail |
|---|
public static java.util.Set<java.lang.String> getFilesystemBasedExhibitNames(java.io.File baseDir,
boolean checkFileContent)
For system (such ans Windows) where the directory separator is not '/' it is converted to this internally to provide the canonical name format.
These are not checked to exist or contain valid data unless checkFileContent is true though the directories encountered are always checked to be directories.
The names returned omit the base directory.
The names are collected in parallel if possible.
The returned Set is mutable and synchronized.
Files are always checked for a recognized file extension.
checkFileContent - if true, any putative exhibit is
checked for readability and for a correct magic number
|
DHD Multimedia Gallery V1.50.55 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||