org.schmant.task.io
Class MoveTask

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.stub.AbstractTask<T>
          extended by org.schmant.task.stub.AbstractActionTask<T>
              extended by org.schmant.task.stub.AbstractProcessTask<MoveTask>
                  extended by org.schmant.task.io.MoveTask
All Implemented Interfaces:
Producer<EntityView>, TaskDependency, ActionTaskConfigurable<MoveTask>, ActionTaskSpec<MoveTask>, LoggingConfigurable<MoveTask>, OverwriteConfigurable<MoveTask>, SourceConfigurable<MoveTask>, SourceConfigured, TargetConfigurable<MoveTask>, TargetConfigured, GeneratorTaskConfigurable<MoveTask>, GeneratorTaskSpec<MoveTask>, ProcessTaskConfigurable<MoveTask>, ProcessTaskSpec<MoveTask>, Task, TaskRunnable, TaskSpecification<MoveTask>

public final class MoveTask
extends AbstractProcessTask<MoveTask>
implements Producer<EntityView>

See MoveTF

Since:
0.5
Author:
Karl Gustafsson
Task_package:
org.schmant.task.base

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Method Summary
 EntityView get()
          Returns the produced object, or null if nothing is produced yet.
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
copyProperties, 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, getDefaultLogHeader, 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
 

Method Detail

get

public final EntityView get()
Description copied from interface: Producer
Returns the produced object, or null if nothing is produced yet.

This method should be implemented thread-safe.

Specified by:
get in interface Producer<EntityView>
Returns:
The produced object.

isMoreThanOneSourceAllowed

protected boolean isMoreThanOneSourceAllowed()
Description copied from class: AbstractActionTask
Is more than one source object allowed? This method returns false . Subclasses override this method to return true if they allow several sources.

This method will only be called if AbstractActionTask.isSourcesMandatory() returns true.

Overrides:
isMoreThanOneSourceAllowed in class AbstractActionTask<MoveTask>
Returns:
false, always

runInternal

protected void runInternal(Report r)
Description copied from class: AbstractTask
Subclasses implement this. The task is AbstractTask.validate(Report):d before this method is called, see AbstractTask.run().

Specified by:
runInternal in class AbstractTask<MoveTask>
Parameters:
r - The current thread's Report.

toString

public String toString()
Description copied from class: AbstractTask
Default implementation for tasks. Task implementations may override this. It is used in the default log header that is written (level INFO) before a task is run.

This implementation just returns the class name.

Overrides:
toString in class AbstractProcessTask<MoveTask>