com.rocketsoftware.mvapi.pool
Class MVConnectionPoolStats

java.lang.Object
  extended by com.rocketsoftware.mvapi.pool.MVConnectionPoolStats

public class MVConnectionPoolStats
extends java.lang.Object

Maintains connection pool statistics


Nested Class Summary
static class MVConnectionPoolStats.StatName
          Enumeration of the allowable statistic names.
 
Constructor Summary
MVConnectionPoolStats()
          Default constructor.
 
Method Summary
 void clear()
          Clear connection pool statistics
 void copy(MVConnectionPoolStats poolStats)
          Store statistics values from connection pool statistics object
 void decrement(MVConnectionPoolStats.StatName name)
          Decrement pool statistics counter
 int getFailedConnects()
          Gets counter of the non-waiting connects that failed to the MV server
 int getNewConnects()
          Gets counter of the new connects to the MV server
 int getTotalConnects()
          Gets counter of the total connects to the MV server
 int getUsedAvailConnects()
          Get counter of the used available connects to the MV server
 int getWaitAtMaxConnects()
          Gets counter of the wait at maximum capacity connects to the MV server
 int getWaitFailedConnects()
          Gets counter of the waiting connects that failed to the MV server
 int getWaitLimitConnects()
          Gets counter of the wait at limit capacity connects to the MV server
 int getWaitNoLicConnects()
          Gets counter of the wait of no license connects to the MV server
 void increment(MVConnectionPoolStats.StatName name)
          Increment pool statistics counter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVConnectionPoolStats

public MVConnectionPoolStats()
Default constructor.

Method Detail

getTotalConnects

public int getTotalConnects()
Gets counter of the total connects to the MV server

Returns:
int for counter of the total connects to the MV server

getNewConnects

public int getNewConnects()
Gets counter of the new connects to the MV server

Returns:
int for counter of the new connects to the MV server

getUsedAvailConnects

public int getUsedAvailConnects()
Get counter of the used available connects to the MV server

Returns:
int for counter of the used available connects to the MV server

getWaitAtMaxConnects

public int getWaitAtMaxConnects()
Gets counter of the wait at maximum capacity connects to the MV server

Returns:
int for counter of the wait at maximum capacity connects to the MV server

getWaitNoLicConnects

public int getWaitNoLicConnects()
Gets counter of the wait of no license connects to the MV server

Returns:
int for counter of the wait of no license connects to the MV server

getWaitLimitConnects

public int getWaitLimitConnects()
Gets counter of the wait at limit capacity connects to the MV server

Returns:
int for counter of the wait at limit capacity connects to the MV server

getWaitFailedConnects

public int getWaitFailedConnects()
Gets counter of the waiting connects that failed to the MV server

Returns:
int for counter of the waiting connects that failed to the MV server

getFailedConnects

public int getFailedConnects()
Gets counter of the non-waiting connects that failed to the MV server

Returns:
int for counter of the non-waiting connects that failed to the MV server

clear

public void clear()
Clear connection pool statistics


copy

public void copy(MVConnectionPoolStats poolStats)
Store statistics values from connection pool statistics object

Parameters:
poolStats - The pool statistics object containing source statistics values.

increment

public void increment(MVConnectionPoolStats.StatName name)
Increment pool statistics counter

Parameters:
name - The name of statistics counter.

decrement

public void decrement(MVConnectionPoolStats.StatName name)
Decrement pool statistics counter

Parameters:
name - The name of statistics counter.