Package org.objectweb.howl.log

Examples of org.objectweb.howl.log.Configuration


            return new JournalImpl(directory);
        }
       
        if( HOWL_JOURNAL_TYPE.equals(journalType) ) {
            try {
                Configuration config = new Configuration();
                config.setLogFileDir(directory.getCanonicalPath());
                return new HowlJournal(config);
            } catch (IOException e) {
                throw e;
            } catch (Exception e) {
                throw (IOException)new IOException("Could not open HOWL journal: "+e.getMessage()).initCause(e);
View Full Code Here


            return new JournalImpl(directory);
        }
       
        if( HOWL_JOURNAL_TYPE.equals(journalType) ) {
            try {
                Configuration config = new Configuration();
                config.setLogFileDir(directory.getCanonicalPath());
                return new HowlJournal(config);
            } catch (IOException e) {
                throw e;
            } catch (Exception e) {
                throw (IOException)new IOException("Could not open HOWL journal: "+e.getMessage()).initCause(e);
View Full Code Here

        if( DEFAULT_JOURNAL_TYPE.equals(journalType) ) {
            return new JournalImpl(directory);
        }
        if( HOWL_JOURNAL_TYPE.equals(journalType) ) {
            try {
                Configuration config = new Configuration();
                config.setLogFileDir(directory.getCanonicalPath());
                return new HowlJournal(config);
            } catch (IOException e) {
                throw e;
            } catch (Exception e) {
                throw (IOException)new IOException("Could not open HOWL journal: "+e.getMessage()).initCause(e);
View Full Code Here

      e.printStackTrace();
    }
  }

  public Journal createJournal() throws Exception {
    Configuration c = new Configuration();
    c.setLogFileDir(journalDirectory.getPath());
    c.setMaxLogFiles(maxLogFiles);
    c.setBufferSize(bufferSize);
    c.setMaxBuffers(maxBuffers);
    c.setMaxBlocksPerFile(maxBlocksPerFile);
    return new HowlJournal( c );
  }
View Full Code Here

TOP

Related Classes of org.objectweb.howl.log.Configuration

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.