Class ActivityBasedTaskInformation
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.task.TaskInformation
-
- com.evolveum.midpoint.schema.util.task.ActivityBasedTaskInformation
-
- All Implemented Interfaces:
DebugDumpable
,Serializable
public class ActivityBasedTaskInformation extends TaskInformation
Implementation ofTaskInformation
based on new, activity-based tasks. Assumes knowledge of both root and current task.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.evolveum.midpoint.schema.util.task.TaskInformation
overallStatus, task, workersInformation
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
debugDump(int indent)
Integer
getAllErrors()
Returns number of items failed to be processed by the task and its children, if known.XMLGregorianCalendar
getEndTimestamp()
Returns the "end timestamp" with the analogous semantics toTaskInformation.getStartTimestamp()
.Object
getLiveSyncToken()
We assume the token is directly in the task provided.String
getProgressDescription(boolean longForm)
@NotNull ActivityProgressInformation
getProgressInformation()
XMLGregorianCalendar
getStartTimestamp()
Returns the "start timestamp", whatever that means.-
Methods inherited from class com.evolveum.midpoint.schema.util.task.TaskInformation
createForTask, getCompletelyStalledSince, getNodesDescription, getProgressDescriptionShort, getResultStatus, getTask
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Method Detail
-
getProgressDescription
public String getProgressDescription(boolean longForm)
- Specified by:
getProgressDescription
in classTaskInformation
-
getAllErrors
public Integer getAllErrors()
Description copied from class:TaskInformation
Returns number of items failed to be processed by the task and its children, if known. BEWARE: Fatal errors (e.g. resource not found for import task) are not counted here.- Specified by:
getAllErrors
in classTaskInformation
-
getStartTimestamp
public XMLGregorianCalendar getStartTimestamp()
Description copied from class:TaskInformation
Returns the "start timestamp", whatever that means. Currently it is the execution start for trivial tasks (a single non-bucketed activity, or a legacy task); and realization start otherwise.- Specified by:
getStartTimestamp
in classTaskInformation
-
getEndTimestamp
public XMLGregorianCalendar getEndTimestamp()
Description copied from class:TaskInformation
Returns the "end timestamp" with the analogous semantics toTaskInformation.getStartTimestamp()
.- Specified by:
getEndTimestamp
in classTaskInformation
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
- Overrides:
debugDump
in classTaskInformation
-
getLiveSyncToken
public Object getLiveSyncToken()
We assume the token is directly in the task provided.- Specified by:
getLiveSyncToken
in classTaskInformation
-
getProgressInformation
@NotNull public @NotNull ActivityProgressInformation getProgressInformation()
-
-