Class TaskPartitioningInformation
- java.lang.Object
-
- com.evolveum.midpoint.schema.util.TaskPartitioningInformation
-
- All Implemented Interfaces:
DebugDumpable
,ShortDumpable
public class TaskPartitioningInformation extends Object implements DebugDumpable, ShortDumpable
Information on task partitioning state - more usable than distributed task work state in child tasks.
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
debugDump(int indent)
static TaskPartitioningInformation
fromTask(TaskType task)
int
getAllPartitions()
int
getCompletePartitions()
Integer
getFirstIncompletePartitionNumber()
@NotNull TaskType
getFirstIncompletePartitionTask()
Integer
getLastCompletePartitionNumber()
@NotNull TaskType
getLastCompletePartitionTask()
@NotNull Map<Integer,TaskType>
getPartitionsMap()
void
shortDump(StringBuilder sb)
Show the content of the object intended for diagnostics.-
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
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Method Detail
-
fromTask
public static TaskPartitioningInformation fromTask(TaskType task)
-
getAllPartitions
public int getAllPartitions()
-
getCompletePartitions
public int getCompletePartitions()
-
getFirstIncompletePartitionNumber
public Integer getFirstIncompletePartitionNumber()
-
getLastCompletePartitionNumber
public Integer getLastCompletePartitionNumber()
-
getFirstIncompletePartitionTask
@NotNull public @NotNull TaskType getFirstIncompletePartitionTask()
-
getLastCompletePartitionTask
@NotNull public @NotNull TaskType getLastCompletePartitionTask()
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
shortDump
public void shortDump(StringBuilder sb)
Description copied from interface:ShortDumpable
Show the content of the object intended for diagnostics. This method is supposed to append a compact, human-readable output in a single line. Unlike toString() method, there is no requirement to identify the actual class or type of the object. It is assumed that the class/type will be obvious from the context in which the output is used.- Specified by:
shortDump
in interfaceShortDumpable
- Parameters:
sb
- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
-