Package org.eclipse.aether.internal.impl
Class DefaultDeployer.MetadataUploadListener
- java.lang.Object
-
- org.eclipse.aether.transfer.AbstractTransferListener
-
- org.eclipse.aether.internal.impl.SafeTransferListener
-
- org.eclipse.aether.internal.impl.DefaultDeployer.MetadataUploadListener
-
- All Implemented Interfaces:
TransferListener
- Enclosing class:
- DefaultDeployer
static final class DefaultDeployer.MetadataUploadListener extends SafeTransferListener
-
-
Field Summary
Fields Modifier and Type Field Description private DefaultDeployer.EventCatapultcatapultprivate MetadataUploadtransfer
-
Constructor Summary
Constructors Constructor Description MetadataUploadListener(DefaultDeployer.EventCatapult catapult, MetadataUpload transfer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtransferFailed(TransferEvent event)Notifies the listener about the unsuccessful termination of a transfer.voidtransferInitiated(TransferEvent event)Notifies the listener about the initiation of a transfer.voidtransferSucceeded(TransferEvent event)Notifies the listener about the successful completion of a transfer.-
Methods inherited from class org.eclipse.aether.internal.impl.SafeTransferListener
transferCorrupted, transferProgressed, transferStarted, wrap
-
-
-
-
Field Detail
-
catapult
private final DefaultDeployer.EventCatapult catapult
-
transfer
private final MetadataUpload transfer
-
-
Constructor Detail
-
MetadataUploadListener
MetadataUploadListener(DefaultDeployer.EventCatapult catapult, MetadataUpload transfer)
-
-
Method Detail
-
transferInitiated
public void transferInitiated(TransferEvent event) throws TransferCancelledException
Description copied from interface:TransferListenerNotifies the listener about the initiation of a transfer. This event gets fired before any actual network access to the remote repository and usually indicates some thread is now about to perform the transfer. For a given transfer request, this event is the first one being fired and it must be emitted exactly once.- Specified by:
transferInitiatedin interfaceTransferListener- Overrides:
transferInitiatedin classSafeTransferListener- Parameters:
event- The event details, must not benull.- Throws:
TransferCancelledException- If the transfer should be aborted.
-
transferFailed
public void transferFailed(TransferEvent event)
Description copied from interface:TransferListenerNotifies the listener about the unsuccessful termination of a transfer.TransferEvent.getException()will provide further information about the failure.- Specified by:
transferFailedin interfaceTransferListener- Overrides:
transferFailedin classSafeTransferListener- Parameters:
event- The event details, must not benull.
-
transferSucceeded
public void transferSucceeded(TransferEvent event)
Description copied from interface:TransferListenerNotifies the listener about the successful completion of a transfer. This event must be fired exactly once for a given transfer request unless said request failed.- Specified by:
transferSucceededin interfaceTransferListener- Overrides:
transferSucceededin classSafeTransferListener- Parameters:
event- The event details, must not benull.
-
-