|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gouv.culture.sdx.utils.AbstractSdxObject fr.gouv.culture.sdx.utils.database.DatabaseBacked fr.gouv.culture.sdx.documentbase.AbstractDocumentBase fr.gouv.culture.sdx.documentbase.SDXDocumentBase
public abstract class SDXDocumentBase
an abstract document base class handling SDX based configurations
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.documentbase.SDXDocumentBaseTarget |
---|
SDXDocumentBaseTarget.ConfigurationNode |
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.documentbase.DocumentBase |
---|
DocumentBase.ConfigurationNode |
Field Summary | |
---|---|
protected org.apache.avalon.framework.configuration.Configuration |
_configuration
|
protected static java.lang.String[] |
_documentAdditionStatus
|
protected int |
_ilevel
|
protected LoggingIndexation |
_ilogger
|
protected boolean |
_isIndexOptimized
A flag to know if the index is optimized or not |
protected boolean |
autoOptimize
Auto-optimization when uploading / deleting documents. |
protected java.lang.String |
baseIndexDir
The base index directory path |
protected static int |
DOC_ADD_STATUS_ADDED
|
protected static int |
DOC_ADD_STATUS_FAILURE
|
protected static int |
DOC_ADD_STATUS_IGNORED
|
protected static int |
DOC_ADD_STATUS_REFRESHED
|
protected static int |
DOC_ADD_STATUS_REPLACED
|
protected java.lang.String |
DOC_URL
|
protected static java.lang.String |
ELEMENT_NAME_DEFAULT_HPP
|
protected static java.lang.String |
ELEMENT_NAME_DEFAULT_MAXSORT
|
protected boolean |
isDatadirShared
|
protected boolean |
keepOriginalDocuments
Whether the original documents should be stored or not. |
protected TimeScheduler |
scheduler
Time scheduler for stored requests |
protected static java.lang.String |
SDX_DATABASE_FORMAT
|
protected static java.lang.String |
SDX_DATABASE_VERSION
|
protected static java.lang.String |
SDX_DATABASE_VERSION_2_3
|
protected java.lang.String |
SDX_DATE
|
protected java.lang.String |
SDX_DATE_MILLISECONDS
|
protected java.lang.String |
SDX_ISO8601_DATE
|
protected java.lang.String |
SDX_USER
|
protected boolean |
splitActive
Whether the index may be split or not |
protected long |
splitDoc
Document limit for index splitting |
protected long |
splitSize
Size limit for index splitting. |
protected java.lang.String |
splitUnit
Size unit for index splitting. |
protected boolean |
useCompoundFiles
Compound File format usage defaulted to true |
Fields inherited from class fr.gouv.culture.sdx.utils.database.DatabaseBacked |
---|
_database, CLASS_NAME_SUFFIX, DATABASE_DIR_NAME, databaseConf, dbLocation, dbPath, DEFAULT_DATABASE_TYPE |
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
---|
_context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized |
Fields inherited from interface fr.gouv.culture.sdx.documentbase.DocumentBase |
---|
CLASS_NAME_SUFFIX, PACKAGE_QUALNAME |
Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable |
---|
DEFAULT_ENCODING |
Fields inherited from interface fr.gouv.culture.sdx.utils.save.Saveable |
---|
ALL_SAVE_ATTRIB, PATH_ATTRIB, SAVE_DIRECTORY_PARAM |
Constructor Summary | |
---|---|
SDXDocumentBase()
|
Method Summary | |
---|---|
protected void |
add(boolean batchIndex,
Document originalDoc,
Repository repository,
RepositoryConnection conn,
IndexParameters params,
boolean isIndexable,
boolean isPrimary,
java.lang.String relation,
java.lang.String parentId,
org.xml.sax.ContentHandler handler,
java.lang.String attachedDocId)
Adds a document to the search index of Lucene |
protected abstract void |
addToSearchIndex(java.lang.Object indexationDoc,
boolean batchIndex)
Add a document to the underlying search index |
void |
backup(SaveParameters save_config)
Save the DocumentBase data objects |
protected abstract void |
backupIndexes(SaveParameters save_config)
|
protected abstract void |
backupTimeStamp(SaveParameters save_config)
|
void |
checkIntegrity()
Check the integrity of the documentBase |
protected abstract void |
compactSearchIndex()
|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
Configures SDX document base |
protected void |
configureBase(org.apache.avalon.framework.configuration.Configuration configuration)
|
protected abstract void |
configureDocumentBase(org.apache.avalon.framework.configuration.Configuration configuration)
|
protected void |
configureIdGenerator(org.apache.avalon.framework.configuration.Configuration configuration)
|
void |
configureOAIComponents(org.apache.avalon.framework.configuration.Configuration configuration)
Configures OAI components if relevant: repository and harvester |
protected abstract void |
configureOAIHarvester(org.apache.avalon.framework.configuration.Configuration configuration)
|
protected abstract void |
configureOAIRepositories(org.apache.avalon.framework.configuration.Configuration configuration)
|
protected abstract void |
configureOAIRepository(org.apache.avalon.framework.configuration.Configuration configuration)
|
protected void |
configureOptimizeTriggers(org.apache.avalon.framework.configuration.Configuration optimizeConf)
Configures time triggers for optimizations |
protected void |
configureRepositories(org.apache.avalon.framework.configuration.Configuration configuration)
Configures repositories |
protected void |
configureSplit(org.apache.avalon.framework.configuration.Configuration configuration)
Index splitter configuration |
void |
delete(Document[] docs,
org.xml.sax.ContentHandler handler)
Deletes an array of documents and any attached document(s) if not used by any other document(s). |
protected void |
delete(Document doc,
boolean isIndexable,
boolean isPrimary,
boolean isShared,
java.lang.String relation,
org.xml.sax.ContentHandler handler)
Deletes a document and any attached document(s) if not used by any other document(s). |
protected abstract void |
deleteFromSearchIndex(java.lang.String id)
|
protected void |
deleteIndexableDocumentComponents(IndexableDocument doc,
org.xml.sax.ContentHandler handler)
Deletes all secondary document and search index components |
protected void |
deleteRelationsToMastersFromDatabase(java.lang.String relation,
Document doc)
|
protected long |
getByteSplitSize()
Get the split size for indexes, in byte |
protected org.apache.avalon.framework.configuration.Configuration |
getConfiguration()
|
java.io.InputStream |
getDocument(Document doc)
Provides the requested SDX document as an InputStream |
void |
getDocument(Document doc,
java.io.OutputStream os)
Supplies the provided output stream with the requested document |
void |
getDocument(ParsableDocument doc,
org.apache.cocoon.xml.XMLConsumer consumer)
Gets a SDX document as SAX events. |
void |
getDocument(ParsableDocument doc,
org.apache.cocoon.xml.XMLConsumer consumer,
boolean docTypeKnown)
Gets a SDX document as SAX events. |
protected abstract java.lang.Object |
getIndexationDocument(IndexableDocument doc,
java.lang.String storeDocId,
java.lang.String repoId,
IndexParameters params)
|
void |
getIndexationInformations()
|
LoggingIndexation |
getIndexationLogger()
|
java.lang.String[] |
getOwners(java.lang.String relationType,
java.lang.String docId,
org.xml.sax.ContentHandler handler)
Retrieves all parent documents containing the relationType/docId entry |
java.lang.String[] |
getRelated(java.lang.String docId,
java.lang.String relationType,
org.xml.sax.ContentHandler handler)
Retrieves the related documents (sub, attached, original) of the parent document for the relationType provided |
protected org.apache.avalon.framework.configuration.Configuration[] |
getRepositoryConfigurationList(org.apache.avalon.framework.configuration.Configuration configuration)
Configures repositories |
protected Repository |
getRepositoryForDocument(Document doc)
Gets the repository object in which a document resides, document should not be null and have a valid id, use Utilities.checkDocument before calling this method |
protected Repository |
getRepositoryForStorage(Document doc,
Repository defaultRepo)
This method retrieves a repository id from a document object and then does a lookup for the corresponding repository object. |
long |
getSplitDoc()
Get the document number condition for index splitting |
long |
getSplitSize()
Get the split size for indexes, depending on unit |
java.lang.String |
getSplitUnit()
Get split size unit |
boolean |
getUseCompoundFiles()
Get the specified file format for indexation |
abstract java.util.HashMap |
getXMLFieldList()
Returns the list of XML type fields |
protected int |
handleParameters(Document doc,
Repository repo,
IndexParameters params,
boolean isIndexable,
boolean isPrimary,
java.lang.String relation,
org.xml.sax.ContentHandler handler)
|
void |
index(IndexableDocument[] docs,
Repository repository,
IndexParameters params,
org.xml.sax.ContentHandler handler)
Adds some documents. |
void |
index(IndexableDocument doc,
Repository repository,
IndexParameters params,
org.xml.sax.ContentHandler handler)
Adds a document. |
protected void |
index(IndexableDocument doc,
Repository repository,
RepositoryConnection conn,
IndexParameters params,
org.xml.sax.ContentHandler handler,
boolean batchIndex)
Adds a document from an array of documents using the same connection. |
abstract void |
indexModified()
|
void |
init()
Initializes the document base. |
protected boolean |
initToSax()
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML |
protected void |
initVolatileObjectsToSax()
Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML Some objects need to be refresh each time a toSAX is called |
boolean |
isAutoOptimized()
Get information about optimization method |
boolean |
isIndexOptimized()
|
abstract void |
mergeBatch()
Deprecated. This method is deprecated since SDX v. 2.3. Use mergeCurrentBatch() instead. |
abstract void |
mergeCurrentBatch()
Merges a batch of documents (in memory) into the physical index on the file system and optimize this one if necessary (depends of the autoOptimize attribute for the current Document Base) |
abstract void |
optimize()
Process an optimization of the Documentbase |
void |
restore(SaveParameters save_config)
Restore the DocumentBase data objects |
protected abstract void |
restoreIndexes(SaveParameters save_config)
|
protected abstract void |
restoreTimeStamp(SaveParameters save_config)
|
protected void |
rollbackIndexation(IndexableDocument doc,
org.xml.sax.ContentHandler handler)
|
protected IndexParameters |
setBaseParameters(IndexParameters params)
Set's the default pipeline parameters and ensures the params have a pipeline |
protected void |
setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
|
abstract boolean |
splitCheck(boolean currentIndex)
Return true when splitting condition are reached if true, should be followed by a splitIndex() call |
abstract void |
splitIndex(boolean currentIndex)
Split the current big index into 2 smaller one |
void |
targetTriggered(java.lang.String triggeredString)
Optimization by the cron |
Methods inherited from class fr.gouv.culture.sdx.utils.database.DatabaseBacked |
---|
configure, getClassNameSuffix, getDatabase |
Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
---|
configureDescription, contextualize, enableLogging, getBaseAttributes, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.gouv.culture.sdx.documentbase.DocumentBase |
---|
creationDate, lastModificationDate |
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
---|
getLog |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
---|
enableLogging |
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable |
---|
contextualize |
Methods inherited from interface org.apache.avalon.framework.service.Serviceable |
---|
service |
Methods inherited from interface fr.gouv.culture.sdx.utils.Identifiable |
---|
getId, setId |
Methods inherited from interface fr.gouv.culture.sdx.utils.Describable |
---|
getDescription, setDescription |
Methods inherited from interface fr.gouv.culture.sdx.utils.Encodable |
---|
getEncoding, setEncoding |
Methods inherited from interface fr.gouv.culture.sdx.utils.Localizable |
---|
getLocale, getXmlLang, setLocale, setXmlLang |
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable |
---|
toSAX |
Methods inherited from interface fr.gouv.culture.sdx.search.Searchable |
---|
getId, getIndex |
Field Detail |
---|
protected TimeScheduler scheduler
protected boolean keepOriginalDocuments
protected java.lang.String baseIndexDir
protected boolean splitActive
protected long splitSize
protected java.lang.String splitUnit
protected long splitDoc
protected boolean useCompoundFiles
protected boolean autoOptimize
protected boolean isDatadirShared
protected boolean _isIndexOptimized
protected final java.lang.String DOC_URL
protected final java.lang.String SDX_USER
protected final java.lang.String SDX_DATE
protected final java.lang.String SDX_ISO8601_DATE
protected final java.lang.String SDX_DATE_MILLISECONDS
protected static final java.lang.String[] _documentAdditionStatus
protected static final int DOC_ADD_STATUS_FAILURE
protected static final int DOC_ADD_STATUS_IGNORED
protected static final int DOC_ADD_STATUS_ADDED
protected static final int DOC_ADD_STATUS_REFRESHED
protected static final int DOC_ADD_STATUS_REPLACED
protected static final java.lang.String SDX_DATABASE_FORMAT
protected static final java.lang.String SDX_DATABASE_VERSION
protected static final java.lang.String SDX_DATABASE_VERSION_2_3
protected static final java.lang.String ELEMENT_NAME_DEFAULT_HPP
protected static final java.lang.String ELEMENT_NAME_DEFAULT_MAXSORT
protected org.apache.avalon.framework.configuration.Configuration _configuration
protected LoggingIndexation _ilogger
protected int _ilevel
Constructor Detail |
---|
public SDXDocumentBase()
Method Detail |
---|
protected void setConfiguration(org.apache.avalon.framework.configuration.Configuration configuration)
protected org.apache.avalon.framework.configuration.Configuration getConfiguration()
getConfiguration
in class AbstractSdxObject
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
configure
in class DatabaseBacked
org.apache.avalon.framework.configuration.ConfigurationException
protected void configureBase(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected void configureSplit(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected org.apache.avalon.framework.configuration.Configuration[] getRepositoryConfigurationList(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
-
org.apache.avalon.framework.configuration.ConfigurationException
protected void configureRepositories(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
-
org.apache.avalon.framework.configuration.ConfigurationException
public void configureOAIComponents(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configuration
-
org.apache.avalon.framework.configuration.ConfigurationException
protected void configureIdGenerator(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected abstract void configureDocumentBase(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected abstract void deleteFromSearchIndex(java.lang.String id) throws SDXException
SDXException
protected abstract void configureOAIRepositories(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected abstract void configureOAIRepository(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected abstract void configureOAIHarvester(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
org.apache.avalon.framework.configuration.ConfigurationException
protected abstract java.lang.Object getIndexationDocument(IndexableDocument doc, java.lang.String storeDocId, java.lang.String repoId, IndexParameters params) throws SDXException
SDXException
protected abstract void addToSearchIndex(java.lang.Object indexationDoc, boolean batchIndex) throws SDXException
indexationDoc
- The document object for the specific search implementation (lucene, or other)batchIndex
- parameter to indicate wheter a batch indexation pass is taking place so that optimization is done at the end of the batch
SDXException
protected abstract void compactSearchIndex() throws SDXException
SDXException
public boolean getUseCompoundFiles()
public boolean isAutoOptimized()
protected long getByteSplitSize()
public long getSplitSize()
public java.lang.String getSplitUnit()
public long getSplitDoc()
public void getDocument(ParsableDocument doc, org.apache.cocoon.xml.XMLConsumer consumer) throws SDXException
getDocument
in interface DocumentBase
getDocument
in class AbstractDocumentBase
doc
- A ParsableDocument, ie XMLDocument or HTMLDocument.consumer
- A SAX content handler to feed with events.
The wrapped contentHandler for including events within an XSP page contentHandler should be created using
IncludeXMLConsumer stripper = new IncludeXMLConsumer(xspContentHandler);
SDXException
public void getDocument(ParsableDocument doc, org.apache.cocoon.xml.XMLConsumer consumer, boolean docTypeKnown) throws SDXException
getDocument
in interface DocumentBase
doc
- A Document, ie XMLDocument or HTMLDocument, we discern the type from the document lookup.consumer
- A SAX content handler to feed with events.docTypeKnown
- If the type of the ParsableDocument desired is unknown, ie. XML or HTML,
allows users to build one or the other type of document and still retrieve a document
The wrapped contentHandler for including events within an XSP page contentHandler should be created using
IncludeXMLConsumer stripper = new IncludeXMLConsumer(xspContentHandler);
SDXException
public void getDocument(Document doc, java.io.OutputStream os) throws SDXException
getDocument
in interface DocumentBase
getDocument
in class AbstractDocumentBase
doc
- The document.os
- The output stream.
SDXException
public java.io.InputStream getDocument(Document doc) throws SDXException
getDocument
in interface DocumentBase
getDocument
in class AbstractDocumentBase
doc
- The document.
SDXException
protected Repository getRepositoryForStorage(Document doc, Repository defaultRepo) throws SDXException
doc
- Document with desired repository storage iddefaultRepo
- Default repo to utilize if none found
SDXException
protected Repository getRepositoryForDocument(Document doc) throws SDXException
SDXException
protected void delete(Document doc, boolean isIndexable, boolean isPrimary, boolean isShared, java.lang.String relation, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
doc
- The document to delete.
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
protected void deleteIndexableDocumentComponents(IndexableDocument doc, org.xml.sax.ContentHandler handler) throws SDXException, org.apache.cocoon.ProcessingException, org.xml.sax.SAXException
doc
- The parent document
SDXException
org.apache.cocoon.ProcessingException
org.xml.sax.SAXException
public void delete(Document[] docs, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
delete
in interface DocumentBase
docs
- The documents to delete.handler
- A content handler to feed with information.
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
public void index(IndexableDocument doc, Repository repository, IndexParameters params, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
index
in interface DocumentBase
doc
- The document to add.repository
- The repository where to store the document.params
- The parameters for this adding action.handler
- A content handler where to send information about the process (may be null), currently we don't use it, but maybe in the future.
TODO : what kind of "informations" ? -pb
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
protected void rollbackIndexation(IndexableDocument doc, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
public java.lang.String[] getOwners(java.lang.String relationType, java.lang.String docId, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException
relationType
- The relation type (sub, attached, original)docId
- The secondary document idhandler
- Then handler to feed with events
SDXException
org.xml.sax.SAXException
public java.lang.String[] getRelated(java.lang.String docId, java.lang.String relationType, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException
docId
- The parent document idrelationType
- The relation type (sub, attached, original)handler
- The handler to feed with events
SDXException
org.xml.sax.SAXException
protected void deleteRelationsToMastersFromDatabase(java.lang.String relation, Document doc) throws SDXException
SDXException
protected int handleParameters(Document doc, Repository repo, IndexParameters params, boolean isIndexable, boolean isPrimary, java.lang.String relation, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
protected IndexParameters setBaseParameters(IndexParameters params)
params
- The params object provided by the user at indexation timepublic void index(IndexableDocument[] docs, Repository repository, IndexParameters params, org.xml.sax.ContentHandler handler) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
index
in interface DocumentBase
docs
- The documents to add.repository
- The repository where to store the documents. If null is passed, the default repository will be used.params
- The parameters for this adding action.handler
- A content handler where to send information about the process (may be null)
TODO : what kind of "informations" ? -pb
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
protected void index(IndexableDocument doc, Repository repository, RepositoryConnection conn, IndexParameters params, org.xml.sax.ContentHandler handler, boolean batchIndex) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
doc
- The document to add.repository
- The repository where to store the document.conn
- The repository's connection, we want to use only one connection for all the documentsparams
- The parameters for this adding action.handler
- A content handler where to send information about the process (may be null), currently we don't use it, but maybe in the future.
TODO : what kind of "informations" ? -pb
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
protected void add(boolean batchIndex, Document originalDoc, Repository repository, RepositoryConnection conn, IndexParameters params, boolean isIndexable, boolean isPrimary, java.lang.String relation, java.lang.String parentId, org.xml.sax.ContentHandler handler, java.lang.String attachedDocId) throws SDXException, org.xml.sax.SAXException, org.apache.cocoon.ProcessingException
originalDoc
- The document to addrepository
- The repository to useconn
- The repository connection to useparams
- The document addition parametershandler
- The content handler to feed with eventsisIndexable
- is the document indexableisPrimary
- is the document a primary or secondary documentbatchIndex
- is this a batch index
SDXException
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
public void init() throws SDXException
DocumentBase
This method must be called after the super.getLog() has been set and the configuration done.
init
in interface DocumentBase
init
in class DatabaseBacked
SDXException
public abstract java.util.HashMap getXMLFieldList()
protected boolean initToSax()
AbstractSdxObject
initToSax
in class AbstractDocumentBase
protected void initVolatileObjectsToSax()
initVolatileObjectsToSax
in class AbstractDocumentBase
public abstract void optimize()
optimize
in interface DocumentBase
public abstract void mergeBatch() throws SDXException
SDXException
public abstract void mergeCurrentBatch()
public abstract void indexModified()
public abstract boolean splitCheck(boolean currentIndex) throws SDXException
SDXException
public abstract void splitIndex(boolean currentIndex) throws java.io.IOException, SDXException
java.io.IOException
SDXException
public final boolean isIndexOptimized()
protected void configureOptimizeTriggers(org.apache.avalon.framework.configuration.Configuration optimizeConf) throws org.apache.avalon.framework.configuration.ConfigurationException
optimizeConf
- The configuration for optimizations
org.apache.avalon.framework.configuration.ConfigurationException
public void targetTriggered(java.lang.String triggeredString)
targetTriggered
in interface Target
triggeredString
- the name of triggerpublic void checkIntegrity()
checkIntegrity
in interface DocumentBase
public void backup(SaveParameters save_config) throws SDXException
backup
in interface Saveable
backup
in class AbstractDocumentBase
SDXException
Saveable.backup(fr.gouv.culture.sdx.utils.save.SaveParameters)
protected abstract void backupIndexes(SaveParameters save_config) throws SDXException
SDXException
protected abstract void backupTimeStamp(SaveParameters save_config) throws SDXException
SDXException
public void restore(SaveParameters save_config) throws SDXException
restore
in interface Saveable
restore
in class AbstractDocumentBase
SDXException
Saveable.restore(fr.gouv.culture.sdx.utils.save.SaveParameters)
public LoggingIndexation getIndexationLogger()
public void getIndexationInformations()
protected abstract void restoreIndexes(SaveParameters save_config) throws SDXException
SDXException
protected abstract void restoreTimeStamp(SaveParameters save_config) throws SDXException
SDXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |