Examples of LogManager


Examples of org.apache.felix.jmood.compendium.LogManager

            }

            if (iService.equals(LogService.class.getName())) {
                switch (eType) {
                case ServiceEvent.REGISTERED:
                    LogManagerMBean lm = new LogManager(ac);
                    server.registerMBean(lm, new ObjectName(
                            ObjectNames.LOG_SERVICE));
                    break;
                case ServiceEvent.UNREGISTERING:
                    server.unregisterMBean(new ObjectName(
View Full Code Here

Examples of org.apache.tomcat.util.log.LogManager

             BaseInterceptor module)
  throws TomcatException
    {
  if( module!=this ) return;

  LogManager logManager=(LogManager)cm.getNote("tc.LogManager");
 
  // Log will redirect all Log.getLog to us
  if( logManager==null ) {
      logManager=new TomcatLogManager();
      cm.setNote("tc.LogManager", logManager);
View Full Code Here

Examples of org.chaidb.db.log.LogManager

    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_DATA);

        return newLsn;
    }
View Full Code Here

Examples of org.chaidb.db.log.LogManager

    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log(int flag) throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();

        Lsn newLsn;
        if (flag == Transaction.TXN_SYNC) {
            newLsn = logMgr.put(this, LogManager.LOG_FLUSH);//flush log to log file while commit
        } else {
            newLsn = logMgr.put(this, LogManager.LOG_DATA);//not flush log to log file,just put it to log buffer
        }

        return newLsn;
    }
View Full Code Here

Examples of org.chaidb.db.log.LogManager

            return null;
        }

        super.log();

        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = null;

        //        if (operationFlag == FILE_DELETE_OPERATION) {
        //            newLsn = logMgr.put(this, LogManager.LOG_FLUSH);//flush log to log file while do delete collection/index operation
        //        } else {
        //            newLsn = logMgr.put(this, LogManager.LOG_DATA);//not flush log to log file,just put it to log buffer
        //        }

        /* modified by marriane 2003-11-6,flush log either deleting or creating operation for fixing inconsistent issue */
        newLsn = logMgr.put(this, LogManager.LOG_FLUSH);

        return newLsn;
    }
View Full Code Here

Examples of org.chaidb.db.log.LogManager

        if (!Config.TXN_SUPPORT) {
            return null;
        }

        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_FLUSH);

        return newLsn;
    }
View Full Code Here

Examples of org.chaidb.db.log.LogManager

    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_CHECKPOINT);

        return newLsn;
    }
View Full Code Here

Examples of org.chaidb.db.log.LogManager

    /**
     * user interface to add a log record and put it to buffer pool
     */
    public Lsn log() throws ChaiDBException {
        super.log();
        LogManager logMgr = Db.getLogManager();
        Lsn newLsn = logMgr.put(this, LogManager.LOG_CHILD_FLUSH);

        return newLsn;
    }
View Full Code Here

Examples of org.codehaus.loom.interfaces.LogManager

    private LoggerStore createHierarchy( final int index )
        throws Exception
    {
        final Configuration logs = loadConfig( "config" + index + ".xml" );
        final LogManager logManager = createLogManager();
        final SarMetaData sarMetaData =
            new SarMetaData( "test",
                             m_baseDirectory,
                             new BlockMetaData[0],
                             new BlockListenerMetaData[0] );
        cleanHomeDirectory( sarMetaData );

        //make sure directory is created else log4j will fail.
        if( 3 == index )
        {
            final File file =
                new File( m_baseDirectory.getAbsolutePath() +
                          File.separator +
                          "logs" );
            file.mkdirs();
        }

        final HashMap context = new HashMap();
        context.put( BlockContext.APP_NAME, sarMetaData.getName() );
        context.put( BlockContext.APP_HOME_DIR,
                     sarMetaData.getHomeDirectory() );
        context.put( "classloader", getClass().getClassLoader() );

        final LoggerStore store =
            logManager.createHierarchy( logs,
                                        sarMetaData.getHomeDirectory(),
                                        sarMetaData.getHomeDirectory(),
                                        context );
        return store;
    }
View Full Code Here

Examples of org.jSyncManager.SJS.LogManager

    */
   @Before
   public void beginMethod() {
      try {
         if (testLog == null) {
            testLog = new LogManager(".", "txt", "SMTPTest");
            setLogManager(testLog);
         }   // end if

         users = getUsers();
         domains = getDomains();
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.