Package com.day.cq.replication
Interface ReplicationStatusProvider
A provider for
ReplicationStatus-
Method Summary
Modifier and TypeMethodDescriptiongetBatchReplicationStatus(Resource... resources) Returns a batch replication status for a number of resources, in the form of a map whose keys are paths and values are related replication statuses.getReplicationStatus(Session session, String path) Returns a replication status for the node at a given pathgetReplicationStatus(Resource resource) Returns a replication status for the given resource
-
Method Details
-
getBatchReplicationStatus
Returns a batch replication status for a number of resources, in the form of a map whose keys are paths and values are related replication statuses. This method is expected to be used with a bunch of resources, when needing retrieval of replication status for a single resource please use #getReplicationStatus(Resource).- Parameters:
resources- the resource to obtain the statuses for- Returns:
- the batch replication status as a map of path to status
-
getReplicationStatus
Returns a replication status for the given resource- Parameters:
resource- the resource to obtain the status for- Returns:
- the replication status or
nullif not available.
-
getReplicationStatus
@CheckForNull ReplicationStatus getReplicationStatus(@Nonnull Session session, @Nonnull String path) throws RepositoryException Returns a replication status for the node at a given path- Parameters:
session- the session used to access the node at the given pathpath- path to check- Returns:
- the replication status or
nullif not available. - Throws:
RepositoryException- if retrieval of the related node fails
-