|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.logging.LogRecord de.lmu.ifi.dbs.elki.logging.ProgressLogRecord
public class ProgressLogRecord
Additionally to the functionality of a LogRecord, a ProgressLogRecord provides information concerning the progress as the name of the progressing task and the percentage of the progress. An example for usage may be:
partitionProgress.setProcessed(processed++); logger.log(new ProgressLogRecord(Level.INFO,Util.status(partitionProgress),partitionProgress.getTask(),partitionProgress.status()));This enables the presentation of the progress in a graphical context.
Field Summary | |
---|---|
private int |
percentage
The percentage of progress. |
private static long |
serialVersionUID
Generated serial version UID. |
private String |
task
The name of the progressing task. |
Constructor Summary | |
---|---|
ProgressLogRecord(Level level,
String msg,
String task,
int percentage)
Provides a ProgressLogRecord. |
Method Summary | |
---|---|
int |
getPercentage()
Returns the percentage of the progress as set in the constructor. |
String |
getTask()
Returns the name of the progressing task. |
Methods inherited from class java.util.logging.LogRecord |
---|
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String task
private int percentage
Constructor Detail |
---|
public ProgressLogRecord(Level level, String msg, String task, int percentage)
level
- logging levelmsg
- log messagetask
- the name of the progressing taskpercentage
- the percentage of progressLogRecord.LogRecord(Level, String)
Method Detail |
---|
public int getPercentage()
public String getTask()
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |