本文整理匯總了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();
}
示例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);
}
}
示例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);
}
示例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();
}