Class ActivityProgressInformation
java.lang.Object
com.evolveum.midpoint.schema.util.task.ActivityProgressInformation
- All Implemented Interfaces:
DebugDumpable,Serializable
Summarized representation of a progress of an activity and its sub-activities.
Examples:
- 23% in 1/3
- 23% in 2/2 in 2/3
TODO optimize task reading: avoid doing that for completed subtasks
TODO i8n
NOTE: User-oriented information on the activity can be obtained by resolving the following keys (for example):
- Activity.name.shadows-collection="Shadows collection"
- Activity.explanation.shadows-collection="Collecting correlated shadows"
The first one is used as the traditional activity name (with wording like "User recomputation", "Resource reconciliation", ...)
while the second one is used to display the activity in the task progress panel - what is the task doing at the moment.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING -
Method Summary
Modifier and TypeMethodDescriptionvoiddebugDump(int indent) find(ActivityPath activityPath) static @NotNull ActivityProgressInformationfromRootTask(@NotNull TaskType task, @NotNull ActivityProgressInformationBuilder.InformationSource source) Prepares the information from a root task.static @NotNull ActivityProgressInformationfromRootTask(@NotNull TaskType task, @NotNull TaskResolver resolver, @NotNull ActivityProgressInformationBuilder.InformationSource source) Prepares the information from a root task.@Nullable String@NotNull ActivityPath@NotNull List<ActivityProgressInformation>@Nullable IntegerintintbooleanbooleanbooleantoHumanReadableString(boolean longForm) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Method Details
-
fromRootTask
@NotNull public static @NotNull ActivityProgressInformation fromRootTask(@NotNull @NotNull TaskType task, @NotNull @NotNull ActivityProgressInformationBuilder.InformationSource source) Prepares the information from a root task. The task may or may not have its children resolved. -
fromRootTask
@NotNull public static @NotNull ActivityProgressInformation fromRootTask(@NotNull @NotNull TaskType task, @NotNull @NotNull TaskResolver resolver, @NotNull @NotNull ActivityProgressInformationBuilder.InformationSource source) Prepares the information from a root task. The task may or may not have its children resolved. Note: the `resolver` parameter is dubious. Consider removing it. -
getActivityIdentifier
-
getActivityPath
-
getRealizationState
-
getBucketsProgress
-
getItemsProgress
-
getChildren
-
toString
-
debugDump
- Specified by:
debugDumpin interfaceDebugDumpable
-
toHumanReadableString
-
isInProgress
public boolean isInProgress() -
isComplete
public boolean isComplete() -
isNotStarted
public boolean isNotStarted() -
checkConsistence
public void checkConsistence() -
getDisplayOrder
-
getChild
-
getErrorsRecursive
public int getErrorsRecursive() -
getErrors
public int getErrors() -
find
-