本文整理匯總了Java中org.apache.zookeeper.server.persistence.FileTxnLog.setPreallocSize方法的典型用法代碼示例。如果您正苦於以下問題:Java FileTxnLog.setPreallocSize方法的具體用法?Java FileTxnLog.setPreallocSize怎麽用?Java FileTxnLog.setPreallocSize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.zookeeper.server.persistence.FileTxnLog
的用法示例。
在下文中一共展示了FileTxnLog.setPreallocSize方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setupTestEnv
import org.apache.zookeeper.server.persistence.FileTxnLog; //導入方法依賴的package包/類
/**
* Test specific setup
*/
public static void setupTestEnv() {
// during the tests we run with 100K prealloc in the logs.
// on windows systems prealloc of 64M was seen to take ~15seconds
// resulting in test Assert.failure (client timeout on first session).
// set env and directly in order to handle static init/gc issues
System.setProperty("zookeeper.preAllocSize", "100");
FileTxnLog.setPreallocSize(100 * 1024);
}
示例2: setupTestEnv
import org.apache.zookeeper.server.persistence.FileTxnLog; //導入方法依賴的package包/類
private static void setupTestEnv() {
// during the tests we run with 100K prealloc in the logs.
// on windows systems prealloc of 64M was seen to take ~15seconds
// resulting in test failure (client timeout on first session).
// set env and directly in order to handle static init/gc issues
System.setProperty("zookeeper.preAllocSize", "100");
FileTxnLog.setPreallocSize(100 * 1024);
}
示例3: setupTestEnv
import org.apache.zookeeper.server.persistence.FileTxnLog; //導入方法依賴的package包/類
private static void setupTestEnv() {
// during the tests we run with 100K prealloc in the logs.
// on windows systems prealloc of 64M was seen to take ~15seconds
// resulting in test failure (client timeout on first session).
// set env and directly in order to handle static init/gc issues
System.setProperty("zookeeper.preAllocSize", "100");
FileTxnLog.setPreallocSize(100 * 1024);
}
示例4: setupTestEnv
import org.apache.zookeeper.server.persistence.FileTxnLog; //導入方法依賴的package包/類
private static void setupTestEnv() {
// during the tests we run with 100K prealloc in the logs.
// on windows systems prealloc of 64M was seen to take ~15seconds
// resulting in test failure (client timeout on first session).
// set env and directly in order to handle static init/gc issues
System.setProperty("zookeeper.preAllocSize", "100");
FileTxnLog.setPreallocSize(100);
}
示例5: setupTestEnv
import org.apache.zookeeper.server.persistence.FileTxnLog; //導入方法依賴的package包/類
/**
* Test specific setup
*/
public static void setupTestEnv() {
// during the tests we run with 100K prealloc in the logs.
// on windows systems prealloc of 64M was seen to take ~15seconds
// resulting in test failure (client timeout on first session).
// set env and directly in order to handle static init/gc issues
System.setProperty("zookeeper.preAllocSize", "100");
FileTxnLog.setPreallocSize(100 * 1024);
}