public interface DistributionTransport
| Modifier and Type | Method and Description |
|---|---|
void |
deliverPackage(org.apache.sling.api.resource.ResourceResolver resourceResolver,
DistributionPackage distributionPackage,
DistributionTransportContext context)
Deliver a
DistributionPackage to a target instance using this
transport layer implementation. |
RemoteDistributionPackage |
retrievePackage(org.apache.sling.api.resource.ResourceResolver resourceResolver,
org.apache.sling.distribution.DistributionRequest request,
DistributionTransportContext context)
Retrieve
DistributionPackages from a target Sling instance, which
will create them according to DistributionRequest. |
void deliverPackage(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver, @Nonnull DistributionPackage distributionPackage, @Nonnull 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 RemoteDistributionPackage retrievePackage(@Nonnull org.apache.sling.api.resource.ResourceResolver resourceResolver, @Nonnull org.apache.sling.distribution.DistributionRequest request, @Nonnull 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–2017 The Apache Software Foundation. All rights reserved.