Package org.neo4j.graphalgo.core.utils
Enum ProgressLogger.NullProgressLogger
- java.lang.Object
-
- java.lang.Enum<ProgressLogger.NullProgressLogger>
-
- org.neo4j.graphalgo.core.utils.ProgressLogger.NullProgressLogger
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ProgressLogger.NullProgressLogger>
,ProgressLogger
- Enclosing interface:
- ProgressLogger
public static enum ProgressLogger.NullProgressLogger extends java.lang.Enum<ProgressLogger.NullProgressLogger> implements ProgressLogger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
ProgressLogger.NullProgressLogger, ProgressLogger.ProgressLoggerFactory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
-
Fields inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
NO_MESSAGE, NULL_LOGGER, TASK_SEPARATOR
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProgressEventTracker
eventTracker()
ProgressLogger
finishSubTask(java.lang.String subTaskName)
org.neo4j.logging.Log
getLog()
java.lang.String
getTask()
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
release()
long
reset(long newTaskVolume)
void
setTask(java.lang.String task)
ProgressLogger
startSubTask(java.lang.String subTaskName)
static ProgressLogger.NullProgressLogger
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ProgressLogger.NullProgressLogger[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.neo4j.graphalgo.core.utils.ProgressLogger
logFinish, logFinish, logMessage, logProgress, logProgress, logProgress, logProgress, logProgress, logStart, logStart
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ProgressLogger.NullProgressLogger INSTANCE
-
-
Method Detail
-
values
public static ProgressLogger.NullProgressLogger[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ProgressLogger.NullProgressLogger c : ProgressLogger.NullProgressLogger.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProgressLogger.NullProgressLogger valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getTask
public java.lang.String getTask()
- Specified by:
getTask
in interfaceProgressLogger
-
setTask
public void setTask(java.lang.String task)
- Specified by:
setTask
in interfaceProgressLogger
-
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
-
startSubTask
public ProgressLogger startSubTask(java.lang.String subTaskName)
- Specified by:
startSubTask
in interfaceProgressLogger
-
finishSubTask
public ProgressLogger finishSubTask(java.lang.String subTaskName)
- Specified by:
finishSubTask
in interfaceProgressLogger
-
reset
public long reset(long newTaskVolume)
- Specified by:
reset
in interfaceProgressLogger
-
release
public void release()
- Specified by:
release
in interfaceProgressLogger
-
getLog
public org.neo4j.logging.Log getLog()
- Specified by:
getLog
in interfaceProgressLogger
-
eventTracker
public ProgressEventTracker eventTracker()
- Specified by:
eventTracker
in interfaceProgressLogger
-
logProgress
public void logProgress(double percentDone, java.util.function.Supplier<java.lang.String> msg)
- Specified by:
logProgress
in interfaceProgressLogger
-
-