| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.server; |
| | | |
| | |
| | | public String getMonitorInstanceName() |
| | | { |
| | | String serverURL=""; // FIXME |
| | | String str = rsDomain.getBaseDn().toString() + " " + serverURL + " " |
| | | + String.valueOf(serverId); |
| | | return "Undirect LDAP Server " + str; |
| | | String str = serverURL + " " + String.valueOf(serverId); |
| | | return "Undirect Replica " + str + |
| | | ",cn=" + replServerHandler.getMonitorInstanceName(); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | attributes.add(Attributes.create("server-id", |
| | | String.valueOf(serverId))); |
| | | attributes.add(Attributes.create("base-dn", |
| | | attributes.add(Attributes.create("domain-name", |
| | | rsDomain.getBaseDn())); |
| | | attributes.add(Attributes.create("connected-to", |
| | | replServerHandler.getMonitorInstanceName())); |
| | |
| | | MonitorData md; |
| | | try |
| | | { |
| | | md = rsDomain.getMonitorData(); |
| | | md = rsDomain.computeMonitorData(); |
| | | |
| | | ServerState remoteState = md.getLDAPServerState(serverId); |
| | | if (remoteState == null) |