Package com.evolveum.midpoint.task.api
Class StateReporter
- java.lang.Object
-
- com.evolveum.midpoint.task.api.StateReporter
-
public class StateReporter extends Object
TODO better name (ProgressReporter ? StatisticsReporter ? ...) Used to report state, progress and performance statistics to upper layers. Generally a Task is the place where such information are reported and collected. However, because of a complex nature of some operations (namely, search) it tries to remember the state of an operation. TODO maybe this could be simplified in the future.- Author:
- Pavol Mederly
-
-
Constructor Summary
Constructors Constructor Description StateReporter()
StateReporter(String resourceOid, Task task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRun()
String
getResourceOid()
Task
getTask()
void
recordIcfOperationEnd(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef, Throwable ex, String identifier)
void
recordIcfOperationResume(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef)
void
recordIcfOperationStart(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef, String identifier)
void
recordIcfOperationSuspend(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef)
void
setResourceName(String resourceName)
void
setResourceOid(String resourceOid)
void
setTask(Task task)
-
-
-
Method Detail
-
setResourceName
public void setResourceName(String resourceName)
-
recordIcfOperationStart
public void recordIcfOperationStart(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef, String identifier)
-
recordIcfOperationSuspend
public void recordIcfOperationSuspend(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef)
-
recordIcfOperationResume
public void recordIcfOperationResume(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef)
-
recordIcfOperationEnd
public void recordIcfOperationEnd(ProvisioningOperation operation, ObjectClassComplexTypeDefinition objectClassDef, Throwable ex, String identifier)
-
setTask
public void setTask(Task task)
-
getTask
public Task getTask()
-
getResourceOid
public String getResourceOid()
-
setResourceOid
public void setResourceOid(String resourceOid)
-
canRun
public boolean canRun()
-
-