|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<T>
org.schmant.task.stub.AbstractProcessTask<CopyTask>
org.schmant.task.io.CopyTask
public final class CopyTask
See CopyTF
Field Summary |
---|
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable |
---|
DEFAULT_OVERWRITE_STRATEGY |
Method Summary | |
---|---|
void |
copyProperties(CopyTask spec)
Override the implementation from AbstractTask to copy the
source properties. |
EntityView |
get()
Returns the produced object, or null if nothing is produced
yet. |
String |
getDefaultLogHeader()
Get the default log header to log (to level INFO) before the task is run if the task user has not set a custom header. |
protected boolean |
isMoreThanOneSourceAllowed()
Is more than one source object allowed? This method returns false
. |
protected void |
runInternal(Report r)
Subclasses implement this. |
String |
toString()
Default implementation for tasks. |
Methods inherited from class org.schmant.task.stub.AbstractProcessTask |
---|
getOverwriteStrategy, getTarget, isTargetMandatory, setOverwrite, setOverwriteStrategy, setTarget, validate |
Methods inherited from class org.schmant.task.stub.AbstractActionTask |
---|
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isSourcesMandatory, setRelativeToBase, setSource, setSources |
Methods inherited from class org.schmant.task.stub.AbstractTask |
---|
cancel, createTask, getDefaultLogFooter, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
Methods inherited from class org.schmant.support.AbstractArgumentChecker |
---|
check, check, check, check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.schmant.task.confable.SourceConfigurable |
---|
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources |
Methods inherited from interface org.schmant.task.confable.SourceConfigured |
---|
getSource, getSources |
Methods inherited from interface org.schmant.task.TaskSpecification |
---|
createTask |
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable |
---|
setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
Methods inherited from interface org.schmant.task.confable.TargetConfigurable |
---|
setTarget |
Methods inherited from interface org.schmant.task.confable.OverwriteConfigurable |
---|
setOverwrite, setOverwriteStrategy |
Methods inherited from interface org.schmant.task.confable.TargetConfigured |
---|
getTarget |
Method Detail |
---|
public String getDefaultLogHeader()
AbstractTask
This is called after validating the task.
Return null
to disable logging.
getDefaultLogHeader
in class AbstractTask<CopyTask>
protected boolean isMoreThanOneSourceAllowed()
AbstractActionTask
false
. Subclasses override this method to return true
if they
allow several sources.
This method will only be called if AbstractActionTask.isSourcesMandatory()
returns
true
.
isMoreThanOneSourceAllowed
in class AbstractActionTask<CopyTask>
false
, alwayspublic EntityView get()
Producer
null
if nothing is produced
yet.
This method should be implemented thread-safe.
get
in interface Producer<EntityView>
protected void runInternal(Report r)
AbstractTask
AbstractTask.validate(Report)
:d before
this method is called, see AbstractTask.run()
.
runInternal
in class AbstractTask<CopyTask>
r
- The current thread's Report
.public void copyProperties(CopyTask spec)
AbstractActionTask
AbstractTask
to copy the
source properties. Subclasses must override this to copy their own
properties.
copyProperties
in interface TaskSpecification<CopyTask>
copyProperties
in class AbstractProcessTask<CopyTask>
spec
- The specification to copy properties to.public String toString()
AbstractTask
This implementation just returns the class name.
toString
in class AbstractProcessTask<CopyTask>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |