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
- 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.@NotNull ActivityPath@NotNull List<ActivityProgressInformation>intintbooleanbooleantoHumanReadableString(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
-
isComplete
public boolean isComplete() -
isNotStarted
public boolean isNotStarted() -
checkConsistence
public void checkConsistence() -
getChild
-
getErrorsRecursive
public int getErrorsRecursive() -
getErrors
public int getErrors() -
find
-