|
RSE Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rse.services.dstore.util.DownloadListener
public class DownloadListener
| Constructor Summary | |
|---|---|
DownloadListener(DataElement status,
File localFile,
String remotePath,
long totalLength,
IProgressMonitor monitor)
|
|
| Method Summary | |
|---|---|
void |
cancelDownload()
|
void |
domainChanged(DomainEvent event)
|
DataElement |
getStatus()
|
long |
getTotalLength()
|
boolean |
isCancelled()
|
boolean |
isDone()
|
boolean |
listeningTo(DomainEvent event)
|
void |
setDone(boolean done)
setDone(boolean) |
DataElement |
waitForUpdate()
Wait for the the status DataElement to be refreshed |
DataElement |
waitForUpdate(int wait)
Wait for the the status DataElement to be refreshed |
boolean |
wasCancelled()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadListener(DataElement status,
File localFile,
String remotePath,
long totalLength,
IProgressMonitor monitor)
| Method Detail |
|---|
public long getTotalLength()
public boolean isCancelled()
public boolean isDone()
public DataElement getStatus()
public boolean listeningTo(DomainEvent event)
listeningTo in interface IDomainListenerIDomainListener.listeningTo(DomainEvent)public void domainChanged(DomainEvent event)
domainChanged in interface IDomainListenerIDomainListener.domainChanged(DomainEvent)public void setDone(boolean done)
public boolean wasCancelled()
public DataElement waitForUpdate()
throws InterruptedException
InterruptedException - if the thread was interrupted.
public DataElement waitForUpdate(int wait)
throws InterruptedException
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.
InterruptedException - if the thread was interrupted.public void cancelDownload()
|
RSE Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||