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
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Method Summary
Modifier and TypeMethodDescriptionvoid
debugDump
(int indent) find
(ActivityPath activityPath) static @NotNull ActivityProgressInformation
fromRootTask
(@NotNull TaskType task, @NotNull ActivityProgressInformationBuilder.InformationSource source) Prepares the information from a root task.static @NotNull ActivityProgressInformation
fromRootTask
(@NotNull TaskType task, @NotNull TaskResolver resolver, @NotNull ActivityProgressInformationBuilder.InformationSource source) Prepares the information from a root task.@NotNull ActivityPath
@NotNull List<ActivityProgressInformation>
int
int
boolean
boolean
toHumanReadableString
(boolean longForm) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
debugDump
in interfaceDebugDumpable
-
toHumanReadableString
-
isComplete
public boolean isComplete() -
isNotStarted
public boolean isNotStarted() -
checkConsistence
public void checkConsistence() -
getChild
-
getErrorsRecursive
public int getErrorsRecursive() -
getErrors
public int getErrors() -
find
-