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

lutoff
05.20.2007 bdefeced241380db22a189c1d6568e4ab019d137
Fix for issue #2404 (ds-start --systemInfo does not detect 64 bits amd64 Solaris 10)

Add extra information based on the "sun.arch.data.model"
system property (see http://java.sun.com/docs/hotspot/HotSpotFAQ.html#64bit_detection)
This property has the value "32-bit", "64-bit", or "unknown"
2 files modified
28 ■■■■■ changed files
opends/src/server/org/opends/server/core/DirectoryServer.java 14 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java 14 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -9136,6 +9136,20 @@
                         System.getProperty("os.name") + " " +
                         System.getProperty("os.version") + " " +
                         System.getProperty("os.arch"));
      String sunOsArchDataModel = System.getProperty("sun.arch.data.model");
      if (sunOsArchDataModel != null)
      {
        System.out.print  ("JVM Architecture:       " + sunOsArchDataModel);
        if (! sunOsArchDataModel.toLowerCase().equals("unknown"))
        {
          System.out.print("-bit");
        }
        System.out.println();
      }
      else
      {
        System.out.println("JVM Architecture:        unknown");
      }
      try
      {
opends/src/server/org/opends/server/monitors/SystemInfoMonitorProvider.java
@@ -165,6 +165,20 @@
                    System.getProperty("os.version") + " " +
                    System.getProperty("os.arch");
    attrs.add(createAttribute("operatingSystem", osInfo));
    String sunOsArchDataModel = System.getProperty("sun.arch.data.model");
    if (sunOsArchDataModel != null)
    {
      String jvmArch = sunOsArchDataModel;
      if (! sunOsArchDataModel.toLowerCase().equals("unknown"))
      {
        jvmArch += "-bit";
      }
      attrs.add(createAttribute("jvmArchitecture", jvmArch));
    }
    else
    {
      attrs.add(createAttribute("jvmArchitecture","unknown"));
    }
    try
    {