Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.management
Class RepositoryStatus

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.management.RepositoryStatus
All Implemented Interfaces:
RepositoryStatusMBean

public class RepositoryStatus
extends Object
implements RepositoryStatusMBean

An MBean to manage SQL storage repositories.

Author:
Florent Guillaume

Constructor Summary
RepositoryStatus()
           
 
Method Summary
 String clearCaches()
          Clears the caches.
 BinaryManagerStatus gcBinaries(boolean delete)
          GC the unused binaries.
 int getActiveSessionsCount()
          Return the opened sessions count
 boolean isBinariesGCInProgress()
          Is a GC of the binaries in progress?
 String listActiveSessions()
          Lists the opened sessions.
 String listRemoteSessions()
          Lists the remote opened sessions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryStatus

public RepositoryStatus()
Method Detail

listActiveSessions

public String listActiveSessions()
Description copied from interface: RepositoryStatusMBean
Lists the opened sessions.

Specified by:
listActiveSessions in interface RepositoryStatusMBean

getActiveSessionsCount

public int getActiveSessionsCount()
Description copied from interface: RepositoryStatusMBean
Return the opened sessions count

Specified by:
getActiveSessionsCount in interface RepositoryStatusMBean

clearCaches

public String clearCaches()
Description copied from interface: RepositoryStatusMBean
Clears the caches.

Specified by:
clearCaches in interface RepositoryStatusMBean

listRemoteSessions

public String listRemoteSessions()
Description copied from interface: RepositoryStatusMBean
Lists the remote opened sessions

Specified by:
listRemoteSessions in interface RepositoryStatusMBean

gcBinaries

public BinaryManagerStatus gcBinaries(boolean delete)
Description copied from interface: RepositoryStatusMBean
GC the unused binaries.

Specified by:
gcBinaries in interface RepositoryStatusMBean
Parameters:
delete - if false don't actually delete the GCed binaries (but still return statistics about them), if true delete them
Returns:
a status about the number of GCed binaries

isBinariesGCInProgress

public boolean isBinariesGCInProgress()
Description copied from interface: RepositoryStatusMBean
Is a GC of the binaries in progress?

It's only useful to call this from a separate thread from the one that called RepositoryStatusMBean.gcBinaries(boolean).

Specified by:
isBinariesGCInProgress in interface RepositoryStatusMBean
Returns:
true if a GC of the binaries is in progress

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.