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,
Map<String,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
|
String |
getId()
Returns the id of the agent.
|
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(Calendar time)
Defines the timeline to be used for the next reverse replication poll.
|
String getId()
boolean isEnabled()
true
if the agent is activeboolean isValid()
true
if the agent is correctly configuredvoid checkValid()
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 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, Map<String,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(Calendar time)
time
- the timeCalendar getLastPollTimeline()
null
boolean isInMaintenanceMode()
true
if this agent is in maintenance mode"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"