예제 #1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public void dumpDiagnostics(final org.neo4j.kernel.impl.store.NeoStores source, org.neo4j.internal.diagnostics.DiagnosticsPhase phase, org.neo4j.logging.Logger logger)
        public void DumpDiagnostics(Org.Neo4j.Kernel.impl.store.NeoStores source, [email protected] phase, Org.Neo4j.Logging.Logger logger)
        {
            if (Applicable(phase))
            {
                logger.Log(_message);
                Dump(source, logger);
            }
        }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: public void dump(DiagnosticsPhase phase, final org.neo4j.logging.Logger logger)
            public void dump(DiagnosticsPhase phase, Logger logger)
            {
                if (phase.Initialization || phase.ExplicitlyRequested)
                {
                    logger.Log("Diagnostics providers:");
                    foreach (DiagnosticsProvider provider in _outerInstance.providers)
                    {
                        logger.Log(provider.DiagnosticsIdentifier);
                    }
                }
            }
예제 #3
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: private void dumpAll(final DiagnosticsPhase phase, org.neo4j.logging.Log log)
        private void DumpAll(DiagnosticsPhase phase, Log log)
        {
            log.Bulk(bulkLog =>
            {
                phase.emitStart(bulkLog);
                foreach (DiagnosticsProvider provider in _providers)
                {
                    Dump(provider, phase, bulkLog);
                }
                phase.emitDone(bulkLog);
            });
        }
예제 #4
0
        private static void Dump(DiagnosticsProvider provider, DiagnosticsPhase phase, Log log)
        {
            // Optimization to skip diagnostics dumping (which is time consuming) if there's no log anyway.
            // This is first and foremost useful for speeding up testing.
            if (log == NullLog.Instance)
            {
                return;
            }

            try
            {
                provider.Dump(phase, log.InfoLogger());
            }
            catch (Exception cause)
            {
                log.Error("Failure while logging diagnostics for " + provider, cause);
            }
        }
예제 #5
0
 public override void Dump(DiagnosticsPhase phase, Logger logger)
 {
     Extractor.dumpDiagnostics(Source, phase, logger);
 }
예제 #6
0
 private void Dump(DiagnosticsPhase phase, DiagnosticsProvider provider, Log log)
 {
     phase.emitStart(log, provider);
     Dump(provider, phase, log);
     phase.emitDone(log, provider);
 }
예제 #7
0
 internal bool Applicable([email protected] phase)
 {
     return(phase.Initialization || phase.ExplicitlyRequested);
 }