Package com.ultikits.ultitools.utils
Class ModuleFileTransactions.StageResult
java.lang.Object
com.ultikits.ultitools.utils.ModuleFileTransactions.StageResult
- Enclosing class:
ModuleFileTransactions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe outcome. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStageResult(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure, String reasonKey, Object[] reasonArgs) -
Method Summary
Modifier and TypeMethodDescription(package private) static ModuleFileTransactions.StageResultAn earlier start's failed apply of this module -- file and error -- which the operator is told about before anything else, ornull.Object[](package private) static ModuleFileTransactions.StageResultof(ModuleFileTransactions.StageResult.Outcome outcome, String moduleName, String oldVersion, String newVersion, String previousFailure)
-
Field Details
-
outcome
-
moduleName
-
oldVersion
-
newVersion
-
previousFailure
-
reasonKey
-
reasonArgs
-
-
Constructor Details
-
StageResult
-
-
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, String reasonKey, Object... reasonArgs) -
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
-