@ProviderType
public interface Distributor
A distributor is responsible for dispatching DistributionRequest
s to distribution agents.
The distribution agents are executing the requests by creating packages from a source Sling instance containing content for the specified paths and then pushing and installing these on a target instance.
Modifier and Type | Method and Description |
---|---|
@NotNull DistributionResponse |
distribute(@NotNull String agentName,
@NotNull ResourceResolver resourceResolver,
@NotNull DistributionRequest distributionRequest)
Perform a
DistributionRequest to distribute content from a source
instance to a target instance. |
@NotNull @NotNull DistributionResponse distribute(@NotNull @NotNull String agentName, @NotNull @NotNull ResourceResolver resourceResolver, @NotNull @NotNull DistributionRequest distributionRequest)
DistributionRequest
to distribute content from a source
instance to a target instance.
The content to be sent will be assembled according to the information contained in the request.
A DistributionResponse
holding the DistributionRequestState
of the provided request will be returned.
Synchronous distribution agents will usually block until the execution has finished
while asynchronous agents will usually return the response as soon as the content to be distributed has been assembled
and scheduled for distribution.agentName
- the name of the agent used to distribute the requestdistributionRequest
- the distribution requestresourceResolver
- the resource resolver used for authorizing the request,DistributionResponse
Copyright © 2010 - 2020 Adobe. All Rights Reserved