db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From be...@apache.org
Subject svn commit: r634227 - in /db/derby/code/trunk/java/drda/org/apache/derby: impl/drda/NetworkServerMBeanImpl.java mbeans/drda/NetworkServerMBean.java
Date Thu, 06 Mar 2008 11:38:20 GMT
Author: bernt
Date: Thu Mar  6 03:38:18 2008
New Revision: 634227

URL: http://svn.apache.org/viewvc?rev=634227&view=rev
Log:
DERBY-3435 Fixed attribute names and javadoc

Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerMBeanImpl.java
    db/derby/code/trunk/java/drda/org/apache/derby/mbeans/drda/NetworkServerMBean.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerMBeanImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerMBeanImpl.java?rev=634227&r1=634226&r2=634227&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerMBeanImpl.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/NetworkServerMBeanImpl.java Thu
Mar  6 03:38:18 2008
@@ -207,12 +207,16 @@
         }
     }
      **/
+
+    public int getConnectionCount() {
+        return getActiveConnectionCount() + getWaitingConnectionCount();
+    }
     
-    public int getActiveConnections() {
+    public int getActiveConnectionCount() {
         return server.getActiveSessions();
     }
     
-    public int getWaitingConnections() {
+    public int getWaitingConnectionCount() {
         return server.getRunQueueSize();
     }
     
@@ -220,7 +224,7 @@
         return server.getThreadListSize();
     }
      
-    public int getConnectionCounter() {
+    public int getAccumulatedConnectionCount() {
         return server.getConnectionNumber();
     }
     

Modified: db/derby/code/trunk/java/drda/org/apache/derby/mbeans/drda/NetworkServerMBean.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/mbeans/drda/NetworkServerMBean.java?rev=634227&r1=634226&r2=634227&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/mbeans/drda/NetworkServerMBean.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/mbeans/drda/NetworkServerMBean.java Thu
Mar  6 03:38:18 2008
@@ -136,18 +136,31 @@
      */
     public String getDrdaTraceDirectory();
     //public void setDrdaTraceDirectory(String dir) throws Exception;
+    /**
+     * Get the number of connections.
+     * @return number of connections.
+     */
+    public int getConnectionCount();
 
     /**
-     * Get the number of active sessions
-     * @return number of active sessions
+     * Get the number of active connections. All connections are active if drdaMaxThreads
is 0.
+     * <p>
+     * If drdaMaxThreads is > 0 and drdaTimeSlice is 0, connections remain active until
they are
+     * closed. If there are more than drdaMaxThreads connections, connections will be waiting
for some 
+     * connection to close and the call to getConnection will return when the connection
becomes active.
+     * <p>
+     * If drdaMaxThreads is > 0 and drdaTimeSlice > 0, connections will be alternating
beetween active 
+     * and waiting according to Derby's time slicing algorithm.
+     * @return number of active connections
      */
-    public int getActiveConnections();
+    public int getActiveConnectionCount();
     
     /**
-     * get the number of waiting sessions. Always 0 if drdaMaxThreads is 0.
-     * @return number of waiting sessions
+     * get the number of waiting connections. Always 0 if drdaMaxThreads is 0. 
+     * @return number of waiting connections
+     * @see NetworkServerMBean#getActiveConnectionCount
      */
-    public int getWaitingConnections();
+    public int getWaitingConnectionCount();
     
     /**
      * Get the size of the thread pool.
@@ -159,7 +172,7 @@
      * Get the accumulated number of connections.
      * @return number of connections.
      */
-    public int getConnectionCounter();
+    public int getAccumulatedConnectionCount();
     
     /**
      * Get the total number of bytes read



Mime
View raw message