當前位置: 首頁>>代碼示例>>Java>>正文


Java FileTxnLog.setPreallocSize方法代碼示例

本文整理匯總了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);
}
 
開發者ID:nucypher,項目名稱:hadoop-oss,代碼行數:12,代碼來源:ClientBaseWithFixes.java

示例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);
}
 
開發者ID:skhalifa,項目名稱:QDrill,代碼行數:9,代碼來源:MiniZooKeeperCluster.java

示例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);
}
 
開發者ID:kakao,項目名稱:hbase-tools,代碼行數:9,代碼來源:MiniZooKeeperCluster.java

示例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);
}
 
開發者ID:lifeng5042,項目名稱:RStore,代碼行數:9,代碼來源:MiniZooKeeperCluster.java

示例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);
}
 
開發者ID:prodigeni,項目名稱:zookeeper.dsc,代碼行數:12,代碼來源:ClientBase.java


注:本文中的org.apache.zookeeper.server.persistence.FileTxnLog.setPreallocSize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。