use of org.janusgraph.diskstorage.log.LogManager in project janusgraph by JanusGraph.
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;
}
}
use of org.janusgraph.diskstorage.log.LogManager in project janusgraph by JanusGraph.
the class JanusGraphBaseTest 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 JanusGraphException(e);
}
}
Aggregations