use of com.palantir.atlasdb.config.ImmutableTimeLockClientConfig 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