com.ibm.carma.ui.job
Class DownloadJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by com.ibm.carma.ui.job.AbstractCarmaJob
                  extended by com.ibm.carma.ui.job.DownloadJob
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable
Direct Known Subclasses:
DownloadRemoteJob

public class DownloadJob
extends AbstractCarmaJob

This User Job downloads remote files into IFiles. ResourceUtils is used to get the associated CARMAMember from the IFile.

This Class may be instantiated, but is not intended to be subclassed.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Constructor Summary
DownloadJob(java.lang.String name, org.eclipse.core.resources.IFile[] files)
           
DownloadJob(java.lang.String name, org.eclipse.core.resources.IFile[] files, boolean keepHistory)
           
 
Method Summary
 org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class com.ibm.carma.ui.job.AbstractCarmaJob
displayCustomReturns, displayCustomReturns, displayCustomReturns, displayCustomReturns, getActionFromReturns, getActionName
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

DownloadJob

public DownloadJob(java.lang.String name,
                   org.eclipse.core.resources.IFile[] files)
Parameters:
name - name of the job
files - files whose content should be download from the associated CARMA resources

DownloadJob

public DownloadJob(java.lang.String name,
                   org.eclipse.core.resources.IFile[] files,
                   boolean keepHistory)
Parameters:
name - the name of the job
files - files whose content should be downloaded from the associated CARMA resources
keepHistory - flag to indicate if the local file history should be kept
Method Detail

run

public org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
run in class org.eclipse.core.runtime.jobs.Job