|
||||||||||
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, LOGGER |
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)
|
String |
getEngineVersion()
Get the version of this engine. |
JcrRepository |
getRepository(String repositoryName)
Get the Repository implementation for the named repository. |
Set<String> |
getRepositoryNames()
Get the names of each of the JCR repositories. |
Map<String,Object> |
initDescriptors()
|
protected void |
preShutdown()
|
protected String |
readable(Location location)
|
protected String |
readable(Name name)
|
protected String |
readable(Path path)
|
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, postShutdown, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected void preShutdown()
preShutdown
in class ModeShapeEngine
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 String getEngineVersion()
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)
public Map<String,Object> initDescriptors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |