public interface Agent
AgentConfig
.Modifier and Type | Method and Description |
---|---|
ReplicationContent |
buildBulkContent(Session session,
CompositeReplicationAction action,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Builds bulk content for the respective composite action using the configured content builder.
|
ReplicationContent |
buildContent(Session session,
ReplicationAction action)
Builds the content for the respective action using the configured
content builder.
|
ReplicationContent |
buildContent(Session session,
ReplicationAction action,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Builds the content for the respective action using the configured
content builder.
|
void |
checkValid()
Checks if the agent is valid and throws an exception if not.
|
AgentConfig |
getConfiguration()
Get the configuration.
|
ReplicationContent |
getContent(ReplicationContentFacade facade)
Creates and acquires an existing content given it's facade
|
java.lang.String |
getId()
Returns the id of the agent.
|
java.util.Calendar |
getLastPollTimeline()
Returns the timeline used for the last reverse replication.
|
ReplicationLog |
getLog()
Returns the replication log of this agent
|
ReplicationQueue |
getQueue()
Returns the replication queue.
|
boolean |
isCacheInvalidator()
Indicates that this agent is used as cache invalidator.
|
boolean |
isEnabled()
checks if agent is active
|
boolean |
isInMaintenanceMode()
Checks if the agent is in maintenance mode
|
boolean |
isValid()
checks if agent is valid
|
ReverseReplication[] |
poll(ReplicationAction action)
Poll modified content from the agent that will be reverse replicated.
|
void |
replicate(CompositeReplicationAction action,
ReplicationContent content,
ReplicationOptions options)
Replicates the given (bulk) content.
|
void |
replicate(ReplicationAction action,
ReplicationContent content,
ReplicationOptions options)
Replicates the given content.
|
void |
setNextPollTimeline(java.util.Calendar time)
Defines the timeline to be used for the next reverse replication poll.
|
boolean |
supportsBulkContentBuilding()
Checks if the agent can build content for multiple paths/resources.
|
java.lang.String getId()
boolean isEnabled()
true
if the agent is activeboolean isValid()
true
if the agent is correctly configuredvoid checkValid()
java.lang.IllegalArgumentException
- if the agent is not valid.AgentConfig getConfiguration()
ReplicationLog getLog()
void replicate(ReplicationAction action, ReplicationContent content, ReplicationOptions options) throws ReplicationException
action
- the replication actioncontent
- The content for the replication or null if no content.options
- the replication optionsReplicationException
- if an error during replication occurredvoid replicate(CompositeReplicationAction action, ReplicationContent content, ReplicationOptions options) throws ReplicationException
action
- the composite replication actioncontent
- The content for the replication or null if no content.options
- the replication optionsReplicationException
- if an error during replication occurredReverseReplication[] poll(ReplicationAction action) throws ReplicationException
action
- the replication actionnull
ReplicationException
- if an error occursReplicationContent buildContent(Session session, ReplicationAction action) throws ReplicationException
session
- jcr sessionaction
- actionnull
ReplicationException
- if an error occursReplicationContent buildContent(Session session, ReplicationAction action, java.util.Map<java.lang.String,java.lang.Object> parameters) throws ReplicationException
session
- jcr sessionaction
- actionparameters
- additional parameters to be supplied to the underlying ContentBuilder
null
ReplicationException
- if an error occursReplicationContent getContent(ReplicationContentFacade facade) throws ReplicationException
facade
- the content facadenull
ReplicationException
- if an error occursReplicationQueue getQueue()
null
if the agents is not
active or valid.boolean isCacheInvalidator()
true
if this agent is used as a cache invalidator.void setNextPollTimeline(java.util.Calendar time)
time
- the timejava.util.Calendar getLastPollTimeline()
null
boolean isInMaintenanceMode()
true
if this agent is in maintenance modeboolean supportsBulkContentBuilding()
true
if this agent is capable of building bulk content (for multiple paths), false
otherwise.ReplicationContent buildBulkContent(Session session, CompositeReplicationAction action, java.util.Map<java.lang.String,java.lang.Object> parameters) throws ReplicationException
session
- jcr sessionaction
- composite actionparameters
- additional parameters to be supplied to the underlying ContentBuilder
#supportsBulkContentBuilding == true
or null
ReplicationException
- if an error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"