|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dna.repository.DnaEngine
org.jboss.dna.jcr.JcrEngine
@ThreadSafe public class JcrEngine

The basic component that encapsulates the JBoss DNA services, including the Repository instances.
| Field Summary |
|---|
| Fields inherited from class org.jboss.dna.repository.DnaEngine |
|---|
CONFIGURATION_REPOSITORY_NAME |
| 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. |
JcrRepository |
getRepository(String repositoryName)
Get the Repository implementation for the named repository. |
Set<String> |
getRepositoryNames()
Get the names of each of the JCR repositories. |
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.jboss.dna.repository.DnaEngine |
|---|
getExecutionContext, getGraph, getGraph, getProblems, getRepositoryConnectionFactory, getRepositoryService, getRepositorySource, getSequencingService |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void shutdown()
DnaEngine
shutdown in class DnaEngineDnaEngine.start()
public boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
DnaEngine
awaitTermination in class DnaEnginetimeout - 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()
DnaEngine
start in class DnaEngineDnaEngine.shutdown()
public final JcrRepository getRepository(String repositoryName)
throws javax.jcr.RepositoryException
Repository implementation for the named repository.
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
javax.jcr.RepositoryException - if there is no repository with the specified name
IllegalStateException - if this engine was not startedpublic Set<String> getRepositoryNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||