|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Agent
This represents a replication agent as defined by an AgentConfig.
| Method Summary | |
|---|---|
ReplicationContent |
buildContent(Session session,
ReplicationAction action)
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. |
String |
getId()
Returns the id of the agent. |
ReplicationLog |
getLog()
Returns the replication log of this agent |
ReplicationQueue |
getQueue()
Returns the replication queue. |
boolean |
isCacheInvalidator()
Indicates that this agents is used as cache invalidator. |
boolean |
isEnabled()
checks if agent is active |
boolean |
isValid()
checks if agent is valid |
ReplicationContent[] |
poll(ReplicationAction action)
Poll modified content from the agent. |
void |
replicate(ReplicationAction action,
ReplicationContent content,
ReplicationOptions options)
Replicates the given content. |
| Method Detail |
|---|
String getId()
boolean isEnabled()
true if the agent is activeboolean isValid()
true if the agent is correctly configured
void checkValid()
throws IllegalArgumentException
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 options
ReplicationException - if an error during replication occurred
ReplicationContent[] poll(ReplicationAction action)
throws ReplicationException
ReplicationException
ReplicationContent buildContent(Session session,
ReplicationAction action)
throws ReplicationException
session - jcr sessionaction - action
null
ReplicationException - if an error occursReplicationQueue getQueue()
null of the agents is not
active or valid.boolean isCacheInvalidator()
true if this agent is used as a cache invalidator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||