예제 #1
0
 DockerEnvironmentProvider(IRuntimeInfoProvider runtimeInfoProvider, IEntityStore<string, ModuleState> store, IRestartPolicyManager restartPolicyManager, string operatingSystemType, string architecture)
 {
     this.moduleStatusProvider = runtimeInfoProvider;
     this.store = Preconditions.CheckNotNull(store, nameof(store));
     this.operatingSystemType = operatingSystemType;
     this.architecture = architecture;
     this.restartPolicyManager = Preconditions.CheckNotNull(restartPolicyManager, nameof(restartPolicyManager));
 }
        public static async Task <DockerEnvironmentProvider> CreateAsync(IRuntimeInfoProvider runtimeInfoProvider, IEntityStore <string, ModuleState> store,
                                                                         IRestartPolicyManager restartPolicyManager)
        {
            SystemInfo systemInfo = await Preconditions.CheckNotNull(runtimeInfoProvider, nameof(runtimeInfoProvider)).GetSystemInfo();

            return(new DockerEnvironmentProvider(
                       runtimeInfoProvider, store, restartPolicyManager,
                       systemInfo.OperatingSystemType, systemInfo.Architecture,
                       systemInfo.Version));
        }
예제 #3
0
 public HealthRestartPlanner(
     ICommandFactory commandFactory,
     IEntityStore <string, ModuleState> store,
     TimeSpan intensiveCareTime,
     IRestartPolicyManager restartManager)
 {
     this.commandFactory    = Preconditions.CheckNotNull(commandFactory, nameof(commandFactory));
     this.store             = Preconditions.CheckNotNull(store, nameof(store));
     this.intensiveCareTime = intensiveCareTime;
     this.restartManager    = Preconditions.CheckNotNull(restartManager, nameof(restartManager));
 }
예제 #4
0
 public DockerEnvironment(IRuntimeInfoProvider moduleStatusProvider,
                          DeploymentConfig deploymentConfig,
                          IEntityStore <string, ModuleState> moduleStateStore,
                          IRestartPolicyManager restartManager,
                          string operatingSystemType,
                          string architecture)
 {
     this.moduleStatusProvider = moduleStatusProvider;
     this.deploymentConfig     = deploymentConfig;
     this.moduleStateStore     = moduleStateStore;
     this.restartManager       = restartManager;
     this.operatingSystemType  = operatingSystemType;
     this.architecture         = architecture;
 }