org.eclipse.rse.services.dstore.util
Class DownloadListener
java.lang.Object
org.eclipse.rse.services.dstore.util.DownloadListener
-
All Implemented Interfaces:
- org.eclipse.dstore.extra.IDomainListener
-
public class DownloadListener
- extends
Object
- implements org.eclipse.dstore.extra.IDomainListener
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
DownloadListener
public DownloadListener(org.eclipse.dstore.core.model.DataElement status,
File localFile,
String remotePath,
long totalLength,
IProgressMonitor monitor)
getTotalLength
public long getTotalLength()
-
-
-
Since:
- 3.0
isCancelled
public boolean isCancelled()
-
-
isDone
public boolean isDone()
-
-
-
Since:
- 3.0
getStatus
public org.eclipse.dstore.core.model.DataElement getStatus()
-
-
listeningTo
public boolean listeningTo(org.eclipse.dstore.extra.DomainEvent event)
-
-
Specified by:
-
listeningTo
in interface org.eclipse.dstore.extra.IDomainListener
-
-
See Also:
-
IDomainListener.listeningTo(DomainEvent)
domainChanged
public void domainChanged(org.eclipse.dstore.extra.DomainEvent event)
-
-
Specified by:
-
domainChanged
in interface org.eclipse.dstore.extra.IDomainListener
-
-
See Also:
-
IDomainListener.domainChanged(DomainEvent)
setDone
public void setDone(boolean done)
- setDone(boolean)
-
-
wasCancelled
public boolean wasCancelled()
-
-
waitForUpdate
public org.eclipse.dstore.core.model.DataElement waitForUpdate()
throws
InterruptedException
- Wait for the the status DataElement to be refreshed
-
-
-
Returns:
- The status DataElement after it has been updated, or the user
has pressed cancel
-
Throws:
-
InterruptedException
- if the thread was interrupted.
waitForUpdate
public org.eclipse.dstore.core.model.DataElement waitForUpdate(int wait)
throws
InterruptedException
- Wait for the the status DataElement to be refreshed
-
-
-
Parameters:
-
wait
- threshold for starting diagnostic. Default is 60 seconds; a zero means to use the default.
-1 means to force a timeout; mainly for testing purpose.
-
Returns:
- The status DataElement after it has been updated, or the user
has pressed cancel
-
Throws:
-
InterruptedException
- if the thread was interrupted.
cancelDownload
public void cancelDownload()
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.