|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.collections.CollectionConfigurationManager
public class CollectionConfigurationManager
Manages index configurations. Index configurations are stored in a collection
hierarchy below /db/system/config. CollectionConfigurationManager is called
by Collection
to retrieve the
CollectionConfiguration
instance for a given collection.
Field Summary | |
---|---|
static String |
COLLECTION_CONFIG_FILENAME
|
static CollectionURI |
COLLECTION_CONFIG_PATH
|
static String |
CONFIG_COLLECTION
|
Constructor Summary | |
---|---|
CollectionConfigurationManager(DBBroker broker)
|
Method Summary | |
---|---|
void |
addConfiguration(Txn transaction,
DBBroker broker,
Collection collection,
String config)
Add a new collection configuration. |
void |
checkRootCollectionConfig(DBBroker broker)
Create a stored default configuration document for the root collection |
void |
checkRootCollectionConfigCollection(DBBroker broker)
|
void |
invalidateAll(XmldbURI collectionPath)
Notify the manager that a collection.xconf file has changed. |
void |
testConfiguration(DBBroker broker,
String config)
Check the passed collection configuration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_COLLECTION
public static final String COLLECTION_CONFIG_FILENAME
public static final CollectionURI COLLECTION_CONFIG_PATH
Constructor Detail |
---|
public CollectionConfigurationManager(DBBroker broker) throws EXistException, CollectionConfigurationException
EXistException
CollectionConfigurationException
Method Detail |
---|
public void addConfiguration(Txn transaction, DBBroker broker, Collection collection, String config) throws CollectionConfigurationException
transaction
- The transaction that will hold the WRITE locks until they are released by commit()/abort()broker
- collection
- the collection to which the configuration applies.config
- the xconf document as a String.
CollectionConfigurationException
public void testConfiguration(DBBroker broker, String config) throws CollectionConfigurationException
broker
- DBBrokerconfig
- the configuration to test
CollectionConfigurationException
- if errors were detectedpublic void invalidateAll(XmldbURI collectionPath)
collectionPath
- public void checkRootCollectionConfigCollection(DBBroker broker) throws EXistException
EXistException
public void checkRootCollectionConfig(DBBroker broker) throws EXistException
broker
- The broker which will do the operation
EXistException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |