public interface Agent
AgentConfig.| Modifier and Type | Method and Description |
|---|---|
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(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.
|
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 occurredReverseReplication[] poll(ReplicationAction action) throws ReplicationException
action - the replication actionnullReplicationException - if an error occursReplicationContent buildContent(Session session, ReplicationAction action) throws ReplicationException
session - jcr sessionaction - actionnullReplicationException - 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 ContentBuildernullReplicationException - if an error occursReplicationContent getContent(ReplicationContentFacade facade) throws ReplicationException
facade - the content facadenullReplicationException - 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()
nullboolean isInMaintenanceMode()
true if this agent is in maintenance mode"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"