Package org.apache.directory.server.core.journal

Examples of org.apache.directory.server.core.journal.JournalStore


    {
        long id = configPartition.getEntryId( journalDN.getNormName() );
        Entry jlEntry = configPartition.lookup( id );

        Journal journal = new DefaultJournal();
        JournalStore store = new DefaultJournalStore();

        store.setFileName( getString( "ads-journalFileName", jlEntry ) );

        EntryAttribute jlWorkDirAttr = jlEntry.get( "ads-journalWorkingDir" );

        if ( jlWorkDirAttr != null )
        {
            store.setWorkingDirectory( jlWorkDirAttr.getString() );
        }

        EntryAttribute jlRotAttr = jlEntry.get( "ads-journalRotation" );

        if ( jlRotAttr != null )
View Full Code Here


        Journal journal = new DefaultJournal();

        journal.setRotation( journalBean.getJournalRotation() );
        journal.setEnabled( journalBean.isEnabled() );

        JournalStore store = new DefaultJournalStore();

        store.setFileName( journalBean.getJournalFileName() );
        store.setWorkingDirectory( journalBean.getJournalWorkingDir() );

        journal.setJournalStore( store );
       
        return journal;
    }
View Full Code Here

    {
        long id = configPartition.getEntryId( journalDN.getNormName() );
        Entry jlEntry = configPartition.lookup( id );

        Journal journal = new DefaultJournal();
        JournalStore store = new DefaultJournalStore();

        store.setFileName( getString( "ads-journalFileName", jlEntry ) );

        EntryAttribute jlWorkDirAttr = jlEntry.get( "ads-journalWorkingDir" );

        if ( jlWorkDirAttr != null )
        {
            store.setWorkingDirectory( jlWorkDirAttr.getString() );
        }

        EntryAttribute jlRotAttr = jlEntry.get( "ads-journalRotation" );

        if ( jlRotAttr != null )
View Full Code Here

        Journal journal = new DefaultJournal();

        journal.setRotation( journalBean.getJournalRotation() );
        journal.setEnabled( journalBean.isEnabled() );

        JournalStore store = new DefaultJournalStore();

        store.setFileName( journalBean.getJournalFileName() );
        store.setWorkingDirectory( journalBean.getJournalWorkingDir() );

        journal.setJournalStore( store );
       
        return journal;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.journal.JournalStore

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.