public class TimeBasedLogSink extends StatefulTaskProgressSink
NULL_SINK
Constructor and Description |
---|
TimeBasedLogSink(org.apache.log4j.Logger log,
String description,
long maxTimeBetweenEvents,
TaskProgressSink delegateSink) |
Modifier and Type | Method and Description |
---|---|
void |
makeProgress(long taskProgress,
String currentSubTask,
String message)
This method can be called to indicate that progress is being made by a
task.
|
createPercentageSinksForRange, createStepSinkView, createStepSinkView, getMaxProgress, getMinProgress, getProgress, makeProgress, makeProgressIncrement, setProgress
public TimeBasedLogSink(org.apache.log4j.Logger log, String description, long maxTimeBetweenEvents, TaskProgressSink delegateSink)
public void makeProgress(long taskProgress, String currentSubTask, String message)
StatefulTaskProgressSink
makeProgress
in interface TaskProgressSink
makeProgress
in class StatefulTaskProgressSink
taskProgress
- the current status of the task. This value will be clamped
between the minimum and maximum progress specified when the object is constructed.currentSubTask
- the name of the current sub task or null if there isn't onemessage
- an optional message about the progress or nullCopyright © 2002-2024 Atlassian. All Rights Reserved.