Package org.neo4j.graphalgo.core.utils
Class BatchingProgressLogger
- java.lang.Object
-
- org.neo4j.graphalgo.core.utils.BatchingProgressLogger
-
- All Implemented Interfaces:
ProgressLogger
public class BatchingProgressLogger extends java.lang.Object implements ProgressLogger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
ProgressLogger.NullProgressLogger
-
-
Field Summary
Fields Modifier and Type Field Description static long
MAXIMUM_LOG_INTERVAL
-
Fields inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
NO_MESSAGE, NULL_LOGGER
-
-
Constructor Summary
Constructors Constructor Description BatchingProgressLogger(org.neo4j.logging.Log log, long taskVolume, long batchSize, java.lang.String task, int concurrency)
BatchingProgressLogger(org.neo4j.logging.Log log, long taskVolume, java.lang.String task, int concurrency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.neo4j.logging.Log
getLog()
void
logMessage(java.util.function.Supplier<java.lang.String> msg)
void
logProgress(double percentDone, java.util.function.Supplier<java.lang.String> msg)
void
logProgress(long progress, java.util.function.Supplier<java.lang.String> msgFactory)
void
logProgress(java.util.function.Supplier<java.lang.String> msgFactory)
void
reset(long newTaskVolume)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
logMessage, logProgress, logProgress, logProgress, logProgress, logProgress
-
-
-
-
Constructor Detail
-
BatchingProgressLogger
public BatchingProgressLogger(org.neo4j.logging.Log log, long taskVolume, java.lang.String task, int concurrency)
-
BatchingProgressLogger
public BatchingProgressLogger(org.neo4j.logging.Log log, long taskVolume, long batchSize, java.lang.String task, int concurrency)
-
-
Method Detail
-
logProgress
public void logProgress(java.util.function.Supplier<java.lang.String> msgFactory)
- Specified by:
logProgress
in interfaceProgressLogger
-
logProgress
public void logProgress(long progress, java.util.function.Supplier<java.lang.String> msgFactory)
- Specified by:
logProgress
in interfaceProgressLogger
-
logMessage
public void logMessage(java.util.function.Supplier<java.lang.String> msg)
- Specified by:
logMessage
in interfaceProgressLogger
-
reset
public void reset(long newTaskVolume)
- Specified by:
reset
in interfaceProgressLogger
-
getLog
public org.neo4j.logging.Log getLog()
- Specified by:
getLog
in interfaceProgressLogger
-
logProgress
public void logProgress(double percentDone, java.util.function.Supplier<java.lang.String> msg)
- Specified by:
logProgress
in interfaceProgressLogger
-
-