本文整理汇总了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);
}