Examples: IsClusterReplication property
This agent interrogates cluster replication for a database.
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
Database db = session.getDatabase(
"Server1/East/Acme",
"bob\\DatabaseJava");
if (db.isOpen()) {
if (db.isClusterReplication())
System.out.println("Cluster replication set");
else
System.out.println("Cluster replication not set");
}
else
System.out.println("Could not open database");
} catch(Exception e) {
e.printStackTrace();
}
}
}