|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jboss.managed.ManagedRepository
public class ManagedRepository
The ManagedRepository
is a JBoss managed object for a repository
.
Constructor Summary | |
---|---|
ManagedRepository()
|
|
ManagedRepository(JcrRepository repository)
Creates a JBoss managed object for the specified repository. |
Method Summary | |
---|---|
String |
getName()
Obtains the options configured for this repository. |
int |
getQueryActivity()
|
int |
getSaveActivity()
|
Object |
getSessionActivity()
|
String |
getVersion()
Obtains the JCR version supported by this repository. |
List<ManagedLock> |
listLocks()
Obtains all the repository locks sorted by owner. |
List<ManagedLock> |
listLocks(Comparator<ManagedLock> lockSorter)
Obtains all the repository locks sorted by the specified sorter. |
List<ManagedSession> |
listSessions()
Obtains all the repository sessions sorted by user name. |
List<ManagedSession> |
listSessions(Comparator<ManagedSession> sessionSorter)
Obtains all the repository sessions sorted by the specified sorter. |
boolean |
removeLock(String lockId)
Removes the lock with the specified identifier. |
void |
setName(String name)
The name for this repository. |
void |
setVersion(String version)
The version support for this repository. |
boolean |
terminateSession(String sessionId)
Terminates the session with the specified identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedRepository()
public ManagedRepository(JcrRepository repository)
repository
- the repository being managed (never null
)Method Detail |
---|
public String getName()
null
)public void setName(String name)
name
- public String getVersion()
null
)public void setVersion(String version)
version
- public int getQueryActivity()
public int getSaveActivity()
public Object getSessionActivity()
public List<ManagedLock> listLocks()
null
)public List<ManagedLock> listLocks(Comparator<ManagedLock> lockSorter)
lockSorter
- the lock sorter (never null
)
null
)public List<ManagedSession> listSessions()
null
)public List<ManagedSession> listSessions(Comparator<ManagedSession> sessionSorter)
sessionSorter
- the session sorter (never null
)
null
)public boolean removeLock(String lockId)
lockId
- the lock's identifier
true
if the lock was removedpublic boolean terminateSession(String sessionId)
sessionId
- the session's identifier
true
if the session was terminated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |