Class Tracer
java.lang.Object
com._1c.g5.v8.internal.derived.tracing.Tracer
Tracing facility for DD subsystem. It should be used only during the development and cannot be used
as a tracing logic for the end product/CI due to resource/performance issues.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
logDDState
(boolean isInfrastructureReady, PipelineStatus pipelineStatus, DerivedDataStatus ddStatus) Logs current overal DD state into the consolestatic void
Traces the blocking of the async.static void
traceAsyncPipelineBlockingDueToUnreadyInfrastructure
(boolean blocked) Traces the blocking of the async.static void
Traces the blocking of the async.static void
Traces the disengagement of the forced DD stop.static void
Traces the engagement of the forced DD stop.static void
traceImplicitWaitScope
(List<IObjectDerivedDataContext> changedContexts, Set<String> segmentsToWait, boolean sync) Traces the scope of the implicit DD computaiton waiting being performed after the commit of the transactionstatic void
traceObjectDDComputationFailedWhileWaiting
(DerivedDataInfo info, IBmObject sourceObject, IAsyncProcessingPipeline asyncProcessingPipeline, IDerivedDataContextManager contextManager) Traces the failure of DD computation while waiting for DD of this object to be computed
-
Constructor Details
-
Tracer
public Tracer()
-
-
Method Details
-
logDDState
public static void logDDState(boolean isInfrastructureReady, PipelineStatus pipelineStatus, DerivedDataStatus ddStatus) Logs current overal DD state into the console- Parameters:
isInfrastructureReady
- States if the service infrastructure is ready for DD subsystem to perform compatuationspipelineStatus
- The current asynchronous DD pipeline status. Cannot benull
ddStatus
- Current status of DD for the calling project. Cannot benull
-
traceObjectDDComputationFailedWhileWaiting
public static void traceObjectDDComputationFailedWhileWaiting(DerivedDataInfo info, IBmObject sourceObject, IAsyncProcessingPipeline asyncProcessingPipeline, IDerivedDataContextManager contextManager) Traces the failure of DD computation while waiting for DD of this object to be computed- Parameters:
info
- The DD info for the target object. Cannot benull
sourceObject
- Source object. Cannot benull
asyncProcessingPipeline
- Current asynchronous DD processing pipeline. Cannot benull
contextManager
- The DD context manager. Cannot benull
-
traceAsyncPipelineBlockedByOrchestrator
Traces the blocking of the async. DD processing pipeline by decision of the derived data orchestrator.- Parameters:
activeBucket
- The current DD bucket scheduled for the computation.
-
traceAsyncPipelineBlockingDueToUnreadyInfrastructure
public static void traceAsyncPipelineBlockingDueToUnreadyInfrastructure(boolean blocked) Traces the blocking of the async. DD processing pipeline due to service infrastructure being unready at the moment- Parameters:
blocked
- The DD is blocked due to external lock
-
traceAsyncPipelineBlockingDueToUserActivity
public static void traceAsyncPipelineBlockingDueToUserActivity(DerivedDataSegmentBucket activeBucket) Traces the blocking of the async. DD processing pipeline due to user being active at the moment- Parameters:
activeBucket
- The current DD bucket scheduled for the computation.
-
traceImplicitWaitScope
public static void traceImplicitWaitScope(List<IObjectDerivedDataContext> changedContexts, Set<String> segmentsToWait, boolean sync) Traces the scope of the implicit DD computaiton waiting being performed after the commit of the transaction- Parameters:
changedContexts
- The list of DD contexts being changed within the transaction, cannot benull
segmentsToWait
- Set of DD segments that the DD is going to waitsync
- States if there is a file sync phase of DD computation at the moment
-
traceForcedStopInvoked
public static void traceForcedStopInvoked()Traces the engagement of the forced DD stop. -
traceForcedStopCleared
public static void traceForcedStopCleared()Traces the disengagement of the forced DD stop.
-