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

jcduff
23.04.2008 f73b655466092169abac34833fb628fce1fcdebe
opends/src/server/org/opends/server/protocols/jmx/JmxClientConnection.java
@@ -326,6 +326,18 @@
  /**
   * Retrieves the port number for this connection on the client system.
   *
   * @return  The port number for this connection on the client system.
   */
  public int getClientPort()
  {
    return -1;
  }
  /**
   * Retrieves a string representation of the address on the server to which the
   * client connected.
   *
@@ -340,6 +352,21 @@
  /**
   * Retrieves the port number for this connection on the server
   * system if available.
   *
   * @return The port number for this connection on the server system
   *         or -1 if there is no server port associated with this
   *         connection (e.g. internal client).
   */
  public int getServerPort()
  {
    return -1;
  }
  /**
   * Retrieves the <CODE>java.net.InetAddress</CODE> associated with the remote
   * client system.
   *
@@ -1259,5 +1286,16 @@
    super.finalize();
    disconnect(DisconnectReason.OTHER, false, null);
  }
  /**
   * To be implemented.
   *
   * @return number of operations performed on this connection
   */
  @Override
  public long getNumberOfOperations() {
    // JMX connections will not be limited.
    return 0;
  }
}