Class OperationExecutionWriter
java.lang.Object
com.evolveum.midpoint.repo.common.util.OperationExecutionWriter
- All Implemented Interfaces:
SystemConfigurationChangeListener
@Experimental
@Component
public class OperationExecutionWriter
extends Object
implements SystemConfigurationChangeListener
Writes provided OperationExecutionType records into objects.
Responsibilities:
1. writes provided operation execution record to the specified object
2. deletes superfluous operation execution records from that object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classOperationExecutionWriter.Request<O extends ObjectType>A request to write an operation execution record. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()intvoidinit()booleanvoidupdate(@Nullable SystemConfigurationType value) Updates the listener's internal state with the configuration provided.<O extends ObjectType>
voidwrite(OperationExecutionWriter.Request<O> request, OperationResult parentResult) Writes operation execution record and deletes the one(s) that have to be deleted, according to the current cleanup policy.
-
Field Details
-
DEFAULT_NUMBER_OF_RESULTS_TO_KEEP
public static final int DEFAULT_NUMBER_OF_RESULTS_TO_KEEP- See Also:
-
DEFAUL_NUMBER_OF_RESULTS_TO_KEEP_PER_TASK
public static final int DEFAUL_NUMBER_OF_RESULTS_TO_KEEP_PER_TASK- See Also:
-
-
Constructor Details
-
OperationExecutionWriter
public OperationExecutionWriter()
-
-
Method Details
-
write
public <O extends ObjectType> void write(OperationExecutionWriter.Request<O> request, OperationResult parentResult) throws SchemaException, ObjectAlreadyExistsException, ObjectNotFoundException Writes operation execution record and deletes the one(s) that have to be deleted, according to the current cleanup policy. -
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
update
Description copied from interface:SystemConfigurationChangeListenerUpdates the listener's internal state with the configuration provided.- Specified by:
updatein interfaceSystemConfigurationChangeListener- Parameters:
value- Current value of the system configuration object. It is 'null' if the object does not exist. Usually listeners keep their current state in such cases, but if needed, it will have the information about missing sysconfig object, so it could act accordingly.
-
shouldSkipAllOperationExecutionRecording
public boolean shouldSkipAllOperationExecutionRecording(OperationExecutionRecordTypeType recordType) -
getMaximumRecordsPerTask
public int getMaximumRecordsPerTask()
-