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

jvergara
21.31.2007 a091e85ec925fdb878303144f7b4f5e302e7c35f
opends/src/guitools/org/opends/guitools/statuspanel/ServerStatusDescriptor.java
@@ -49,6 +49,18 @@
  private Message errorMsg;
  private boolean isAuthenticated;
  private static String hostName = "locahost";
  static
  {
    try
    {
      hostName = java.net.InetAddress.getLocalHost().getHostName();
    }
    catch (Throwable t)
    {
    }
  };
  /**
   * Enumeration indicating the status of the server.
   *
@@ -359,4 +371,13 @@
  {
    this.listeners = listeners;
  }
  /**
   * Returns the host name of the server.
   * @return the host name of the server.
   */
  public String getHostname()
  {
    return hostName;
  }
}