本文整理匯總了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);
}
示例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);
}
示例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();
}