|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.jboss.managed.ManagedEngine
@Immutable public final class ManagedEngine
A ManagedEngine
instance is a JBoss managed object for a JcrEngine
.
Constructor Summary | |
---|---|
ManagedEngine()
|
|
ManagedEngine(JcrEngine engine)
Creates a JBoss managed object from the specified engine. |
Method Summary | |
---|---|
Collection<ManagedConnector> |
getConnectors()
Obtains the managed connectors of this engine. |
protected JcrEngine |
getEngine()
|
Collection<ManagedRepository> |
getRepositories()
Obtains the managed repositories of this engine. |
ManagedRepository |
getRepository(String repositoryName)
Obtains the specified managed repository of this engine. |
ManagedSequencingService |
getSequencingService()
Obtains the managed sequencing service. |
String |
getVersion()
Obtains the version (build number) of this ModeShape instance. |
boolean |
isRunning()
Indicates if the managed engine is running. |
void |
restart()
First shutdowns the engine and then starts it back up again. |
void |
setConfigURL(URL configurationUrl)
|
void |
setEngine(JcrEngine jcrEngine)
|
void |
shutdown()
Performs an engine shutdown. |
void |
start()
Starts the engine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedEngine()
public ManagedEngine(JcrEngine engine)
engine
- the engine being managed (never null
)Method Detail |
---|
public Collection<ManagedConnector> getConnectors()
null
)public Collection<ManagedRepository> getRepositories()
null
)public ManagedRepository getRepository(String repositoryName)
repositoryName
- for the repository to be returned
null
if repository doesn't existpublic ManagedSequencingService getSequencingService()
null
if never startedpublic String getVersion()
public boolean isRunning()
true
if the engine is runningpublic void restart()
shutdowns
the engine and then starts
it back up again. This is a JBoss managed
operation.
shutdown()
,
start()
public void shutdown()
ModeShapeEngine.shutdown()
public void start()
JcrEngine.start()
protected JcrEngine getEngine()
public void setEngine(JcrEngine jcrEngine)
public void setConfigURL(URL configurationUrl) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |