|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.repository.ModeShapeEngine org.modeshape.jcr.JcrEngine
@ThreadSafe public class JcrEngine
The basic component that encapsulates the ModeShape services, including the Repository
instances.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.modeshape.repository.ModeShapeEngine |
---|
ModeShapeEngine.ConfigurationScanner |
Field Summary |
---|
Fields inherited from class org.modeshape.repository.ModeShapeEngine |
---|
configuration, CONFIGURATION_REPOSITORY_NAME, context |
Method Summary | |
---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit)
Blocks until the shutdown has completed, or the timeout occurs, or the current thread is interrupted, whichever happens first. |
protected JcrRepository |
doCreateJcrRepository(String repositoryName)
|
JcrRepository |
getRepository(String repositoryName)
Get the Repository implementation for the named repository. |
Set<String> |
getRepositoryNames()
Get the names of each of the JCR repositories. |
protected String |
readable(Location location)
|
protected String |
readable(Name name)
|
protected String |
readable(Path path)
|
void |
shutdown()
Shutdown this engine to close all connections, terminate any ongoing background operations (such as sequencing), and reclaim any resources that were acquired by this engine. |
void |
start()
Start this engine to make it available for use. |
Methods inherited from class org.modeshape.repository.ModeShapeEngine |
---|
checkRunning, getConfigurationGraph, getExecutionContext, getGraph, getGraph, getMimeTypeDetector, getProblems, getRepositoryConnectionFactory, getRepositoryService, getRepositorySource, getSequencingService |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void shutdown()
ModeShapeEngine
shutdown
in class ModeShapeEngine
ModeShapeEngine.start()
public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException
ModeShapeEngine
awaitTermination
in class ModeShapeEngine
timeout
- the maximum time to wait for each component in this engineunit
- the time unit of the timeout argument
InterruptedException
- if interrupted while waitingpublic void start()
ModeShapeEngine
start
in class ModeShapeEngine
ModeShapeEngine.shutdown()
public final JcrRepository getRepository(String repositoryName) throws RepositoryException
Repository
implementation for the named repository.
getRepository
in interface Repositories
repositoryName
- the name of the repository, which corresponds to the name of a configured RepositorySource
IllegalArgumentException
- if the repository name is null, blank or invalid
RepositoryException
- if there is no repository with the specified name
IllegalStateException
- if this engine was not started
public Set<String> getRepositoryNames()
getRepositoryNames
in interface Repositories
protected JcrRepository doCreateJcrRepository(String repositoryName) throws RepositoryException, PathNotFoundException
RepositoryException
PathNotFoundException
protected final String readable(Name name)
protected final String readable(Path path)
protected final String readable(Location location)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |