Modifier | Constructor and Description |
---|---|
protected |
UserSessionStatistics(Long userId)
Construct a UserSessionStatistics.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addApplicationSession(long appSessionId,
String appName)
Add an application session for this user
|
protected void |
addLibrarySession(Long sessionId)
Add a LibrarySession for this user
|
UserSessionStatistics |
clone(LibrarySession session)
Returns a clone of this object.
|
ApplicationSessionStatistics[] |
getApplicationSessionStatistics()
Get the statistics for the currently active FDK sessions.
|
int |
getCurrentApplicationSessionCount()
Get the current number of Application Sessions
|
int |
getCurrentLibrarySessionCount()
Get the current number of LibrarySessions
|
Date |
getFirstConnectTime()
Get the time the user first connected.
|
LibrarySessionStatistics[] |
getLibrarySessionStatistics()
Get the statistics for the currently active LibrarySessions.
|
int |
getMaxApplicationSessions()
Get the maximum number of application sessions
obtained by this user during the life of this node.
|
int |
getMaxLibrarySessions()
Get the maximum number of LibrarySessions
obtained by this user during the life of this node.
|
Long |
getUserId()
Get the user ID.
|
boolean |
isEmpty()
Check to see if there are no active sessions.
|
protected void |
removeApplicationSession(long appSessionId)
Remove an application session for this user
|
protected void |
removeLibrarySession(Long sessionId)
Remove an LibrarySessions for this user.
|
String |
toString()
Return string representation of the UserSessionStatistics,
using the default date format that specified date strings
in the format "yyyy/MM/dd HH:mm:ss".
|
String |
toString(DateFormat dateFormat)
Return string representation of the UserSessionStatistics,
using the specified DateFormat and no string prefix applied to
the formatted lines.
|
String |
toString(DateFormat dateFormat,
String prefix)
Return string representation of the UserSessionStatistics,
using the specified DateFormat and prefix.
|
protected UserSessionStatistics(Long userId)
userId
- ID of the userpublic Long getUserId()
public Date getFirstConnectTime()
public int getCurrentApplicationSessionCount()
public int getMaxApplicationSessions()
public int getCurrentLibrarySessionCount()
public int getMaxLibrarySessions()
public ApplicationSessionStatistics[] getApplicationSessionStatistics()
public LibrarySessionStatistics[] getLibrarySessionStatistics()
protected void addApplicationSession(long appSessionId, String appName)
appSessionId
- app session IDappName
- app nameprotected void removeApplicationSession(long appSessionId)
appSessionId
- app session IDprotected void addLibrarySession(Long sessionId)
sessionId
- LibrarySession IDprotected void removeLibrarySession(Long sessionId)
sessionId
- session IDpublic boolean isEmpty()
public UserSessionStatistics clone(LibrarySession session) throws IfsException
session
- the session contextIfsException
public String toString()
public String toString(DateFormat dateFormat)
dateFormat
- the desired date formatpublic String toString(DateFormat dateFormat, String prefix)
dateFormat
- the desired date formatprefix
- the prefix to prepend to each lineCopyright © 2023. All rights reserved.