Package jdbm.helper

Examples of jdbm.helper.MRU


        }

        String path = new File( this.wkDirPath, attributeType.getOid() ).getAbsolutePath();

        BaseRecordManager base = new BaseRecordManager( path );
        recMan = new CacheRecordManager( base, new MRU( DEFAULT_INDEX_CACHE_SIZE ) );

        try
        {
            initTables( schemaManager );
        }
View Full Code Here


        String path = new File( this.wkDirPath, attributeType.getOid() ).getAbsolutePath();

        //System.out.println( "IDX Created index " + path )
        BaseRecordManager base = new BaseRecordManager( path );
        base.disableTransactions();
        recMan = new CacheRecordManager( base, new MRU( cacheSize ) );

        try
        {
            initTables( schemaManager );
        }
View Full Code Here

        value = options.getProperty( RecordManagerOptions.CACHE_TYPE, RecordManagerOptions.NORMAL_CACHE );
       
        if ( value.equalsIgnoreCase( RecordManagerOptions.NORMAL_CACHE ) )
        {
            MRU cache = new MRU( cacheSize );
            recman = new CacheRecordManager( recman, cache );
        }
        else if ( value.equalsIgnoreCase( RecordManagerOptions.SOFT_REF_CACHE ) )
        {
            throw new IllegalArgumentException( I18n.err( I18n.ERR_551 ) );
View Full Code Here

            else
            {
                LOG.debug( "Using the custom configured cache size of {} for {} partition", cacheSize, id );
            }

            recMan = new CacheRecordManager( base, new MRU( cacheSize ) );

            // Create the master table (the table containing all the entries)
            master = new JdbmMasterTable( recMan, schemaManager );

            // get all index db files first
View Full Code Here

        try
        {
            String path = file.getAbsolutePath();
            BaseRecordManager base = new BaseRecordManager( path );
            base.disableTransactions();
            recMan = new CacheRecordManager( base , new MRU( 1000 ) );
        }
        catch ( IOException e )
        {
            NamingException ne = new NamingException(
                "Could not initialize the record manager" );
View Full Code Here

        try
        {
            String path = workingDirectory.getPath() + File.separator + "master";
            BaseRecordManager base = new BaseRecordManager( path );
            base.disableTransactions();
            recMan = new CacheRecordManager( base, new MRU( 1000 ) );
        }
        catch ( IOException e )
        {
            NamingException ne = new NamingException(
                "Could not initialize RecordManager" );
View Full Code Here

        }

        String path = partitionDirectory.getPath() + File.separator + "master";
        BaseRecordManager base = new BaseRecordManager( path );
        base.disableTransactions();
        CacheRecordManager recMan = new CacheRecordManager( base, new MRU( 1000 ) );

        JdbmMasterTable<Entry> master = new JdbmMasterTable<Entry>( recMan, schemaManager );
        JdbmIndex index = new JdbmIndex();
        index.setAttributeId( attributeType.getName() );
        index.setCacheSize( JdbmIndex.DEFAULT_INDEX_CACHE_SIZE );
View Full Code Here

        String path = new File( this.wkDirPath, attributeType.getOid() ).getAbsolutePath();

        BaseRecordManager base = new BaseRecordManager( path );
        base.disableTransactions();
        this.recMan = new CacheRecordManager( base, new MRU( DEFAULT_INDEX_CACHE_SIZE ) );

        try
        {
            initTables( schemaManager );
        }
View Full Code Here

        String path = new File( this.wkDirPath, attributeType.getOid() ).getAbsolutePath();
       
        //System.out.println( "IDX Created index " + path );
        BaseRecordManager base = new BaseRecordManager( path );
        base.disableTransactions();
        this.recMan = new CacheRecordManager( base, new MRU( cacheSize ) );

        try
        {
            initTables( schemaManager );
        }
View Full Code Here

        out.println( "# ========================================================================\n\n" );

        String path = partitionDirectory.getPath() + File.separator + "master";
        BaseRecordManager base = new BaseRecordManager( path );
        base.disableTransactions();
        CacheRecordManager recMan = new CacheRecordManager( base, new MRU( 1000 ) );

        JdbmMasterTable<Entry> master = new JdbmMasterTable<Entry>( recMan, schemaManager );
        AttributeType attributeType = schemaManager.lookupAttributeTypeRegistry( "apacheUpdn" );
        JdbmIndex idIndex = new JdbmIndex();
        idIndex.setAttributeId( attributeType.getName() );
View Full Code Here

TOP

Related Classes of jdbm.helper.MRU

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.