
bsloki wrote...
Are you looking to make the changes to the live copy programatically ??
No. Basically I am doing replication in both English and Spanish locales programatically. Live copy will copy the content from English to Spanish. Before I kick off the replication in Spanish, I want to know if the live copy is completed copying the content from English to Spanish. So I am looking for a flag to know whether live copy is completed copying that content.
I have written the below code to get the live status. I think it will work but not sure.
@Reference
private LiveRelationshipManager liveRelManager;
LiveRelationship liveRelationship;
try {
liveRelationship = liveRelManager.getLiveRelationship([LIVE COPY PATH], true);
Map < String, Boolean > map = liveRelationship.getStatus().getAdvancedStatus();
for (Entry < String, Boolean > element: map.entrySet()) {
System.out.println("Key is: " + element.getKey());
System.out.println("Value is: " + element.getValue());
}
}