public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( envBean.getStoreDir(), envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( envBean.getStoreDir(), true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( storeDir, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( storeDir, true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getPoolSize(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( envBean.getStoreDir(), envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( envBean.getStoreDir(), true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( storeDir, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( storeDir, true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getPoolSize(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( envBean.getStoreDir(), envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( envBean.getStoreDir(), true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( envBean.getStoreDir(), envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( envBean.getStoreDir(), true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( storeDir, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( storeDir, true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getPoolSize(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( storeDir, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( storeDir, true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getPoolSize(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( storeDir, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( storeDir, true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getPoolSize(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }
public HornetqJournalStore(HornetqJournalEnvironmentBean envBean) throws IOException { syncWrites = envBean.isSyncWrites(); syncDeletes = envBean.isSyncDeletes(); File storeDir = new File(envBean.getStoreDir()); if(!storeDir.exists() && !storeDir.mkdirs()) { throw new IOException(tsLogger.i18NLogger.get_dir_create_failed(storeDir.getCanonicalPath())); } storeDirCanonicalPath = storeDir.getCanonicalPath(); SequentialFileFactory sequentialFileFactory; if(envBean.isAsyncIO() && AIOSequentialFileFactory.isSupported()) { sequentialFileFactory = new AIOSequentialFileFactory( storeDir, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } else { sequentialFileFactory = new NIOSequentialFileFactory( storeDir, true, envBean.getBufferSize(), (int)(1000000000d / envBean.getBufferFlushesPerSecond()), // bufferTimeout nanos .000000001 second envBean.getMaxIO(), envBean.isLogRates()); } journal = new JournalImpl(envBean.getFileSize(), envBean.getMinFiles(), envBean.getPoolSize(), envBean.getCompactMinFiles(), envBean.getCompactPercentage(), sequentialFileFactory, envBean.getFilePrefix(), envBean.getFileExtension(), envBean.getMaxIO()); }