Examples of Journal


Examples of net.sf.xbus.base.journal.Journal

      {
        // Logging of the receiving-activity into the journal and
        // closing the
        // connection to the database.
        call.setResponseTimestamp(new Date());
        Journal journal = new Journal();
        journal.log('R', source, call);
        journal.commit();
      } // try
      catch (Exception t)
      {
        Trace.error(t);
      } // catch (Throwable t)
View Full Code Here

Examples of org.adoptopenjdk.jitwatch.model.Journal

    assertNotNull(tag);
   
    member.setCompiledAttributes(new HashMap<String, String>());

    Journal journal = member.getJournal();
    journal.addEntry(tag);

    CompileChainWalker walker = new CompileChainWalker(model);

    CompileNode root = walker.buildCallTree(member);
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.journal.Journal

        index.setEnablePageCaching(isEnableIndexPageCaching());
        return index;
    }

    private Journal createJournal() throws IOException {
        Journal manager = new Journal();
        manager.setDirectory(directory);
        manager.setMaxFileLength(getJournalMaxFileLength());
        manager.setCheckForCorruptionOnStartup(checkForCorruptJournalFiles);
        manager.setChecksum(checksumJournalFiles || checkForCorruptJournalFiles);
        manager.setWriteBatchSize(getJournalMaxWriteBatchSize());
        manager.setArchiveDataLogs(isArchiveDataLogs());
        manager.setSizeAccumulator(journalSize);
        manager.setEnableAsyncDiskSync(isEnableJournalDiskSyncs());
        if (getDirectoryArchive() != null) {
            IOHelper.mkdirs(getDirectoryArchive());
            manager.setDirectoryArchive(getDirectoryArchive());
        }
        return manager;
    }
View Full Code Here

Examples of org.apache.directory.server.core.api.journal.Journal

        if ( ( journalBean == null ) || journalBean.isDisabled() )
        {
            return null;
        }

        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

Examples of org.apache.directory.server.core.api.journal.Journal

        // DenormalizedOpAttrsEnabled
        directoryService.setDenormalizeOpAttrsEnabled( directoryServiceBean.isDsDenormalizeOpAttrsEnabled() );

        // Journal
        Journal journal = createJournal( directoryServiceBean.getJournal() );

        if ( journal != null )
        {
            directoryService.setJournal( journal );
        }
View Full Code Here

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

    private Journal getJournal( DN journalDN ) throws Exception
    {
        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 )
        {
            journal.setRotation( Integer.parseInt( jlRotAttr.getString() ) );
        }

        EntryAttribute jlEnabledAttr = jlEntry.get( "ads-journalEnabled" );

        if ( jlEnabledAttr != null )
        {
            journal.setEnabled( Boolean.parseBoolean( jlEnabledAttr.getString() ) );
        }

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

Examples of org.apache.hadoop.hdfs.qjournal.server.Journal

 
  @Before
  public void setup() throws Exception {
    FileUtil.fullyDelete(TEST_LOG_DIR);
    conf = new Configuration();
    journal = new Journal(conf, TEST_LOG_DIR, JID,
      mockErrorReporter);
    journal.format(FAKE_NSINFO);
  }
View Full Code Here

Examples of org.apache.jackrabbit.core.journal.Journal

            public Journal getJournal(NamespaceResolver resolver)
                    throws RepositoryException {
                BeanConfig config = parseBeanConfig(cluster, JOURNAL_ELEMENT);
                Object object = config.newInstance();
                if (object instanceof Journal) {
                    Journal journal = (Journal) object;
                    if (journal instanceof AbstractJournal) {
                        ((AbstractJournal) journal).setRepositoryHome(home);
                    }
                    try {
                        journal.init(id, resolver);
                    } catch (JournalException e) {
                        // TODO: Should JournalException extend RepositoryException?
                        throw new RepositoryException(
                                "Journal initialization failed: " + journal, e);
                    }
View Full Code Here

Examples of org.apache.jackrabbit.core.journal.Journal

            throws ConfigurationException {
        return new JournalFactory() {
            public Journal getJournal(NamespaceResolver resolver)
                    throws RepositoryException {
                BeanConfig config = parseBeanConfig(cluster, JOURNAL_ELEMENT);
                Journal journal = config.newInstance(Journal.class);
                if (journal instanceof AbstractJournal) {
                    ((AbstractJournal) journal).setRepositoryHome(home);
                }
                try {
                    journal.init(id, resolver);
                } catch (JournalException e) {
                    // TODO: Should JournalException extend RepositoryException?
                    throw new RepositoryException(
                            "Journal initialization failed: " + journal, e);
                }
View Full Code Here

Examples of org.apache.jackrabbit.core.journal.Journal

            throws ConfigurationException {
        return new JournalFactory() {
            public Journal getJournal(NamespaceResolver resolver)
                    throws RepositoryException {
                BeanConfig config = parseBeanConfig(cluster, JOURNAL_ELEMENT);
                Journal journal = config.newInstance(Journal.class);
                if (journal instanceof AbstractJournal) {
                    ((AbstractJournal) journal).setRepositoryHome(home);
                }
                try {
                    journal.init(id, resolver);
                } catch (JournalException e) {
                    // TODO: Should JournalException extend RepositoryException?
                    throw new RepositoryException(
                            "Journal initialization failed: " + journal, e);
                }
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.