use of com.palantir.atlasdb.config.TimeLockRuntimeConfig in project atlasdb by palantir.
the class AtlasDbCommandUtils method convertRuntimeConfigWithTimeLock.
private static AtlasDbConfig convertRuntimeConfigWithTimeLock(AtlasDbConfig installConfig, AtlasDbRuntimeConfig runtimeConfig) {
TimeLockRuntimeConfig timeLockRuntimeConfig = runtimeConfig.timelockRuntime().get();
ImmutableTimeLockClientConfig timeLockClientConfig = ImmutableTimeLockClientConfig.builder().client(installConfig.getNamespaceString()).serversList(timeLockRuntimeConfig.serversList()).build();
return ImmutableAtlasDbConfig.builder().from(installConfig).timelock(timeLockClientConfig).build();
}
Aggregations