Uses of Class
com.ultikits.ultitools.utils.ModuleFileTransactions.Reservation
Packages that use ModuleFileTransactions.Reservation
-
Uses of ModuleFileTransactions.Reservation in com.ultikits.ultitools.utils
Methods in com.ultikits.ultitools.utils that return ModuleFileTransactions.ReservationModifier and TypeMethodDescriptionModuleFileTransactions.locate(String key, String identifyString, List<UltiToolsPlugin> loaded, Function<UltiToolsPlugin, File> codeSource, String previousFailure) The loaded module to update and the JAR in the modules folder it was loaded from.(package private) static ModuleFileTransactions.ReservationModuleFileTransactions.Reservation.refused(ModuleFileTransactions.StageResult refusal) ModuleFileTransactions.reserve(ModuleFileTransactions.Record record, File work, String identifyString, List<UltiToolsPlugin> loaded, Function<UltiToolsPlugin, File> codeSource) The checks staging makes before it downloads, underModuleFileTransactions.LOCK: no download of this module running, no update already staged, no kept old JAR left without its record.Methods in com.ultikits.ultitools.utils with parameters of type ModuleFileTransactions.ReservationModifier and TypeMethodDescriptionModuleFileTransactions.download(ModuleFileTransactions.Record record, File work, String identifyString, ModuleFileTransactions.Reservation reservation, ModuleFileTransactions.Catalogue catalogue, ModuleFileTransactions.Downloader downloader, Function<UltiToolsPlugin, String> mainClassOf) The part of staging that touches the network and the staged file, run outside the lock; only the record write at its end takes the lock again.private static StringModuleFileTransactions.mainClassOf(ModuleFileTransactions.Reservation reservation, Function<UltiToolsPlugin, String> recorded) The module's main class: as the module loader recorded it, else as the old JAR's ownplugin.ymldeclares it -- the same entry the loader reads.ModuleFileTransactions.refuseBeforeDownload(String identifyString, String link, String targetName, ModuleFileTransactions.Reservation reservation, Function<UltiToolsPlugin, String> mainClassOf) The refusals decided once the new JAR's file name is known, before anything is downloaded or written: no download offered, or another copy of the module that would load instead of the new JAR at the next start (maintainer follow-up 19).