Examples of disableTransactions()


Examples of jdbm.recman.BaseRecordManager.disableTransactions()

        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

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

            // First, check if the file storing the data exists
            String path = partitionDir.getPath() + File.separator + "master";

            BaseRecordManager base = new BaseRecordManager( path );
            base.disableTransactions();

            if ( cacheSize < 0 )
            {
                cacheSize = DEFAULT_CACHE_SIZE;
                LOG.debug( "Using the default entry cache size of {} for {} partition", cacheSize, id );
View Full Code Here

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

        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(
View Full Code Here

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

           
        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(
View Full Code Here

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

            System.exit( 1 );
        }

        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() );
View Full Code Here

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

        }

        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

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

       
        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

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

        out.println( "# Partition Directory: " + partitionDirectory );
        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();
View Full Code Here

Examples of jdbm.recman.BaseRecordManager.disableTransactions()

        getPartitionDir().mkdirs();

        // First, check if the file storing the data exists
        String path = getPartitionDir().getPath() + File.separator + "master";
        BaseRecordManager base = new BaseRecordManager( path );
        base.disableTransactions();

        if ( cacheSize < 0 )
        {
            cacheSize = DEFAULT_CACHE_SIZE;
            LOG.debug( "Using the default entry cache size of {} for {} partition", cacheSize, id );
View Full Code Here

Examples of org.apache.jdbm.DBMaker.disableTransactions()

      readonly = false;
   
    // init record manager
    DBMaker d = DBMaker.openFile(f);
    // set options
    d.disableTransactions();
    d.closeOnExit();
    d.enableMRUCache();
    d.useRandomAccessFile();
    //d.enableHardCache();
    //d.disableCache();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.