|
RSE Release 3.0 |
|||||||||
| 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(org.eclipse.dstore.core.model.DataElement status,
File localFile,
String remotePath,
long totalLength,
IProgressMonitor monitor)
|
|
| Method Summary | |
|---|---|
void |
cancelDownload()
|
void |
domainChanged(org.eclipse.dstore.extra.DomainEvent event)
|
org.eclipse.dstore.core.model.DataElement |
getStatus()
|
long |
getTotalLength()
|
boolean |
isCancelled()
|
boolean |
isDone()
|
boolean |
listeningTo(org.eclipse.dstore.extra.DomainEvent event)
|
void |
setDone(boolean done)
setDone(boolean) |
org.eclipse.dstore.core.model.DataElement |
waitForUpdate()
Wait for the the status DataElement to be refreshed |
org.eclipse.dstore.core.model.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(org.eclipse.dstore.core.model.DataElement status,
File localFile,
String remotePath,
long totalLength,
IProgressMonitor monitor)
| Method Detail |
|---|
public long getTotalLength()
public boolean isCancelled()
public boolean isDone()
public org.eclipse.dstore.core.model.DataElement getStatus()
public boolean listeningTo(org.eclipse.dstore.extra.DomainEvent event)
listeningTo in interface org.eclipse.dstore.extra.IDomainListenerIDomainListener.listeningTo(DomainEvent)public void domainChanged(org.eclipse.dstore.extra.DomainEvent event)
domainChanged in interface org.eclipse.dstore.extra.IDomainListenerIDomainListener.domainChanged(DomainEvent)public void setDone(boolean done)
public boolean wasCancelled()
public org.eclipse.dstore.core.model.DataElement waitForUpdate()
throws InterruptedException
InterruptedException - if the thread was interrupted.
public org.eclipse.dstore.core.model.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.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||