use of com.thinkaurelius.titan.diskstorage.log.LogManager in project titan by thinkaurelius.
the class TitanGraphBaseTest method closeLogs.
private void closeLogs() {
try {
for (LogManager lm : logManagers.values()) lm.close();
logManagers.clear();
if (logStoreManager != null) {
logStoreManager.close();
logStoreManager = null;
}
} catch (BackendException e) {
throw new TitanException(e);
}
}
use of com.thinkaurelius.titan.diskstorage.log.LogManager in project titan by thinkaurelius.
the class Backend method getLogManager.
private static LogManager getLogManager(Configuration config, String logName, KeyColumnValueStoreManager sm) {
Configuration logConfig = config.restrictTo(logName);
String backend = logConfig.get(LOG_BACKEND);
if (backend.equalsIgnoreCase(LOG_BACKEND.getDefaultValue())) {
return new KCVSLogManager(sm, logConfig);
} else {
Preconditions.checkArgument(config != null);
LogManager lm = getImplementationClass(logConfig, logConfig.get(LOG_BACKEND), REGISTERED_LOG_MANAGERS);
Preconditions.checkNotNull(lm);
return lm;
}
}
Aggregations