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.EventCatapult
catapult
private MetadataUpload
transfer
-
Constructor Summary
Constructors Constructor Description MetadataUploadListener(DefaultDeployer.EventCatapult catapult, MetadataUpload transfer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
transferSucceeded(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:TransferListener
Notifies 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:
transferInitiated
in interfaceTransferListener
- Overrides:
transferInitiated
in 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:TransferListener
Notifies the listener about the unsuccessful termination of a transfer.TransferEvent.getException()
will provide further information about the failure.- Specified by:
transferFailed
in interfaceTransferListener
- Overrides:
transferFailed
in classSafeTransferListener
- Parameters:
event
- The event details, must not benull
.
-
transferSucceeded
public void transferSucceeded(TransferEvent event)
Description copied from interface:TransferListener
Notifies 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:
transferSucceeded
in interfaceTransferListener
- Overrides:
transferSucceeded
in classSafeTransferListener
- Parameters:
event
- The event details, must not benull
.
-
-