Class InternalMonitor
java.lang.Object
com.evolveum.midpoint.schema.internals.InternalMonitor
- All Implemented Interfaces:
PrismMonitor
,DebugDumpable
Simple monitoring object. It records the count of expensive operations
in the system. It is used in the tests to make sure such operations are not
executed more frequently than expected. It may also have some run-time value.
- Author:
- Radovan Semancik
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<O extends Objectable>
voidafterObjectClone
(@NotNull PrismObject<O> orig, @Nullable PrismObject<O> clone) void
afterObjectParsing
(@Nullable PrismObject<?> object) void
afterObjectSerialization
(@NotNull PrismObject<?> item) <O extends Objectable>
voidbeforeObjectClone
(@NotNull PrismObject<O> orig) void
Beware! This may not cover all object parsing operations.void
beforeObjectSerialization
(@NotNull PrismObject<?> item) Beware! This may not cover all object serializations.debugDump
(int indent) static String
debugDumpStatic
(int indent) static CachingStatistics
static long
getCount
(InternalCounters counter) static InternalInspector
static long
static CachingStatistics
static boolean
static boolean
isTrace
(InternalOperationClasses operationClass) static void
static void
static void
recordCount
(InternalCounters counter) <O extends Objectable>
voidrecordPrismObjectCompareCount
(PrismObject<O> thisObject, Object thatObject) static <O extends ObjectType>
voidrecordRepositoryRead
(Class<O> type, String oid) static <F extends AssignmentHolderType>
voidrecordRoleEvaluation
(F target, boolean fullEvaluation) static <F extends AssignmentHolderType>
voidrecordRoleEvaluationSkip
(F target, boolean fullEvaluation) static void
reset()
static void
setCloneTimingEnabled
(boolean cloneTimingEnabled) static void
setInspector
(InternalInspector inspector) static void
setPrismObjectCloneDurationMillis
(long prismObjectCloneDurationNanos) static void
setTrace
(InternalCounters counter, boolean val) static void
setTrace
(InternalOperationClasses operationClass, boolean val) 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
-
Constructor Details
-
InternalMonitor
public InternalMonitor()
-
-
Method Details
-
getCount
-
recordCount
-
isTrace
-
setTrace
-
setTrace
-
getResourceCacheStats
-
getConnectorCacheStats
-
recordConnectorOperation
-
recordConnectorModification
-
recordRepositoryRead
-
recordPrismObjectCompareCount
public <O extends Objectable> void recordPrismObjectCompareCount(PrismObject<O> thisObject, Object thatObject) - Specified by:
recordPrismObjectCompareCount
in interfacePrismMonitor
-
isCloneTimingEnabled
public static boolean isCloneTimingEnabled() -
setCloneTimingEnabled
public static void setCloneTimingEnabled(boolean cloneTimingEnabled) -
getPrismObjectCloneDurationMillis
public static long getPrismObjectCloneDurationMillis() -
setPrismObjectCloneDurationMillis
public static void setPrismObjectCloneDurationMillis(long prismObjectCloneDurationNanos) -
beforeObjectClone
- Specified by:
beforeObjectClone
in interfacePrismMonitor
-
afterObjectClone
public <O extends Objectable> void afterObjectClone(@NotNull @NotNull PrismObject<O> orig, @Nullable @Nullable PrismObject<O> clone) - Specified by:
afterObjectClone
in interfacePrismMonitor
-
beforeObjectSerialization
Description copied from interface:PrismMonitor
Beware! This may not cover all object serializations. Hopefully at least the majority.- Specified by:
beforeObjectSerialization
in interfacePrismMonitor
-
afterObjectSerialization
- Specified by:
afterObjectSerialization
in interfacePrismMonitor
-
beforeObjectParsing
public void beforeObjectParsing()Description copied from interface:PrismMonitor
Beware! This may not cover all object parsing operations. Hopefully at least the majority.- Specified by:
beforeObjectParsing
in interfacePrismMonitor
-
afterObjectParsing
- Specified by:
afterObjectParsing
in interfacePrismMonitor
-
recordRoleEvaluation
public static <F extends AssignmentHolderType> void recordRoleEvaluation(F target, boolean fullEvaluation) -
recordRoleEvaluationSkip
public static <F extends AssignmentHolderType> void recordRoleEvaluationSkip(F target, boolean fullEvaluation) -
getInspector
-
setInspector
-
reset
public static void reset() -
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
debugDumpStatic
-