@Test public void testSetPreallocSize() { long customPreallocSize = 10101; FileTxnLog.setPreallocSize(customPreallocSize); Assert.assertThat(FilePadding.getPreAllocSize(), is(equalTo(customPreallocSize))); }
public static void setPreallocSize(long size) { FilePadding.setPreallocSize(size); }
FileTxnLog implements TxnLog { public static void setPreallocSize(long size) { FilePadding.setPreallocSize(size); } }
FileTxnLog implements TxnLog { public static void setPreallocSize(long size) { FilePadding.setPreallocSize(size); } FileTxnLog(File logDir); }
FileTxnLog implements TxnLog { public static void setPreallocSize(long size) { FilePadding.setPreallocSize(size); } FileTxnLog(File logDir); static void setPreallocSize(long size); @Override synchronized void setServerStats(ServerStats serverStats); synchronized void rollLog(); synchronized void close(); synchronized boolean append(TxnHeader hdr, Record txn); static File[] getLogFiles(File[] logDirList,long snapshotZxid); long getLastLoggedZxid(); synchronized void commit(); long getTxnLogSyncElapsedTime(); TxnIterator read(long zxid); TxnIterator read(long zxid, boolean fastForward); boolean truncate(long zxid); long getDbId(); boolean isForceSync(); }
FileTxnLog implements TxnLog { public static void setPreallocSize(long size) { FilePadding.setPreallocSize(size); } FileTxnLog(File logDir); static void setPreallocSize(long size); @Override synchronized void setServerStats(ServerStats serverStats); synchronized void rollLog(); synchronized void close(); synchronized boolean append(TxnHeader hdr, Record txn); static File[] getLogFiles(File[] logDirList,long snapshotZxid); long getLastLoggedZxid(); synchronized void commit(); long getTxnLogSyncElapsedTime(); TxnIterator read(long zxid); TxnIterator read(long zxid, boolean fastForward); boolean truncate(long zxid); long getDbId(); boolean isForceSync(); final static int TXNLOG_MAGIC; final static int VERSION; static final String LOG_FILE_PREFIX; }