final int fileOperationRetryMsDelay = setup
.getFileOperationRetryMsDelay();
// true if crash safe mode enabled
final boolean crashSafeMode;
// to access data on file, used by heap element manager
final FileForStorable fileForStorable;
// backup data file, used by heap element manager
final FileForStorable fileForStorableBackup;
// flag file state stable for data file
final File stateOkFlagFile;
// flag file state stable for backup data file
final File stateBackupOkFlagFile;
// flag file indicating backup and data file stable state
final File globalStateFlagFile;
if (setup.isCrashSafeMode()) {
crashSafeMode = true;
fileForStorable = new FileForStorable(
setup.getDataFileAccessParameter());
/* no read cache on backup copy, not used for read */
fileForStorableBackup = new FileForStorable(
setup.getBackupFileAccessParameter());
stateOkFlagFile = setup.getStateOkFlagFile();
stateBackupOkFlagFile = setup.getStateBackupOkFlagFile();
globalStateFlagFile = setup.getGlobalStateFlagFile();
} else {
crashSafeMode = false;
fileForStorable = new FileForStorable(
setup.getDataFileAccessParameter());
fileForStorableBackup = null;// NOPMD no file defined
stateOkFlagFile = null;// NOPMD no file defined
stateBackupOkFlagFile = null;// NOPMD no file defined
globalStateFlagFile = null;// NOPMD no file defined