|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransferListener
A listener being notified of artifact/metadata transfers from/to remote repositories. The listener may be called from
an arbitrary thread. Note: Implementors are strongly advised to inherit from
AbstractTransferListener
instead of directly implementing this interface.
Method Summary | |
---|---|
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. |
void |
transferSucceeded(TransferEvent event)
Notifies the listener about the successful completion of a transfer. |
Method Detail |
---|
void transferInitiated(TransferEvent event) throws TransferCancelledException
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.void transferStarted(TransferEvent event) throws TransferCancelledException
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.void transferProgressed(TransferEvent event) throws TransferCancelledException
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.void transferCorrupted(TransferEvent event) throws TransferCancelledException
TransferEvent.getException()
will be of type
ChecksumFailureException
and can be used to query further details about the expected/actual checksums.
event
- The event details, must not be null
.
TransferCancelledException
- If the transfer should be aborted.void transferSucceeded(TransferEvent event)
event
- The event details, must not be null
.void transferFailed(TransferEvent event)
TransferEvent.getException()
will
provide further information about the failure.
event
- The event details, must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |