Class ProfilingModelInspector
- java.lang.Object
-
- com.evolveum.midpoint.model.common.util.ProfilingModelInspector
-
- All Implemented Interfaces:
ClockworkInspector
,RepositoryPerformanceMonitor
,DiagnosticContext
,DebugDumpable
public class ProfilingModelInspector extends Object implements DiagnosticContext, ClockworkInspector, RepositoryPerformanceMonitor, DebugDumpable
-
-
Field Summary
Fields Modifier and Type Field Description protected static Trace
LOGGER
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ProfilingModelInspector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <F extends ObjectType>
voidafterMappingEvaluation(ModelContext<F> context, Mapping<?,?> evaluatedMapping)
May be used to gather profiling data, etc.<F extends ObjectType>
voidclockworkFinish(ModelContext<F> context)
<F extends ObjectType>
voidclockworkStart(ModelContext<F> context)
<F extends ObjectType>
voidclockworkStateSwitch(ModelContext<F> contextBefore, ModelState newState)
String
debugDump(int indent)
<F extends ObjectType>
ModelContext<F>getLastLensContext()
void
projectorComponentFinish(String componentName)
void
projectorComponentSkip(String componentName)
void
projectorComponentStart(String componentName)
<F extends ObjectType>
voidprojectorFinish(ModelContext<F> context)
<F extends ObjectType>
voidprojectorStart(ModelContext<F> context)
void
recordFinish()
void
recordRepoOperation(long durationMillis)
void
recordStart()
void
reset()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
-
-
-
Field Detail
-
LOGGER
protected static final Trace LOGGER
-
-
Method Detail
-
recordStart
public void recordStart()
-
recordFinish
public void recordFinish()
-
reset
public void reset()
-
clockworkStart
public <F extends ObjectType> void clockworkStart(ModelContext<F> context)
- Specified by:
clockworkStart
in interfaceClockworkInspector
-
clockworkFinish
public <F extends ObjectType> void clockworkFinish(ModelContext<F> context)
- Specified by:
clockworkFinish
in interfaceClockworkInspector
-
clockworkStateSwitch
public <F extends ObjectType> void clockworkStateSwitch(ModelContext<F> contextBefore, ModelState newState)
- Specified by:
clockworkStateSwitch
in interfaceClockworkInspector
-
projectorStart
public <F extends ObjectType> void projectorStart(ModelContext<F> context)
- Specified by:
projectorStart
in interfaceClockworkInspector
-
projectorFinish
public <F extends ObjectType> void projectorFinish(ModelContext<F> context)
- Specified by:
projectorFinish
in interfaceClockworkInspector
-
getLastLensContext
public <F extends ObjectType> ModelContext<F> getLastLensContext()
-
afterMappingEvaluation
public <F extends ObjectType> void afterMappingEvaluation(ModelContext<F> context, Mapping<?,?> evaluatedMapping)
Description copied from interface:ClockworkInspector
May be used to gather profiling data, etc.- Specified by:
afterMappingEvaluation
in interfaceClockworkInspector
-
projectorComponentSkip
public void projectorComponentSkip(String componentName)
- Specified by:
projectorComponentSkip
in interfaceClockworkInspector
-
projectorComponentStart
public void projectorComponentStart(String componentName)
- Specified by:
projectorComponentStart
in interfaceClockworkInspector
-
projectorComponentFinish
public void projectorComponentFinish(String componentName)
- Specified by:
projectorComponentFinish
in interfaceClockworkInspector
-
recordRepoOperation
public void recordRepoOperation(long durationMillis)
- Specified by:
recordRepoOperation
in interfaceRepositoryPerformanceMonitor
-
debugDump
public String debugDump(int indent)
- Specified by:
debugDump
in interfaceDebugDumpable
-
-