Search in sources :

Example 1 with ImmutableTimeLockClientConfig

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();
}
Also used : ImmutableTimeLockClientConfig(com.palantir.atlasdb.config.ImmutableTimeLockClientConfig) TimeLockRuntimeConfig(com.palantir.atlasdb.config.TimeLockRuntimeConfig)

Aggregations

ImmutableTimeLockClientConfig (com.palantir.atlasdb.config.ImmutableTimeLockClientConfig)1 TimeLockRuntimeConfig (com.palantir.atlasdb.config.TimeLockRuntimeConfig)1