public class SQLRepositoryStatus extends Object implements SQLRepositoryStatusMBean
Constructor and Description |
---|
SQLRepositoryStatus() |
Modifier and Type | Method and Description |
---|---|
String |
clearCaches()
Clears the caches.
|
BinaryManagerStatus |
gcBinaries(boolean delete)
GC the unused binaries.
|
int |
getActiveSessionsCount()
Return the opened sessions count
|
long |
getCachesSize()
Evaluate caches size
|
protected 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
|
public SQLRepositoryStatus()
protected static List<RepositoryManagement> getRepositories()
public String listActiveSessions()
SQLRepositoryStatusMBean
listActiveSessions
in interface SQLRepositoryStatusMBean
public int getActiveSessionsCount()
SQLRepositoryStatusMBean
getActiveSessionsCount
in interface SQLRepositoryStatusMBean
public String clearCaches()
SQLRepositoryStatusMBean
clearCaches
in interface SQLRepositoryStatusMBean
public long getCachesSize()
SQLRepositoryStatusMBean
getCachesSize
in interface SQLRepositoryStatusMBean
public String listRemoteSessions()
SQLRepositoryStatusMBean
listRemoteSessions
in interface SQLRepositoryStatusMBean
public BinaryManagerStatus gcBinaries(boolean delete)
SQLRepositoryStatusMBean
gcBinaries
in interface SQLRepositoryStatusMBean
delete
- if false
don't actually delete the GCed binaries (but still return statistics about them),
if true
delete thempublic boolean isBinariesGCInProgress()
SQLRepositoryStatusMBean
It's only useful to call this from a separate thread from the one that called SQLRepositoryStatusMBean.gcBinaries(boolean)
.
isBinariesGCInProgress
in interface SQLRepositoryStatusMBean
true
if a GC of the binaries is in progressCopyright © 2015 Nuxeo SA. All rights reserved.