Package com.sun.identity.sm.ldap
Class Statistics
- java.lang.Object
-
- com.sun.identity.sm.ldap.Statistics
-
- All Implemented Interfaces:
Serializable
public class Statistics extends Object implements Serializable
Statistics implementation used by the store to keep track of the number and type of received requests. Statistics can be enabled/disabled using the configuration file.- Author:
- steve
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDeleteRequestAverageTime()
Returns the delete request average timelong
getDeleteRequestTimeMaximum()
Returns the delete request maximum timelong
getDeleteRequestTimeMinimum()
Returns the delete request minimum timestatic Statistics
getInstance()
Returns the singleton instancelong
getReadRecordRequestAverageTime()
Returns the read record count request average timelong
getReadRecordRequestTimeMaximum()
Returns the read record count request maximum timelong
getReadRecordRequestTimeMinimum()
Returns the read record count request minimum timelong
getReadRequestAverageTime()
Returns the read request average timelong
getReadRequestTimeMaximum()
Returns the read request maximum timelong
getReadRequestTimeMinimum()
Returns the read request minimum timeint
getTotalDeletes()
Get the total number of deletesint
getTotalReadRecordCount()
Get the total number of reads record countint
getTotalReads()
Returns the total number of readsint
getTotalRequests()
Returns the total number of requestsint
getTotalWrites()
Get the total number of writeslong
getWriteRequestAverageTime()
Returns the write request average timelong
getWriteRequestTimeMaximum()
Returns the write request maximum timelong
getWriteRequestTimeMinimum()
Returns the write request minimum timevoid
incrementTotalDeletes()
Increment the total number of deletesvoid
incrementTotalReadRecordCount()
Increment the total read record count totalvoid
incrementTotalReads()
Increment the total read countvoid
incrementTotalWrites()
Increment the total number of writesstatic boolean
isEnabled()
Used to determine if statistics is enabled in the servervoid
resetStatistics()
Resets the statistics counters to zero.void
updateDeleteTime(long time)
Update the delete request time countvoid
updateReadRecordCountTime(long time)
Update the read record count request time countvoid
updateReadTime(long time)
Update the read request time countvoid
updateWriteTime(long time)
Update the write request time count
-
-
-
Method Detail
-
getInstance
public static Statistics getInstance()
Returns the singleton instance- Returns:
-
getTotalRequests
public int getTotalRequests()
Returns the total number of requests- Returns:
- The total number of requests
-
getTotalReads
public int getTotalReads()
Returns the total number of reads- Returns:
- The total number of reads
-
incrementTotalReads
public void incrementTotalReads()
Increment the total read count
-
updateReadTime
public void updateReadTime(long time)
Update the read request time count- Parameters:
time
- The time in ms of the last read request
-
getReadRequestTimeMinimum
public long getReadRequestTimeMinimum()
Returns the read request minimum time- Returns:
- the minimum read request time in ms
-
getReadRequestTimeMaximum
public long getReadRequestTimeMaximum()
Returns the read request maximum time- Returns:
- the maximum read request time in ms
-
getReadRequestAverageTime
public long getReadRequestAverageTime()
Returns the read request average time- Returns:
- the average read request time in ms
-
getTotalWrites
public int getTotalWrites()
Get the total number of writes- Returns:
- The total number of writes
-
incrementTotalWrites
public void incrementTotalWrites()
Increment the total number of writes
-
updateWriteTime
public void updateWriteTime(long time)
Update the write request time count- Parameters:
time
- The time in ms of the last write request
-
getWriteRequestTimeMinimum
public long getWriteRequestTimeMinimum()
Returns the write request minimum time- Returns:
- the minimum write request time in ms
-
getWriteRequestTimeMaximum
public long getWriteRequestTimeMaximum()
Returns the write request maximum time- Returns:
- the maximum write request time in ms
-
getWriteRequestAverageTime
public long getWriteRequestAverageTime()
Returns the write request average time- Returns:
- the average write request time in ms
-
getTotalDeletes
public int getTotalDeletes()
Get the total number of deletes- Returns:
- The total number of deletes
-
incrementTotalDeletes
public void incrementTotalDeletes()
Increment the total number of deletes
-
updateDeleteTime
public void updateDeleteTime(long time)
Update the delete request time count- Parameters:
time
- The time in ms of the last delete request
-
getDeleteRequestTimeMinimum
public long getDeleteRequestTimeMinimum()
Returns the delete request minimum time- Returns:
- the minimum delete request time in ms
-
getDeleteRequestTimeMaximum
public long getDeleteRequestTimeMaximum()
Returns the delete request maximum time- Returns:
- the maximum delete request time in ms
-
getDeleteRequestAverageTime
public long getDeleteRequestAverageTime()
Returns the delete request average time- Returns:
- the average delete request time in ms
-
getTotalReadRecordCount
public int getTotalReadRecordCount()
Get the total number of reads record count- Returns:
-
incrementTotalReadRecordCount
public void incrementTotalReadRecordCount()
Increment the total read record count total
-
updateReadRecordCountTime
public void updateReadRecordCountTime(long time)
Update the read record count request time count- Parameters:
time
- The time in ms of the last read record count request
-
getReadRecordRequestTimeMinimum
public long getReadRecordRequestTimeMinimum()
Returns the read record count request minimum time- Returns:
- the minimum read record count request time in ms
-
getReadRecordRequestTimeMaximum
public long getReadRecordRequestTimeMaximum()
Returns the read record count request maximum time- Returns:
- the maximum read record count request time in ms
-
getReadRecordRequestAverageTime
public long getReadRecordRequestAverageTime()
Returns the read record count request average time- Returns:
- the average read record count request time in ms
-
resetStatistics
public void resetStatistics()
Resets the statistics counters to zero.
-
isEnabled
public static boolean isEnabled()
Used to determine if statistics is enabled in the server- Returns:
- true if stats are enabled, false otherwise.
-
-