Class AsynchronousOperationResult
java.lang.Object
com.evolveum.midpoint.schema.result.AsynchronousOperationResult
- All Implemented Interfaces:
ShortDumpable
- Direct Known Subclasses:
AsynchronousOperationReturnValue
Primary goal of this class is to support asynchronous operations.
The call to operation may return even if the resource operation
is still in progress. The IN_PROGRESS status will be indicated in
this class in the operation result. The result may also include
the asynchronous operation reference in the operational status.
This reference may be later used to check the status of the
operation.
This may seems too simple and maybe pointless now. But we expect
that it may later evolve to something like future/promise.
FIXME this class looks to be heavily bound to the needs of the provisioning-impl module.
- Author:
- semancik
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidsetOperationResult(OperationResult operationResult) voidsetOperationType(PendingOperationTypeType operationType) voidsetQuantumOperation(boolean quantumOperation) voidShow the content of the object intended for diagnostics.toString()static AsynchronousOperationResultwrap(OperationResult result) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
Constructor Details
-
AsynchronousOperationResult
public AsynchronousOperationResult()
-
-
Method Details
-
getOperationResult
-
setOperationResult
-
getOperationType
-
setOperationType
-
isQuantumOperation
public boolean isQuantumOperation() -
setQuantumOperation
public void setQuantumOperation(boolean quantumOperation) -
wrap
-
isInProgress
public boolean isInProgress() -
shortDump
Description copied from interface:ShortDumpableShow 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:
shortDumpin interfaceShortDumpable- Parameters:
sb- StringBuilder to which to a compact one-line content of the object intended for diagnostics by system administrator should be appended.
-
toString
-