Package de.mhus.lib.core.strategy
Class PrintWriterTaskContext
- java.lang.Object
-
- de.mhus.lib.core.strategy.PrintWriterTaskContext
-
- All Implemented Interfaces:
Monitor,TaskContext
public class PrintWriterTaskContext extends Object implements TaskContext
-
-
Constructor Summary
Constructors Constructor Description PrintWriterTaskContext(PrintWriterLog log, IConfig config, boolean testOnly)PrintWriterTaskContext(String name, PrintWriter writer, IConfig config, boolean testOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddErrorMessage(String msg)IConfiggetConfig()StringgetErrorMessage()longgetEstimated()MPropertiesgetParameters()longgetStep()voidincrementStep()booleanisTestOnly()Loglog()voidprint(Object... out)voidprintln()voidprintln(Object... out)voidsetStep(long step)voidsetSteps(long steps)
-
-
-
Constructor Detail
-
PrintWriterTaskContext
public PrintWriterTaskContext(String name, PrintWriter writer, IConfig config, boolean testOnly)
-
PrintWriterTaskContext
public PrintWriterTaskContext(PrintWriterLog log, IConfig config, boolean testOnly)
-
-
Method Detail
-
incrementStep
public void incrementStep()
- Specified by:
incrementStepin interfaceMonitor
-
getConfig
public IConfig getConfig()
- Specified by:
getConfigin interfaceTaskContext
-
isTestOnly
public boolean isTestOnly()
- Specified by:
isTestOnlyin interfaceTaskContext
-
getParameters
public MProperties getParameters()
- Specified by:
getParametersin interfaceTaskContext
-
getEstimated
public long getEstimated()
-
getStep
public long getStep()
-
addErrorMessage
public void addErrorMessage(String msg)
- Specified by:
addErrorMessagein interfaceTaskContext
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfaceTaskContext
-
-