Package server.restful.common.deployment
Klasse DeploymentScanner
java.lang.Object
server.restful.common.deployment.DeploymentScanner
Scans a deploy directory on server startup for *.deploy marker files.
Each marker file contains HTTP URLs (one per line) that are downloaded sequentially using the existing
DownloadThread infrastructure. Old files are cleaned from the target directory before downloading. On success
the marker file is deleted; on failure it is kept for retry on the next startup.
The deploy directory is <tmpDir>/deploy/ (default: ~/.jsidplay2/deploy/).
- Autor:
- ken
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate static final Map<String, Function<SidPlay2Section, File>> private static final Map<String, BiConsumer<SidPlay2Section, File>> private final Configurationprivate final Runnableprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Logger -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprivate voidcleanOldFile(String urlString) private voiddeleteIfExists(File file) private FiledownloadBlocking(String urlString) private FiledownloadSequentially(List<String> urls) private booleanprocessMarker(File markerFile) voidscan()private booleanupdateConfigIfAbsent(String markerFileName, File downloadedFile)
-
Felddetails
-
LOG
-
DEPLOY_DIR_NAME
- Siehe auch:
-
DEPLOY_FILE_PREFIX
- Siehe auch:
-
DEPLOY_FILE_EXTENSION
- Siehe auch:
-
COLLECTION_GETTERS
-
COLLECTION_SETTERS
-
config
-
configSafer
-
-
Konstruktordetails
-
DeploymentScanner
-
-
Methodendetails
-
scan
public void scan() -
processMarker
-
readUrls
-
cleanOldFile
-
deleteIfExists
- Löst aus:
IOException
-
updateConfigIfAbsent
-
downloadSequentially
-
downloadBlocking
-