|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.runtime.PlatformObject org.eclipse.core.internal.jobs.InternalJob org.eclipse.core.runtime.jobs.Job org.eclipse.ecf.filetransfer.FileTransferJob
public class FileTransferJob
Job
subclass for executing file transfers. This class should
be subclassed to create a customized Job
for passing to
an incoming or outgoing file transfer. For example, to use a custom
job for doing a file transfer retrieval via IIncomingFileTransferReceiveStartEvent.receive(java.io.File, FileTransferJob)
:
class MyFileTransferJob extends FileTransferJob { public MyFileTransferJob(String name) { super(name); } public boolean belongsTo(Object o) { // insert own logic to decide whether // this file transfer job should be part // of a group // } } MyFileTransferJob myJob = new MyFileTransferJob("myname"); incomingfiletransfer = event.receive(outputstream,myJob);
Field Summary |
---|
Fields inherited from class org.eclipse.core.runtime.jobs.Job |
---|
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING |
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob |
---|
manager |
Constructor Summary | |
---|---|
FileTransferJob(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
canceling()
|
protected org.eclipse.core.runtime.IStatus |
run(org.eclipse.core.runtime.IProgressMonitor mntr)
|
void |
setFileTransfer(IFileTransfer fileTransfer)
|
void |
setFileTransferRunnable(IFileTransferRunnable fileTransferRunnable)
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public FileTransferJob(java.lang.String name)
name
- the name for this file transfer job. Should not be null
.Method Detail |
---|
public final void setFileTransferRunnable(IFileTransferRunnable fileTransferRunnable)
public final void setFileTransfer(IFileTransfer fileTransfer)
protected final org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor mntr)
run
in class org.eclipse.core.runtime.jobs.Job
protected void canceling()
canceling
in class org.eclipse.core.runtime.jobs.Job
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |