Uses of Class
com.ultikits.ultitools.utils.ModuleFileTransactions.StageResult
Packages that use ModuleFileTransactions.StageResult
-
Uses of ModuleFileTransactions.StageResult in com.ultikits.ultitools.utils
Fields in com.ultikits.ultitools.utils declared as ModuleFileTransactions.StageResultModifier and TypeFieldDescriptionprivate final ModuleFileTransactions.StageResultModuleFileTransactions.Reservation.refusalThe field for therefusalrecord component.Methods in com.ultikits.ultitools.utils that return ModuleFileTransactions.StageResultModifier and TypeMethodDescriptionprivate static ModuleFileTransactions.StageResultModuleFileTransactions.cleanupRefusal(ModuleFileTransactions.Record previous, String error) ModuleFileTransactions.decideTarget(ModuleFileTransactions.Record record, ModuleFileTransactions.Record previous, String previousFailure, boolean explicitInstall) ModuleFileTransactions.decideVersion(ModuleFileTransactions.Record record, ModuleFileTransactions.Record previous, String previousFailure, boolean explicitInstall) (package private) static ModuleFileTransactions.StageResultModuleFileTransactions.StageResult.failed(String previousFailure, MessageKey reasonKey, Object... values) (package private) static ModuleFileTransactions.StageResultModuleFileTransactions.StageResult.of(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure) ModuleFileTransactions.Reservation.refusal()Returns the value of therefusalrecord component.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).ModuleFileTransactions.refuseOccupiedInstallTarget(String target, String previousFailure) private static ModuleFileTransactions.StageResultModuleFileTransactions.refuseOtherApiLevel(File work, File staged, String previousFailure) A download must declare anapi-versionthis framework installs: fromModuleApiLevels.MIN_INSTALLABLE_API_LEVELto its own level.private static ModuleFileTransactions.StageResultModuleFileTransactions.refuseOtherVersion(File work, String targetName, String stagedVersion, String latest, String previousFailure) A download must be the version the catalogue offered: a stale or misconfigured endpoint can serve a valid JAR of the same module declaring another version, which would otherwise be recorded -- and committed -- under the offered version's file name (round-6 review).ModuleFileTransactions.refuseReservation(ModuleFileTransactions.Record record, ModuleFileTransactions.RemovedModule identity, String identifyString) private static ModuleFileTransactions.StageResultModuleFileTransactions.refuseSharedOrAmbiguous(UltiToolsPlugin module, File oldJar, String key, String identifyString, List<UltiToolsPlugin> loaded, Function<UltiToolsPlugin, File> codeSource, String previousFailure) The refusal when the JAR to replace is not the selected module's alone, ornull: another loaded module came from the same JAR, or another loaded module in another JAR declares the same identify-string.private static ModuleFileTransactions.StageResultModuleFileTransactions.resultFor(ModuleFileTransactions.StageResult.Outcome outcome, ModuleFileTransactions.Record record, ModuleFileTransactions.Record previous, String failure) (package private) ModuleFileTransactions.StageResultModuleFileTransactions.stageChange(String identifyString, String requestedVersion, String installName, PendingChanges.Requester requester, Supplier<List<UltiToolsPlugin>> loaded, Function<UltiToolsPlugin, File> codeSource, ModuleFileTransactions.Catalogue catalogue, ModuleFileTransactions.Downloader downloader, Function<UltiToolsPlugin, String> mainClassOf) Stages a change to a specified version, or the latest compatible version when unspecified.ModuleFileTransactions.stageUpdate(String identifyString, Supplier<List<UltiToolsPlugin>> loaded, Function<UltiToolsPlugin, File> codeSource, ModuleFileTransactions.Catalogue catalogue, ModuleFileTransactions.Downloader downloader, Function<UltiToolsPlugin, String> mainClassOf) Stages an update, asModuleFileTransactions.stageUpdate(String, List, Function, Catalogue, Downloader, Function)does, reading the loaded modules only under the lock that an uninstall's cancellation also takes (Codex round 16, #561).ModuleFileTransactions.stageUpdate(String identifyString, List<UltiToolsPlugin> loaded, Function<UltiToolsPlugin, File> codeSource, ModuleFileTransactions.Catalogue catalogue, ModuleFileTransactions.Downloader downloader) Stages an update of a loaded module: downloads its latest version into the transaction folder and records it, leaving the modules folder untouched.ModuleFileTransactions.stageUpdate(String identifyString, List<UltiToolsPlugin> loaded, Function<UltiToolsPlugin, File> codeSource, ModuleFileTransactions.Catalogue catalogue, ModuleFileTransactions.Downloader downloader, Function<UltiToolsPlugin, String> mainClassOf) Stages an update of a loaded module, asModuleFileTransactions.stageUpdate(String, List, Function, Catalogue, Downloader)does, with the module's main class as the module loader recorded it.PluginInstallUtils.stageUpdate(String identifyString) Stages an update of a loaded module to its latest version (#505).PluginInstallUtils.stageUpdate(String identifyString, org.bukkit.command.CommandSender sender) Requests a restart-time update as the supplied command sender.private static ModuleFileTransactions.StageResultModuleFileTransactions.verifyStaged(ModuleFileTransactions.Record record, File work, File staged, String latest, String previousFailure) Checks the downloaded JAR -- the size/entry guard, its identity, that it declares the version the catalogue offered, and that itsapi-versionis one this framework installs (ModuleApiLevels; plan 18-40) -- and on success records its version and SHA-256.(package private) ModuleFileTransactions.StageResultModuleFileTransactions.StageResult.withModule(String module) (package private) ModuleFileTransactions.StageResultModuleFileTransactions.StageResult.withPreviousVersion(String version) Methods in com.ultikits.ultitools.utils with parameters of type ModuleFileTransactions.StageResultModifier and TypeMethodDescriptionprivate static voidPluginInstallUtils.appendPreviousFailure(PluginInstallUtils.PendingResult.Builder result, String requested, ModuleFileTransactions.StageResult staged) private static voidPluginInstallUtils.appendStageFailure(PluginInstallUtils.PendingResult.Builder result, Arg module, ModuleFileTransactions.StageResult staged, boolean install) private static voidPluginInstallUtils.appendStageReply(PluginInstallUtils.PendingResult.Builder result, String requested, ModuleFileTransactions.StageResult staged, boolean install) private static PluginInstallUtils.PendingResultPluginInstallUtils.installResult(String name, ModuleFileTransactions.StageResult staged, PluginInstallUtils.PendingResult admissionRefusal) (package private) static ModuleFileTransactions.ReservationModuleFileTransactions.Reservation.refused(ModuleFileTransactions.StageResult result) PluginInstallUtils.updateResult(String requested, ModuleFileTransactions.StageResult staged) Converts the shared stage result into update replies in the operator's language.Constructors in com.ultikits.ultitools.utils with parameters of type ModuleFileTransactions.StageResultModifierConstructorDescriptionprivateReservation(UltiToolsPlugin module, File oldJar, String oldSha256, String previousFailure, ModuleFileTransactions.StageResult refusal) Creates an instance of aReservationrecord class.