public class SessionStatistics extends Object
Modifier | Constructor and Description |
---|---|
protected |
SessionStatistics(int appSessCount,
int maxAppSessCount,
int libSessCount,
int maxLibSessCount,
int activeUserCount,
int maxActiveUserCount,
int totalActiveUserCount,
UserSessionStatistics[] userSessionStats)
Construct a SessionStatistics.
|
Modifier and Type | Method and Description |
---|---|
int |
getActiveUserCount()
Get the current count of active users.
|
int |
getApplicationSessionCount()
Get the current total Application Session count.
|
int |
getLibrarySessionCount()
Get the current LibrarySession count.
|
int |
getMaxActiveUserCount()
Get the maximum value of the current count of active users since the
node was started.
|
int |
getMaxApplicationSessionCount()
Get The maximum value of the total Application Session count since the
node was started.
|
int |
getMaxLibrarySessionCount()
Get the maximum value of the total LibrarySession count since the
node was started.
|
int |
getTotalActiveUserCount()
Get the total number of active users that have used the node since the
node was started.
|
UserSessionStatistics[] |
getUserSessionStatistics()
Get the set of UserSessionStatistics, representing the detailed
statistics for each active user.
|
String |
toString()
Return string representation of the SessionStatistics,
using the default date format that specified date strings
in the format "yyyy/MM/dd HH:mm:ss", and defaulting to use verbose output.
|
String |
toString(DateFormat dateFormat)
Return string representation of the SessionStatistics,
using the specified DateFormat, defaulting to use verbose output.
|
String |
toString(DateFormat dateFormat,
boolean verbose)
Return string representation of the SessionStatistics,
using the specified DateFormat and whether the output should be verbose.
|
protected SessionStatistics(int appSessCount, int maxAppSessCount, int libSessCount, int maxLibSessCount, int activeUserCount, int maxActiveUserCount, int totalActiveUserCount, UserSessionStatistics[] userSessionStats)
appSessCount
- current app Session countmaxAppSessCount
- highest the app Session count has beenlibSessCount
- current LibrarySession countmaxLibSessCount
- highest the LibrarySession count has beenactiveUserCount
- current active user countmaxActiveUserCount
- highest the active user count has beentotalActiveUserCount
- highest the active user count has beenuserSessionStats
- user session statisticspublic int getApplicationSessionCount()
public int getMaxApplicationSessionCount()
public int getLibrarySessionCount()
public int getMaxLibrarySessionCount()
public int getActiveUserCount()
public int getMaxActiveUserCount()
public int getTotalActiveUserCount()
public UserSessionStatistics[] getUserSessionStatistics()
public String toString()
public String toString(DateFormat dateFormat)
dateFormat
- the desired date formatpublic String toString(DateFormat dateFormat, boolean verbose)
dateFormat
- the desired date formatverbose
- whether the output should be verbose.Copyright © 2023. All rights reserved.