Package com.evolveum.midpoint.task.api
Interface Tracer
-
public interface Tracer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompiledTracingProfile
compileProfile(TracingProfileType profile, OperationResult result)
TracingProfileType
getDefaultProfile()
TracingProfileType
resolve(TracingProfileType tracingProfile, OperationResult result)
Resolves a tracing profile - i.e.void
setTemplateParametersCustomizer(@NotNull Consumer<Map<String,String>> customizer)
Sets customizer of tracer template parameters, replacing any previous one.void
storeTrace(Task task, OperationResult result, @Nullable OperationResult parentResult)
Stores trace to persistent storage (usually a file in "trace" directory).
-
-
-
Method Detail
-
storeTrace
void 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).
-
resolve
TracingProfileType 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.
-
getDefaultProfile
TracingProfileType getDefaultProfile()
-
compileProfile
CompiledTracingProfile compileProfile(TracingProfileType profile, OperationResult result) throws SchemaException
- Throws:
SchemaException
-
-