Package org.neo4j.gds.core.utils
Class BatchingProgressLogger
- java.lang.Object
-
- org.neo4j.gds.core.utils.BatchingProgressLogger
-
- All Implemented Interfaces:
ProgressLogger
public class BatchingProgressLogger extends java.lang.Object implements ProgressLogger
-
-
Field Summary
Fields Modifier and Type Field Description static longMAXIMUM_LOG_INTERVAL-
Fields inherited from interface org.neo4j.gds.core.utils.ProgressLogger
NO_MESSAGE, TASK_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description BatchingProgressLogger(org.neo4j.logging.Log log, Task task, int concurrency)BatchingProgressLogger(org.neo4j.logging.Log log, Task task, long batchSize, int concurrency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTask()voidlogDebug(java.lang.String message)voidlogFinishPercentage()voidlogMessage(java.lang.String msg)voidlogMessage(java.util.function.Supplier<java.lang.String> msg)voidlogProgress(long progress, java.util.function.Supplier<java.lang.String> msgFactory)voidlogProgress(java.util.function.Supplier<java.lang.String> msgFactory)voidlogWarning(java.lang.String message)voidrelease()longreset(long newTaskVolume)voidsetTask(java.lang.String task)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.gds.core.utils.ProgressLogger
finishSubTask, logFinish, logFinish, logFinishSubtaskWithFailure, logFinishWithFailure, logFinishWithFailure, logProgress, logProgress, logStart, logStart, startSubTask
-
-
-
-
Method Detail
-
getTask
public java.lang.String getTask()
- Specified by:
getTaskin interfaceProgressLogger
-
setTask
public void setTask(java.lang.String task)
- Specified by:
setTaskin interfaceProgressLogger
-
logProgress
public void logProgress(java.util.function.Supplier<java.lang.String> msgFactory)
- Specified by:
logProgressin interfaceProgressLogger
-
logProgress
public void logProgress(long progress, java.util.function.Supplier<java.lang.String> msgFactory)- Specified by:
logProgressin interfaceProgressLogger
-
logFinishPercentage
public void logFinishPercentage()
- Specified by:
logFinishPercentagein interfaceProgressLogger
-
release
public void release()
- Specified by:
releasein interfaceProgressLogger
-
logMessage
public void logMessage(java.lang.String msg)
- Specified by:
logMessagein interfaceProgressLogger
-
logMessage
public void logMessage(java.util.function.Supplier<java.lang.String> msg)
- Specified by:
logMessagein interfaceProgressLogger
-
logDebug
public void logDebug(java.lang.String message)
- Specified by:
logDebugin interfaceProgressLogger
-
logWarning
public void logWarning(java.lang.String message)
- Specified by:
logWarningin interfaceProgressLogger
-
reset
public long reset(long newTaskVolume)
- Specified by:
resetin interfaceProgressLogger
-
-