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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DefaultDeployer.EventCatapult
private final MetadataUpload
-
Constructor Summary
ConstructorsConstructorDescriptionMetadataUploadListener
(DefaultDeployer.EventCatapult catapult, MetadataUpload transfer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
catapult
-
transfer
-
-
Constructor Details
-
MetadataUploadListener
MetadataUploadListener(DefaultDeployer.EventCatapult catapult, MetadataUpload transfer)
-
-
Method Details
-
transferInitiated
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
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
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
.
-