this.envImpl = envImpl;
this.dbEnvHome = dbEnvHome;
this.readOnly = readOnly;
/* Read configurations. */
DbConfigManager configManager = envImpl.getConfigManager();
maxFileSize = configManager.getLong(EnvironmentParams.LOG_FILE_MAX);
useNIO =
configManager.getBoolean(EnvironmentParams.LOG_USE_NIO);
chunkedNIOSize =
configManager.getLong(EnvironmentParams.LOG_CHUNKED_NIO);
boolean directNIO =
configManager.getBoolean(EnvironmentParams.LOG_DIRECT_NIO);
if (!useNIO && (chunkedNIOSize > 0 || directNIO)) {
throw new IllegalArgumentException
(EnvironmentParams.LOG_USE_NIO.getName() +
" is false and therefore " +