Package com.evolveum.midpoint.task.api
Interface Tracer
public interface Tracer
- 
Method SummaryModifier and TypeMethodDescriptioncompileProfile(@Nullable TracingProfileType profile, @NotNull OperationResult result) Compiles the tracing profile; or a default one, if no profile is provided.@NotNull TracingProfileTypeTODOresolve(TracingProfileType tracingProfile, OperationResult result) Resolves a tracing profile - i.e. replaces references to other (named) profiles with their content.voidsetTemplateParametersCustomizer(@NotNull Consumer<Map<String, String>> customizer) Sets customizer of tracer template parameters, replacing any previous one.voidstoreTrace(Task task, OperationResult result, @Nullable OperationResult parentResult) Stores trace to persistent storage (usually a file in "trace" directory).
- 
Method Details- 
storeTracevoid storeTrace(Task task, OperationResult result, @Nullable @Nullable OperationResult parentResult) Stores trace to persistent storage (usually a file in "trace" directory).- Parameters:
- task- Task containing the context information necessary e.g. to derive name of the trace file.
- result- Result that is to be serialized and stored.
- parentResult- Parent result where this operation should be recorded (if any).
 
- 
resolveTracingProfileType resolve(TracingProfileType tracingProfile, OperationResult result) throws SchemaException Resolves a tracing profile - i.e. replaces references to other (named) profiles with their content.- Throws:
- SchemaException- If the profile name cannot be resolved e.g. if the referenced profile does not exist or the name in ambiguous.
 
- 
getDefaultProfileTODO
- 
compileProfileCompiledTracingProfile compileProfile(@Nullable @Nullable TracingProfileType profile, @NotNull @NotNull OperationResult result) throws SchemaException Compiles the tracing profile; or a default one, if no profile is provided.- Throws:
- SchemaException
 
- 
setTemplateParametersCustomizerSets customizer of tracer template parameters, replacing any previous one. This allows to inject custom parameters, for instance during test runs.
 
-