Class ModuleFileTransactions.StageResult
java.lang.Object
com.ultikits.ultitools.utils.ModuleFileTransactions.StageResult
- Enclosing class:
ModuleFileTransactions
- Since:
- 6.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe outcome. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate final Stringprivate final Stringprivate final ModuleFileTransactions.StageResult.Outcomeprivate final Stringprivate Stringprivate final Arg[]private final MessageKey -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStageResult(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure, MessageKey reasonKey, Arg[] reasonArgs) -
Method Summary
Modifier and TypeMethodDescription(package private) static ModuleFileTransactions.StageResultfailed(String previousFailure, MessageKey reasonKey, Object... values) An earlier start's failed apply of this module -- file and error -- which the operator is told about before anything else, ornull.Arg[](package private) static ModuleFileTransactions.StageResultof(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure) (package private) ModuleFileTransactions.StageResultwithModule(String module) (package private) ModuleFileTransactions.StageResultwithPreviousVersion(String version)
-
Field Details
-
outcome
-
moduleName
-
oldVersion
-
newVersion
-
previousFailure
-
reasonKey
-
reasonArgs
-
previousVersion
-
-
Constructor Details
-
StageResult
private StageResult(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure, MessageKey reasonKey, Arg[] reasonArgs)
-
-
Method Details
-
of
static ModuleFileTransactions.StageResult of(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure) -
failed
static ModuleFileTransactions.StageResult failed(String previousFailure, MessageKey reasonKey, Object... values) -
withModule
-
withPreviousVersion
-
getPreviousVersion
- Returns:
- the earlier pending version when an operation replaced or cancelled it
-
getOutcome
- Returns:
- the outcome
-
getModuleName
- Returns:
- the module's runtime name, when known
-
getOldVersion
- Returns:
- the version that is loaded now, when known
-
getNewVersion
- Returns:
- the staged version, when known
-
getPreviousFailure
An earlier start's failed apply of this module -- file and error -- which the operator is told about before anything else, ornull.- Returns:
- the failure, or
null
-
getReasonKey
- Returns:
- the catalogue key of the reason nothing was staged, or
null
-
getReasonArgs
- Returns:
- the reason's format arguments
-