public class RecordingTransferListener extends Object implements TransferListener
| Constructor and Description |
|---|
RecordingTransferListener() |
RecordingTransferListener(TransferListener transferListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
List<TransferEvent> |
getEvents() |
List<TransferEvent> |
getProgressEvents() |
void |
transferCorrupted(TransferEvent event)
Notifies the listener that a checksum validation failed.
|
void |
transferFailed(TransferEvent event)
Notifies the listener about the unsuccessful termination of a transfer.
|
void |
transferInitiated(TransferEvent event)
Notifies the listener about the initiation of a transfer.
|
void |
transferProgressed(TransferEvent event)
Notifies the listener about some progress in the data transfer.
|
void |
transferStarted(TransferEvent event)
Notifies the listener about the start of a data transfer, i.e. the successful connection to the remote
repository.
|
void |
transferSucceeded(TransferEvent event)
Notifies the listener about the successful completion of a transfer.
|
public RecordingTransferListener()
public RecordingTransferListener(TransferListener transferListener)
public List<TransferEvent> getEvents()
public List<TransferEvent> getProgressEvents()
public void transferSucceeded(TransferEvent event)
TransferListenertransferSucceeded in interface TransferListenerevent - The event details, must not be null.public void transferStarted(TransferEvent event) throws TransferCancelledException
TransferListenertransferStarted in interface TransferListenerevent - The event details, must not be null.TransferCancelledException - If the transfer should be aborted.public void transferProgressed(TransferEvent event) throws TransferCancelledException
TransferListenertransferProgressed in interface TransferListenerevent - The event details, must not be null.TransferCancelledException - If the transfer should be aborted.public void transferInitiated(TransferEvent event) throws TransferCancelledException
TransferListenertransferInitiated in interface TransferListenerevent - The event details, must not be null.TransferCancelledException - If the transfer should be aborted.public void transferFailed(TransferEvent event)
TransferListenerTransferEvent.getException() will
provide further information about the failure.transferFailed in interface TransferListenerevent - The event details, must not be null.public void transferCorrupted(TransferEvent event) throws TransferCancelledException
TransferListenerTransferEvent.getException() will be of type
ChecksumFailureException and can be used to query further details about the expected/actual checksums.transferCorrupted in interface TransferListenerevent - The event details, must not be null.TransferCancelledException - If the transfer should be aborted.public void clear()
Copyright © 2010-2013 The Eclipse Foundation. All Rights Reserved.