We have to repilcate content to multiple data centers (around 35) using 1 replication agent. Since it is a tedious task to enable/disable each replication agent, requirement is to create 1 page which would list all the replication agents or data-centers, and on 1 click all the replication agents would be enabled or disabled. Can anybody provide suggestions.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
you can create a utility (sling servlet) which will list all the replication agents from /etc/replication/agents.author/ , servlet will be creating a list along with checkbox where you can select all(by clicking select all checkbox) or individual replication agent and based on selection you can delete enabled property from replication agent's jcr:content node or create enable property in order to enable replication agent.
Example if enabled property with true value is present at /etc/replication/agents.author/publish/jcr:content , then only this replication agent will be enabled.
JCR node for replication agent if agent is enabled
JCR node for replication agent when agent is not enabled
Views
Replies
Total Likes
Hi,
you can create a utility (sling servlet) which will list all the replication agents from /etc/replication/agents.author/ , servlet will be creating a list along with checkbox where you can select all(by clicking select all checkbox) or individual replication agent and based on selection you can delete enabled property from replication agent's jcr:content node or create enable property in order to enable replication agent.
Example if enabled property with true value is present at /etc/replication/agents.author/publish/jcr:content , then only this replication agent will be enabled.
JCR node for replication agent if agent is enabled
JCR node for replication agent when agent is not enabled
Views
Replies
Total Likes
Thanks Arun.
Views
Replies
Total Likes
Views
Likes
Replies