Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.services.dstore.util
Class DownloadListener


java.lang.Object
  extended by 
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


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

DownloadListener

public DownloadListener(org.eclipse.dstore.core.model.DataElement status,
                        
File localFile,
                        
String remotePath,
                        long totalLength,
                        
IProgressMonitor monitor)
Method Detail

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()

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire