| | |
| | | @Override |
| | | public String getMonitorInstanceName() |
| | | { |
| | | String str = baseDn.toString() + |
| | | " " + serverURL + " " + String.valueOf(serverId); |
| | | String str = serverURL + " " + String.valueOf(serverId); |
| | | |
| | | if (serverIsLDAPserver) |
| | | return "Directory Server " + str; |
| | | return "Connected Replica " + str + |
| | | ",cn=" + replicationServerDomain.getMonitorInstanceName(); |
| | | else |
| | | return "Remote Replication Server " + str; |
| | | return "Connected Replication Server " + str + |
| | | ",cn=" + replicationServerDomain.getMonitorInstanceName(); |
| | | } |
| | | |
| | | /** |
| | |
| | | ArrayList<Attribute> attributes = new ArrayList<Attribute>(); |
| | | if (serverIsLDAPserver) |
| | | { |
| | | attributes.add(Attributes.create("LDAP-Server", serverURL)); |
| | | attributes.add(Attributes.create("replica", serverURL)); |
| | | attributes.add(Attributes.create("connected-to", |
| | | this.replicationServerDomain.getReplicationServer() |
| | | .getMonitorInstanceName())); |
| | |
| | | } |
| | | else |
| | | { |
| | | attributes.add(Attributes.create("ReplicationServer-Server", |
| | | attributes.add(Attributes.create("Replication-Server", |
| | | serverURL)); |
| | | } |
| | | attributes.add(Attributes.create("server-id", String |
| | | .valueOf(serverId))); |
| | | attributes.add(Attributes.create("base-dn", baseDn.toString())); |
| | | attributes.add(Attributes.create("domain-name", baseDn.toString())); |
| | | |
| | | try |
| | | { |
| | | MonitorData md; |
| | | md = replicationServerDomain.getMonitorData(); |
| | | md = replicationServerDomain.computeMonitorData(); |
| | | |
| | | if (serverIsLDAPserver) |
| | | { |