public class RepositoryStatus extends Object implements RepositoryStatusMBean
Constructor and Description |
---|
RepositoryStatus() |
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
|
boolean |
isBinariesGCInProgress()
Is a GC of the binaries in progress?
|
String |
listActiveSessions()
Lists the opened sessions.
|
String |
listRemoteSessions()
Lists the remote opened sessions
|
public String listActiveSessions()
RepositoryStatusMBean
listActiveSessions
in interface RepositoryStatusMBean
public int getActiveSessionsCount()
RepositoryStatusMBean
getActiveSessionsCount
in interface RepositoryStatusMBean
public String clearCaches()
RepositoryStatusMBean
clearCaches
in interface RepositoryStatusMBean
public long getCachesSize()
RepositoryStatusMBean
getCachesSize
in interface RepositoryStatusMBean
public String listRemoteSessions()
RepositoryStatusMBean
listRemoteSessions
in interface RepositoryStatusMBean
public BinaryManagerStatus gcBinaries(boolean delete)
RepositoryStatusMBean
gcBinaries
in interface RepositoryStatusMBean
delete
- if false
don't actually delete the GCed binaries
(but still return statistics about them), if true
delete thempublic boolean isBinariesGCInProgress()
RepositoryStatusMBean
It's only useful to call this from a separate thread from the one that
called RepositoryStatusMBean.gcBinaries(boolean)
.
isBinariesGCInProgress
in interface RepositoryStatusMBean
true
if a GC of the binaries is in progressCopyright © 2013 Nuxeo SA. All Rights Reserved.