org.objectweb.jonas.resource.pool.api
Class PoolItemStats

java.lang.Object
  extended by org.objectweb.jonas.resource.pool.api.PoolItemStats

public class PoolItemStats
extends java.lang.Object

This class holds information about each pool entry.

Author:
Eric Hardesty

Constructor Summary
PoolItemStats()
          Default Constructor
 
Method Summary
 long getMaxAgeTimeout()
          Get the max age timeout
 long getMaxOpenTimeout()
          Get the max open timeout
 long getStartTime()
          Get the start time
 long getTotalConnectionTime()
          Get the total connection time
 int getUses()
          Get the number of uses
 void incrementUses()
          Increment the number of uses
 void setMaxAgeTimeout(long pTime)
          Set the max age timeout
 void setMaxOpenTimeout(long pTime)
          Set the max open timeout
 void setStartTime(long pTime)
          Set the start time
 void setTotalConnectionTime(long pTime)
          Set the total connection time
 java.lang.String toString()
          String representing this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoolItemStats

public PoolItemStats()
Default Constructor

Method Detail

getMaxAgeTimeout

public long getMaxAgeTimeout()
Get the max age timeout

Returns:
long max age timeout

setMaxAgeTimeout

public void setMaxAgeTimeout(long pTime)
Set the max age timeout

Parameters:
pTime - long max age timeout

getMaxOpenTimeout

public long getMaxOpenTimeout()
Get the max open timeout

Returns:
long max open timeout

setMaxOpenTimeout

public void setMaxOpenTimeout(long pTime)
Set the max open timeout

Parameters:
pTime - long max open timeout

getStartTime

public long getStartTime()
Get the start time

Returns:
long start time

setStartTime

public void setStartTime(long pTime)
Set the start time

Parameters:
pTime - long start time

getTotalConnectionTime

public long getTotalConnectionTime()
Get the total connection time

Returns:
long total connection time

setTotalConnectionTime

public void setTotalConnectionTime(long pTime)
Set the total connection time

Parameters:
pTime - long total connection time

getUses

public int getUses()
Get the number of uses

Returns:
int number of uses

incrementUses

public void incrementUses()
Increment the number of uses


toString

public java.lang.String toString()
String representing this object

Overrides:
toString in class java.lang.Object
Returns:
String representing the object