In a content distributor system, a DistributorServer
component is installed with each HTTP server. Each Oracle Commerce Platform server includes one or more DistributorSender
components or DistributorPool
components (a resource pool of DistributorSender
components) that are configured to connect to the DistributorServer
component on each HTTP server.
When the putFile
methods of a DistributorSender
are invoked, the DistributorSender
:
Generates a file name and directory to use on the remote servers.
Checks whether the file was sent to the remote servers:
Checks locally in its document cache (
RemoteServerCache
)Checks remotely, issuing a
fileCheck
command to the remoteDistributorServer
components.
The check is performed by comparing the file’s size and last modified time to that of the version of the file in the local document cache and then in the remote document cache.
If the file is not found either in the local cache or the remote cache, the
DistributorSender
sends the file to the remote server. On the remote server, aDistributorReader
writes the file in the specified directory.The file is cached locally.
The
putFile
operation returns a URL that can be used to access the sent file.