當前位置: 首頁>>代碼示例>>Java>>正文


Java Environment.CHECKPOINTER_NAME屬性代碼示例

本文整理匯總了Java中com.sleepycat.je.Environment.CHECKPOINTER_NAME屬性的典型用法代碼示例。如果您正苦於以下問題:Java Environment.CHECKPOINTER_NAME屬性的具體用法?Java Environment.CHECKPOINTER_NAME怎麽用?Java Environment.CHECKPOINTER_NAME使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在com.sleepycat.je.Environment的用法示例。


在下文中一共展示了Environment.CHECKPOINTER_NAME屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createDaemons

/**
    * Read configurations for daemons, instantiate.
    */
   private void createDaemons()
       throws DatabaseException  {

       /* Evictor */
       evictor = new Evictor(this, "Evictor");

       /* Checkpointer */

       /*
        * Make sure that either log-size-based or time-based checkpointing
        * is enabled.
        */
       long checkpointerWakeupTime =
           Checkpointer.getWakeupPeriod(configManager);
       checkpointer = new Checkpointer(this,
                                       checkpointerWakeupTime,
                                       Environment.CHECKPOINTER_NAME);

       /* INCompressor */
       long compressorWakeupInterval =
           PropUtil.microsToMillis
    (configManager.getLong
     (EnvironmentParams.COMPRESSOR_WAKEUP_INTERVAL));
       inCompressor = new INCompressor(this, compressorWakeupInterval,
                                       Environment.INCOMP_NAME);

/* The cleaner is not time-based so no wakeup interval is used. */
cleaner = new Cleaner(this, Environment.CLEANER_NAME);
   }
 
開發者ID:nologic,項目名稱:nabs,代碼行數:32,代碼來源:EnvironmentImpl.java

示例2: createDaemons

/**
    * Read configurations for daemons, instantiate.
    */
   private void createDaemons() 
       throws DatabaseException  {

       /* Evictor */
       evictor = new Evictor(this, "Evictor");

       /* Checkpointer */

       /*
        * Make sure that either log-size-based or time-based checkpointing
        * is enabled.
        */
       long checkpointerWakeupTime =
           Checkpointer.getWakeupPeriod(configManager);
       checkpointer = new Checkpointer(this, 
                                       checkpointerWakeupTime,
                                       Environment.CHECKPOINTER_NAME);

       /* INCompressor */
       long compressorWakeupInterval =
           PropUtil.microsToMillis
    (configManager.getLong
     (EnvironmentParams.COMPRESSOR_WAKEUP_INTERVAL));
       inCompressor = new INCompressor(this, compressorWakeupInterval,
                                       Environment.INCOMP_NAME);

/* The cleaner is not time-based so no wakeup interval is used. */
cleaner = new Cleaner(this, Environment.CLEANER_NAME);
   }
 
開發者ID:nologic,項目名稱:nabs,代碼行數:32,代碼來源:EnvironmentImpl.java

示例3: createDaemons

/**
 * Read configurations for daemons, instantiate.
 */
private void createDaemons(EnvironmentImpl sharedCacheEnv)
    throws DatabaseException {

    /* Evictor */
    if (sharedCacheEnv != null) {
        assert sharedCache;
        evictor = sharedCacheEnv.evictor;
    } else if (sharedCache) {
        evictor = new SharedEvictor(this);
    } else {
        evictor = new PrivateEvictor(this);
    }

    /* Checkpointer */

    /*
     * Make sure that either log-size-based or time-based checkpointing
     * is enabled.
     */
    long checkpointerWakeupTime =
        Checkpointer.getWakeupPeriod(configManager);
    checkpointer = new Checkpointer(this,
                                    checkpointerWakeupTime,
                                    Environment.CHECKPOINTER_NAME);

    /* INCompressor */
    long compressorWakeupInterval = configManager.getDuration
        (EnvironmentParams.COMPRESSOR_WAKEUP_INTERVAL);
    inCompressor = new INCompressor(this, compressorWakeupInterval,
                                    Environment.INCOMP_NAME);

    /* The cleaner is not time-based so no wakeup interval is used. */
    cleaner = new Cleaner(this, Environment.CLEANER_NAME);

    createStatCapture();
}
 
開發者ID:prat0318,項目名稱:dbms,代碼行數:39,代碼來源:EnvironmentImpl.java


注:本文中的com.sleepycat.je.Environment.CHECKPOINTER_NAME屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。