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.internal.extra.IDomainListener, IServiceConstants, IUniversalDataStoreConstants
- public class DownloadListener
- extends Object
- implements org.eclipse.dstore.extra.internal.extra.IDomainListener, IUniversalDataStoreConstants
| Fields inherited from interface org.eclipse.rse.dstore.universal.miners.IUniversalDataStoreConstants |
BINARY_MODE, BUFFER_SIZE, C_COPY, C_COPY_BATCH, C_CREATE_FILE, C_CREATE_FOLDER, C_DELETE, C_DELETE_BATCH, C_DOWNLOAD_FILE, C_QUERY_GET_REMOTE_OBJECT, C_QUERY_QUALIFIED_CLASSNAME, C_QUERY_ROOTS, C_QUERY_UNUSED_PORT, C_QUERY_VIEW_ALL, C_QUERY_VIEW_FILES, C_QUERY_VIEW_FOLDERS, C_RENAME, C_SYSTEM_ENCODING, DOWNLOAD_RESULT_EXCEPTION, DOWNLOAD_RESULT_FILE_NOT_FOUND_EXCEPTION, DOWNLOAD_RESULT_IO_EXCEPTION, DOWNLOAD_RESULT_SUCCESS_MESSAGE, DOWNLOAD_RESULT_SUCCESS_TYPE, DOWNLOAD_RESULT_UNEXPECTED_ERROR, DOWNLOAD_RESULT_UNSUPPORTED_ENCODING_EXCEPTION, KB_IN_BYTES, MESSAGE_DESCRIPTOR, NUM_OF_KB, TEXT_MODE, TYPE_QUALIFIED_CLASSNAME, UNIVERSAL_ARCHIVE_FILE_DESCRIPTOR, UNIVERSAL_FILE_DESCRIPTOR, UNIVERSAL_FILESYSTEM_MINER, UNIVERSAL_FILTER_DESCRIPTOR, UNIVERSAL_FOLDER_DESCRIPTOR, UNIVERSAL_NODE_DESCRIPTOR, UNIVERSAL_TEMP_DESCRIPTOR, UNIVERSAL_VIRTUAL_FILE_DESCRIPTOR, UNIVERSAL_VIRTUAL_FOLDER_DESCRIPTOR |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadListener
public DownloadListener(IProgressMonitor monitor,
org.eclipse.dstore.core.model.DataElement status,
File localFile,
String remotePath,
long totalLength)
isCancelled
public boolean isCancelled()
getStatus
public org.eclipse.dstore.core.model.DataElement getStatus()
listeningTo
public boolean listeningTo(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
- Specified by:
listeningTo in interface org.eclipse.dstore.extra.internal.extra.IDomainListener
- See Also:
IDomainListener.listeningTo(DomainEvent)
domainChanged
public void domainChanged(org.eclipse.dstore.extra.internal.extra.DomainEvent event)
- Specified by:
domainChanged in interface org.eclipse.dstore.extra.internal.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
- Throws:
InterruptedException
cancelDownload
public void cancelDownload()
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.