Class BatchingProgressLogger

    • Field Detail

      • MAXIMUM_LOG_INTERVAL

        public static final long MAXIMUM_LOG_INTERVAL
    • Constructor Detail

      • BatchingProgressLogger

        public BatchingProgressLogger​(org.neo4j.logging.Log log,
                                      Task task,
                                      int concurrency)
      • BatchingProgressLogger

        public BatchingProgressLogger​(org.neo4j.logging.Log log,
                                      Task task,
                                      long batchSize,
                                      int concurrency)
    • Method Detail

      • setTask

        public void setTask​(java.lang.String task)
        Specified by:
        setTask in interface ProgressLogger
      • logProgress

        public void logProgress​(java.util.function.Supplier<java.lang.String> msgFactory)
        Specified by:
        logProgress in interface ProgressLogger
      • logProgress

        public void logProgress​(long progress,
                                java.util.function.Supplier<java.lang.String> msgFactory)
        Specified by:
        logProgress in interface ProgressLogger
      • logMessage

        public void logMessage​(java.util.function.Supplier<java.lang.String> msg)
        Specified by:
        logMessage in interface ProgressLogger
      • logDebug

        public void logDebug​(java.lang.String message)
        Specified by:
        logDebug in interface ProgressLogger
      • logWarning

        public void logWarning​(java.lang.String message)
        Specified by:
        logWarning in interface ProgressLogger
      • reset

        public long reset​(long newTaskVolume)
        Specified by:
        reset in interface ProgressLogger
      • logProgress

        public void logProgress​(double percentDone,
                                java.util.function.Supplier<java.lang.String> msg)
        Specified by:
        logProgress in interface ProgressLogger