Class SQLRepositoryStatus
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.management.SQLRepositoryStatus
-
- All Implemented Interfaces:
SQLRepositoryStatusMBean
public class SQLRepositoryStatus extends Object implements SQLRepositoryStatusMBean
An MBean to manage SQL storage repositories.
-
-
Constructor Summary
Constructors Constructor Description SQLRepositoryStatus()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
clearCaches()
Clears the caches.BinaryManagerStatus
gcBinaries(boolean delete)
GC the unused binaries.int
getActiveSessionsCount()
Return the opened sessions countlong
getCachesSize()
Evaluate caches sizeprotected static List<RepositoryManagement>
getRepositories()
boolean
isBinariesGCInProgress()
Is a GC of the binaries in progress?String
listActiveSessions()
Lists the opened sessions.String
listRemoteSessions()
Lists the remote opened sessions
-
-
-
Constructor Detail
-
SQLRepositoryStatus
public SQLRepositoryStatus()
-
-
Method Detail
-
getRepositories
protected static List<RepositoryManagement> getRepositories()
-
listActiveSessions
public String listActiveSessions()
Description copied from interface:SQLRepositoryStatusMBean
Lists the opened sessions.- Specified by:
listActiveSessions
in interfaceSQLRepositoryStatusMBean
-
getActiveSessionsCount
public int getActiveSessionsCount()
Description copied from interface:SQLRepositoryStatusMBean
Return the opened sessions count- Specified by:
getActiveSessionsCount
in interfaceSQLRepositoryStatusMBean
-
clearCaches
public String clearCaches()
Description copied from interface:SQLRepositoryStatusMBean
Clears the caches.- Specified by:
clearCaches
in interfaceSQLRepositoryStatusMBean
-
getCachesSize
public long getCachesSize()
Description copied from interface:SQLRepositoryStatusMBean
Evaluate caches size- Specified by:
getCachesSize
in interfaceSQLRepositoryStatusMBean
-
listRemoteSessions
public String listRemoteSessions()
Description copied from interface:SQLRepositoryStatusMBean
Lists the remote opened sessions- Specified by:
listRemoteSessions
in interfaceSQLRepositoryStatusMBean
-
gcBinaries
public BinaryManagerStatus gcBinaries(boolean delete)
Description copied from interface:SQLRepositoryStatusMBean
GC the unused binaries.- Specified by:
gcBinaries
in interfaceSQLRepositoryStatusMBean
- Parameters:
delete
- iffalse
don't actually delete the GCed binaries (but still return statistics about them), iftrue
delete them- Returns:
- a status about the number of GCed binaries
-
isBinariesGCInProgress
public boolean isBinariesGCInProgress()
Description copied from interface:SQLRepositoryStatusMBean
Is a GC of the binaries in progress?It's only useful to call this from a separate thread from the one that called
SQLRepositoryStatusMBean.gcBinaries(boolean)
.- Specified by:
isBinariesGCInProgress
in interfaceSQLRepositoryStatusMBean
- Returns:
true
if a GC of the binaries is in progress
-
-