Search in sources :

Example 1 with MapBackedDefaultTaskVariablesService

use of com.walmartlabs.concord.runtime.v2.runner.MapBackedDefaultTaskVariablesService in project concord by walmartlabs.

the class CliServicesModule method configure.

@Override
protected void configure() {
    install(new BaseRunnerModule());
    bind(RunnerLogger.class).to(SimpleLogger.class);
    bind(SecretService.class).toInstance(new CliSecretService(workDir, secretStoreDir, vaultProvider));
    bind(DockerService.class).to(CliDockerService.class);
    bind(CheckpointService.class).to(CliCheckpointService.class);
    bind(PersistenceService.class).to(DefaultPersistenceService.class);
    bind(ProcessStatusCallback.class).toInstance(instanceId -> {
    });
    bind(DefaultTaskVariablesService.class).toInstance(new MapBackedDefaultTaskVariablesService(readDefaultVars()));
    bind(LockService.class).to(CliLockService.class);
    bind(DependencyManager.class).toInstance(dependencyManager);
    bind(com.walmartlabs.concord.runtime.v2.sdk.DependencyManager.class).to(DefaultDependencyManager.class).in(Singleton.class);
    Multibinder.newSetBinder(binder(), ExecutionListener.class);
}
Also used : MapBackedDefaultTaskVariablesService(com.walmartlabs.concord.runtime.v2.runner.MapBackedDefaultTaskVariablesService) ProcessStatusCallback(com.walmartlabs.concord.runtime.v2.runner.ProcessStatusCallback) LockService(com.walmartlabs.concord.runtime.v2.sdk.LockService) DependencyManager(com.walmartlabs.concord.dependencymanager.DependencyManager) DefaultDependencyManager(com.walmartlabs.concord.runtime.v2.runner.DefaultDependencyManager) DockerService(com.walmartlabs.concord.runtime.v2.sdk.DockerService) BaseRunnerModule(com.walmartlabs.concord.runtime.v2.runner.guice.BaseRunnerModule) DefaultPersistenceService(com.walmartlabs.concord.runtime.v2.runner.DefaultPersistenceService) PersistenceService(com.walmartlabs.concord.runtime.v2.runner.PersistenceService) CheckpointService(com.walmartlabs.concord.runtime.v2.runner.checkpoints.CheckpointService) DefaultDependencyManager(com.walmartlabs.concord.runtime.v2.runner.DefaultDependencyManager) MapBackedDefaultTaskVariablesService(com.walmartlabs.concord.runtime.v2.runner.MapBackedDefaultTaskVariablesService) DefaultTaskVariablesService(com.walmartlabs.concord.runtime.v2.runner.DefaultTaskVariablesService) RunnerLogger(com.walmartlabs.concord.runtime.v2.runner.logging.RunnerLogger) SecretService(com.walmartlabs.concord.runtime.v2.sdk.SecretService)

Aggregations

DependencyManager (com.walmartlabs.concord.dependencymanager.DependencyManager)1 DefaultDependencyManager (com.walmartlabs.concord.runtime.v2.runner.DefaultDependencyManager)1 DefaultPersistenceService (com.walmartlabs.concord.runtime.v2.runner.DefaultPersistenceService)1 DefaultTaskVariablesService (com.walmartlabs.concord.runtime.v2.runner.DefaultTaskVariablesService)1 MapBackedDefaultTaskVariablesService (com.walmartlabs.concord.runtime.v2.runner.MapBackedDefaultTaskVariablesService)1 PersistenceService (com.walmartlabs.concord.runtime.v2.runner.PersistenceService)1 ProcessStatusCallback (com.walmartlabs.concord.runtime.v2.runner.ProcessStatusCallback)1 CheckpointService (com.walmartlabs.concord.runtime.v2.runner.checkpoints.CheckpointService)1 BaseRunnerModule (com.walmartlabs.concord.runtime.v2.runner.guice.BaseRunnerModule)1 RunnerLogger (com.walmartlabs.concord.runtime.v2.runner.logging.RunnerLogger)1 DockerService (com.walmartlabs.concord.runtime.v2.sdk.DockerService)1 LockService (com.walmartlabs.concord.runtime.v2.sdk.LockService)1 SecretService (com.walmartlabs.concord.runtime.v2.sdk.SecretService)1