Package org.exist.storage.dom

Examples of org.exist.storage.dom.DOMFile


            //3) have consistent file creation behaviour (we can probably avoid some unnecessary files)
            //4) use... *customized* factories for a better index extensibility ;-)
            // Initialize DOM storage
            domDb = (DOMFile) config.getProperty(DOMFile.getConfigKeyForFile());
            if(domDb == null) {
                domDb = new DOMFile(pool, DOM_DBX_ID, dataDir, config);
            }
            if(domDb.isReadOnly()) {
                LOG.warn(domDb.getFile().getName() + " is read-only!");
                pool.setReadOnly();
            }
View Full Code Here


        this.contentHandler.startElement(NAMESPACE, "buffers", PREFIX + ":buffers", atts);
        final Configuration conf = instance.getConfiguration();
        BFile db;
        db = (BFile) conf.getProperty(CollectionStore.FILE_KEY_IN_CONFIG);
        genBufferDetails(db.getIndexBufferStats(), db.getDataBufferStats(), "Collections storage ("+ db.getFile().getName() + ")");
        final DOMFile dom = (DOMFile) conf.getProperty(DOMFile.CONFIG_KEY_FOR_FILE);
        genBufferDetails(dom.getIndexBufferStats(), dom.getDataBufferStats(), "Resource storage ("+ dom.getFile().getName() + ")");
        db = (BFile) conf.getProperty(NativeValueIndex.FILE_KEY_IN_CONFIG);
        if (db != null)
            {genBufferDetails(db.getIndexBufferStats(), db.getDataBufferStats(), "Values index ("+ db.getFile().getName() + ")");}
        db = (BFile) conf.getProperty(NativeTextEngine.FILE_KEY_IN_CONFIG);
        if (db != null)
View Full Code Here

    /** generate index statistics
     * @param conf
     * @param indexStats
     */
    public static void generateIndexStatistics(Configuration conf, Map<String, IndexStats> indexStats) {
        final DOMFile dom = (DOMFile) conf.getProperty(DOMFile.CONFIG_KEY_FOR_FILE);
        if(dom != null)
            {indexStats.put(DOMFile.FILE_NAME, new IndexStats(dom));}
        BFile db = (BFile) conf.getProperty(CollectionStore.FILE_KEY_IN_CONFIG);
        if(db != null)
            {indexStats.put(CollectionStore.FILE_NAME, new IndexStats(db));
View Full Code Here

TOP

Related Classes of org.exist.storage.dom.DOMFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.