Class SessionStats
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.session.SessionStats
-
- All Implemented Interfaces:
SessionMBean
public class SessionStats extends Object implements SessionMBean
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSessionStats.Counters
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.api.jmx.SessionMBean
TYPE
-
-
Constructor Summary
Constructors Constructor Description SessionStats(String sessionId, AuthInfo authInfo, Clock clock, RefreshStrategy refreshStrategy, SessionDelegate sessionDelegate, StatisticManager statisticManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfailedSave(RepositoryException repositoryException)AuthInfogetAuthInfo()SessionStats.CountersgetCounters()StringgetInitStackTrace()StringgetLastFailedSave()StringgetLastReadAccess()StringgetLastRefresh()StringgetLastSave()StringgetLastWriteAccess()StringgetLoginTimeStamp()longgetReadCount()doublegetReadRate()longgetRefreshCount()booleangetRefreshPending()doublegetRefreshRate()StringgetRefreshStrategy()longgetSaveCount()doublegetSaveRate()String[]getSessionAttributes()longgetWriteCount()doublegetWriteRate()voidrefresh()Refresh this session.voidsetAttributes(Map<String,Object> attributes)StringtoString()
-
-
-
Constructor Detail
-
SessionStats
public SessionStats(String sessionId, AuthInfo authInfo, Clock clock, RefreshStrategy refreshStrategy, SessionDelegate sessionDelegate, StatisticManager statisticManager)
-
-
Method Detail
-
close
public void close()
-
getCounters
public SessionStats.Counters getCounters()
-
failedSave
public void failedSave(RepositoryException repositoryException)
-
getInitStackTrace
public String getInitStackTrace()
- Specified by:
getInitStackTracein interfaceSessionMBean- Returns:
- stack trace from where the session was acquired.
-
getAuthInfo
public AuthInfo getAuthInfo()
- Specified by:
getAuthInfoin interfaceSessionMBean- Returns:
AuthInfofor the user associated with the session.
-
getLoginTimeStamp
public String getLoginTimeStamp()
- Specified by:
getLoginTimeStampin interfaceSessionMBean- Returns:
- time stamp from when the session was acquired.
-
getLastReadAccess
public String getLastReadAccess()
- Specified by:
getLastReadAccessin interfaceSessionMBean- Returns:
- time stamp from the last read access
-
getReadCount
public long getReadCount()
- Specified by:
getReadCountin interfaceSessionMBean- Returns:
- number of read accesses
-
getReadRate
public double getReadRate()
- Specified by:
getReadRatein interfaceSessionMBean- Returns:
- read operations per time
-
getLastWriteAccess
public String getLastWriteAccess()
- Specified by:
getLastWriteAccessin interfaceSessionMBean- Returns:
- time stamp from the last write access
-
getWriteCount
public long getWriteCount()
- Specified by:
getWriteCountin interfaceSessionMBean- Returns:
- number of write accesses
-
getWriteRate
public double getWriteRate()
- Specified by:
getWriteRatein interfaceSessionMBean- Returns:
- write operations per time
-
getLastRefresh
public String getLastRefresh()
- Specified by:
getLastRefreshin interfaceSessionMBean- Returns:
- time stamp from the last refresh
-
getRefreshStrategy
public String getRefreshStrategy()
- Specified by:
getRefreshStrategyin interfaceSessionMBean- Returns:
- description of the refresh strategy
-
getRefreshPending
public boolean getRefreshPending()
- Specified by:
getRefreshPendingin interfaceSessionMBean- Returns:
trueiff the session will be refreshed on next access.
-
getRefreshCount
public long getRefreshCount()
- Specified by:
getRefreshCountin interfaceSessionMBean- Returns:
- number of refresh operations
-
getRefreshRate
public double getRefreshRate()
- Specified by:
getRefreshRatein interfaceSessionMBean- Returns:
- refresh operations per time
-
getLastSave
public String getLastSave()
- Specified by:
getLastSavein interfaceSessionMBean- Returns:
- time stamp from the last save
-
getSaveCount
public long getSaveCount()
- Specified by:
getSaveCountin interfaceSessionMBean- Returns:
- number of save operations
-
getSaveRate
public double getSaveRate()
- Specified by:
getSaveRatein interfaceSessionMBean- Returns:
- save operations per time
-
getSessionAttributes
public String[] getSessionAttributes()
- Specified by:
getSessionAttributesin interfaceSessionMBean- Returns:
- attributes associated with the session
-
getLastFailedSave
public String getLastFailedSave()
- Specified by:
getLastFailedSavein interfaceSessionMBean- Returns:
- stack trace of the last exception that occurred during a save operation
-
refresh
public void refresh()
Description copied from interface:SessionMBeanRefresh this session. Warning: this operation might be disruptive to the owner of this session- Specified by:
refreshin interfaceSessionMBean
-
-