mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
31.11.2010 60c6feb47d697767b0ee09ae5576cd90bdb15066
Fix build issue with JDK5 and improve replication diagnostic through cn=Monitor, by providing the Replication server hostname
2 files modified
9 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java 8 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java 1 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServerDomain.java
@@ -33,6 +33,7 @@
import static org.opends.server.util.StaticUtils.stackTraceToSingleLineString;
import java.io.IOException;
import java.net.InetAddress;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@@ -3029,8 +3030,15 @@
  @Override
  public String getMonitorInstanceName()
  {
    String hostname = "unknown";
    try
    {
      hostname = InetAddress.getLocalHost().getHostName();
    }
    catch (Exception e) {}
    return "Replication Server "
           + replicationServer.getReplicationPort() + " "
           + hostname
           + " " + replicationServer.getServerId()
           + ",cn=" + baseDn.replace(',', '_').replace('=', '_')
           + ",cn=replication";
opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/DomainFakeCfg.java
@@ -488,7 +488,6 @@
      ConfigurationDeleteListener<ExternalChangelogDomainCfg> listener)
  {}
  @Override
  public boolean isLogChangenumber()
  {
    return true;