|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.co.lakesidetech.springxmldb.startup.exist.ExistEmbeddedServer
The ExistEmbeddedServer
will startup an embedded XML database
which can be connected to in the same JVM be using a xmldb:$databasename:/// database uri
for the database. This bean specifies the number of threads used in the database
for connections to the underlying file collections and the location of the
exist configuration file. it is also possible to specify a shutdown listener which
will be called in event the database is shutdown.
The shutdown username and password is needed to initiate a shutdown. The default of admin can be used for a standard exist server
Field Summary | |
protected org.springframework.core.io.Resource |
configurationFile
|
protected java.lang.String |
databaseName
|
protected org.exist.xmldb.ShutdownListener |
shutdownListener
|
protected java.lang.String |
shutdownPassword
|
protected java.lang.String |
shutdownUser
|
protected int |
threads
|
Constructor Summary | |
ExistEmbeddedServer()
|
Method Summary | |
protected org.exist.util.Configuration |
createExistConfiguration()
creates an exist configuration from the resource file specified in this bean configuration |
void |
setConfigurationFile(org.springframework.core.io.Resource configurationFile)
|
void |
setDatabaseName(java.lang.String databaseName)
|
void |
setShutdownListener(org.exist.xmldb.ShutdownListener shutdownListener)
|
void |
setShutdownPassword(java.lang.String shutdownPassword)
|
void |
setShutdownUser(java.lang.String shutdownUser)
|
void |
setThreads(int threads)
|
void |
shutdown()
shuts down this data base created |
void |
startup()
starts up a instance of the eXist embedded broker pool server using the configuration file specified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String databaseName
protected int threads
protected org.springframework.core.io.Resource configurationFile
protected org.exist.xmldb.ShutdownListener shutdownListener
protected java.lang.String shutdownUser
protected java.lang.String shutdownPassword
Constructor Detail |
public ExistEmbeddedServer()
Method Detail |
public void setShutdownPassword(java.lang.String shutdownPassword)
shutdownPassword
- The shutdownPassword to set.public void setShutdownUser(java.lang.String shutdownUser)
shutdownUser
- The shutdownUser to set.public void setConfigurationFile(org.springframework.core.io.Resource configurationFile)
public void setDatabaseName(java.lang.String databaseName)
databaseName
- The databaseName to set.public void setShutdownListener(org.exist.xmldb.ShutdownListener shutdownListener)
shutdownListener
- The shutdownListener to set.public void setThreads(int threads)
threads
- The threads to set.public void startup()
startup
in interface IXMLDBServerStartup
IXMLDBServerStartup.startup()
public void shutdown()
shutdown
in interface IXMLDBServerStartup
IXMLDBServerStartup.shutdown()
protected org.exist.util.Configuration createExistConfiguration() throws org.exist.util.DatabaseConfigurationException
org.exist.util.DatabaseConfigurationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |