public interface DistributionTransport
| Modifier and Type | Method and Description |
|---|---|
void |
deliverPackage(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull DistributionPackage distributionPackage,
@NotNull DistributionTransportContext context)
Deliver a
DistributionPackage to a target instance using this
transport layer implementation. |
@Nullable RemoteDistributionPackage |
retrievePackage(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull org.apache.sling.distribution.DistributionRequest request,
@NotNull DistributionTransportContext context)
Retrieve
DistributionPackages from a target Sling instance, which
will create them according to DistributionRequest. |
void deliverPackage(@NotNull
@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@NotNull
@NotNull DistributionPackage distributionPackage,
@NotNull
@NotNull DistributionTransportContext context)
throws DistributionException
DistributionPackage to a target instance using this
transport layer implementation.resourceResolver - a resolver used to eventually access local resources needed by the transport algorithmdistributionPackage - a DistributionPackage to transportDistributionException - if the DistributionPackage
fails to be delivered to the target instance (e.g. because of network, I/O issues)@Nullable @Nullable RemoteDistributionPackage retrievePackage(@NotNull @NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver, @NotNull @NotNull org.apache.sling.distribution.DistributionRequest request, @NotNull @NotNull DistributionTransportContext context) throws DistributionException
DistributionPackages from a target Sling instance, which
will create them according to DistributionRequest.resourceResolver - a resolver used to eventually access local resources needed by the transport algorithmrequest - a DistributionRequest to be forwarded to the target
instanceIterable of DistributionPackages fetched
from the target instance.DistributionException - if the DistributionPackages
fail to be retrieved from the target instanceCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.