Class DBStatistics
- java.lang.Object
-
- org.forgerock.openam.session.model.DBStatistics
-
public class DBStatistics extends Object
This singleton class is used to keep statistics about the running db.- Author:
- steve
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DBStatisticsgetInstance()intgetNumRecords()Returns the number of records in the databaselonggetUptime()Returns the current uptime (in ms.) of the amsessiondb servervoidsetNumRecords(int numRecords)Sets the number of records currently in the database
-
-
-
Method Detail
-
getInstance
public static DBStatistics getInstance()
-
getNumRecords
public int getNumRecords()
Returns the number of records in the database- Returns:
- the number of records
-
setNumRecords
public void setNumRecords(int numRecords)
Sets the number of records currently in the database- Parameters:
numRecords- The current number of records
-
getUptime
public long getUptime()
Returns the current uptime (in ms.) of the amsessiondb server- Returns:
-
-