org.eclipse.emf.emfstore.internal.client.model.filetransfer
Class FileUploadJob

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 org.eclipse.emf.emfstore.internal.client.model.filetransfer.FileTransferJob
                  extended by org.eclipse.emf.emfstore.internal.client.model.filetransfer.FileUploadJob
All Implemented Interfaces:
Comparable, org.eclipse.core.runtime.IAdaptable

public class FileUploadJob
extends FileTransferJob

File Upload Job class is responsible for uploading files to the server in the Eclipse Worker thread.

Author:
pfeifferc, jfinis

Field Summary
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Constructor Summary
FileUploadJob(FileTransferManager transferManager, FileIdentifier fileId, boolean transferVisibleToUser)
          Default constructor.
 
Method Summary
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.model.filetransfer.FileTransferJob
getException
 
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, toString, wakeUp, wakeUp, yieldRule
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo
 
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
 

Constructor Detail

FileUploadJob

public FileUploadJob(FileTransferManager transferManager,
                     FileIdentifier fileId,
                     boolean transferVisibleToUser)
              throws FileTransferException
Default constructor. Only used internally; only the FileTransferManager may create such jobs.

Parameters:
transferManager - the transfer manager which created the job
fileId - the identifier of the file to be uploaded
transferVisibleToUser - progress bar yes/no
Throws:
FileTransferException - any error occurring during a file transfer is wrapped in a file transfer exception


Copyright © 2015. All Rights Reserved.