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


Java BerkeleyJEStoreManager類代碼示例

本文整理匯總了Java中com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager的典型用法代碼示例。如果您正苦於以下問題:Java BerkeleyJEStoreManager類的具體用法?Java BerkeleyJEStoreManager怎麽用?Java BerkeleyJEStoreManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BerkeleyJEStoreManager類屬於com.thinkaurelius.titan.diskstorage.berkeleyje包,在下文中一共展示了BerkeleyJEStoreManager類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: testConsistencyEnforcement

import com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager; //導入依賴的package包/類
@Override
public void testConsistencyEnforcement() {
    // Check that getConfiguration() explicitly set serializable isolation
    // This could be enforced with a JUnit assertion instead of a Precondition,
    // but a failure here indicates a problem in the test itself rather than the
    // system-under-test, so a Precondition seems more appropriate
    IsolationLevel effective = ConfigOption.getEnumValue(config.get(ConfigElement.getPath(BerkeleyJEStoreManager.ISOLATION_LEVEL), String.class),IsolationLevel.class);
    Preconditions.checkState(IsolationLevel.SERIALIZABLE.equals(effective));
    super.testConsistencyEnforcement();
}
 
開發者ID:graben1437,項目名稱:titan1withtp3.1,代碼行數:11,代碼來源:BerkeleyGraphTest.java

示例2: beforeOpeningGraph

import com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager; //導入依賴的package包/類
@Override
public void beforeOpeningGraph(String uid) {
    String dir = BerkeleyStorageSetup.getHomeDir(uid);
    log.debug("Cleaning directory {} before opening it for the first time", dir);
    try {
        BerkeleyJEStoreManager s = new BerkeleyJEStoreManager(BerkeleyStorageSetup.getBerkeleyJEConfiguration(dir));
        s.clearStorage();
        s.close();
        File dirFile = new File(dir);
        Assert.assertFalse(dirFile.exists() && dirFile.listFiles().length > 0);
    } catch (BackendException e) {
        throw new RuntimeException(e);
    }
}
 
開發者ID:graben1437,項目名稱:titan0.5.4-hbase1.1.1-custom,代碼行數:15,代碼來源:BerkeleyBlueprintsTest.java

示例3: extraCleanUp

import com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager; //導入依賴的package包/類
@Override
public void extraCleanUp(String uid) throws BackendException {
    String dir = BerkeleyStorageSetup.getHomeDir(uid);
    BerkeleyJEStoreManager s = new BerkeleyJEStoreManager(BerkeleyStorageSetup.getBerkeleyJEConfiguration(dir));
    s.clearStorage();
    s.close();
    File dirFile = new File(dir);
    Assert.assertFalse(dirFile.exists() && dirFile.listFiles().length > 0);
}
 
開發者ID:graben1437,項目名稱:titan0.5.4-hbase1.1.1-custom,代碼行數:10,代碼來源:BerkeleyBlueprintsTest.java

示例4: testConsistencyEnforcement

import com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager; //導入依賴的package包/類
@Override
public void testConsistencyEnforcement() {
    // Check that getConfiguration() explicitly set serializable isolation
    // This could be enforced with a JUnit assertion instead of a Precondition,
    // but a failure here indicates a problem in the test itself rather than the
    // system-under-test, so a Precondition seems more appropriate
    IsolationLevel effective = config.get(ConfigElement.getPath(BerkeleyJEStoreManager.ISOLATION_LEVEL), IsolationLevel.class);
    Preconditions.checkState(IsolationLevel.SERIALIZABLE.equals(effective));
    super.testConsistencyEnforcement();
}
 
開發者ID:graben1437,項目名稱:titan0.5.4-hbase1.1.1-custom,代碼行數:11,代碼來源:BerkeleyGraphTest.java


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