예제 #1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public TrainingController(
     ITrainingHistoryRepository trainingHistoryRepository,
     IInferenceHistoryRepository inferenceHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IDataSetRepository dataSetRepository,
     ITagRepository tagRepository,
     ITenantRepository tenantRepository,
     INodeRepository nodeRepository,
     ITagLogic tagLogic,
     ITrainingLogic trainingLogic,
     IStorageLogic storageLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IOptions <ContainerManageOptions> containerOptions,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.inferenceHistoryRepository     = inferenceHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.dataSetRepository      = dataSetRepository;
     this.tagRepository          = tagRepository;
     this.tenantRepository       = tenantRepository;
     this.nodeRepository         = nodeRepository;
     this.tagLogic               = tagLogic;
     this.trainingLogic          = trainingLogic;
     this.storageLogic           = storageLogic;
     this.gitLogic               = gitLogic;
     this.clusterManagementLogic = clusterManagementLogic;
     this.containerOptions       = containerOptions.Value;
     this.unitOfWork             = unitOfWork;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public ClusterManagementLogic(
     ICommonDiLogic commonDiLogic,
     IUserRepository userRepository,
     INodeRepository nodeRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IClusterManagementService clusterManagementService,
     IUnitOfWork unitOfWork,
     ILoginLogic loginLogic,
     IGitLogic gitLogic,
     IRegistryLogic registryLogic,
     IVersionLogic versionLogic,
     IOptions <ContainerManageOptions> containerOptions,
     IOptions <ActiveDirectoryOptions> adOptions
     ) : base(commonDiLogic)
 {
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.userRepository           = userRepository;
     this.nodeRepository           = nodeRepository;
     this.clusterManagementService = clusterManagementService;
     this.loginLogic       = loginLogic;
     this.gitLogic         = gitLogic;
     this.registryLogic    = registryLogic;
     this.versionLogic     = versionLogic;
     this.unitOfWork       = unitOfWork;
     this.containerOptions = containerOptions.Value;
     this.adOptions        = adOptions.Value;
 }
예제 #3
0
 public ClusterController(
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.clusterManagementLogic         = clusterManagementLogic;
     this.unitOfWork = unitOfWork;
 }
예제 #4
0
 public TrainingLogic(
     ITrainingHistoryRepository trainingHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     ICommonDiLogic commonDiLogic) : base(commonDiLogic)
 {
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.clusterManagementLogic         = clusterManagementLogic;
     this.unitOfWork = unitOfWork;
 }
예제 #5
0
 public ExperimentController(
     IExperimentRepository experimentRepository,
     IExperimentPreprocessRepository experimentPreprocessRepository,
     IAquariumDataSetRepository aquariumDataSetRepository,
     IDataSetRepository dataSetRepository,
     IGitRepository gitRepository,
     IRegistryRepository registryRepository,
     ITrainingHistoryRepository trainingHistoryRepository,
     ITemplateRepository templateRepository,
     ITemplateVersionRepository templateVersionRepository,
     ITenantRepository tenantRepository,
     INodeRepository nodeRepository,
     ITemplateLogic templateLogic,
     ITagLogic tagLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IDataSetLogic dataSetLogic,
     IRegistryLogic registryLogic,
     IUnitOfWork unitOfWork,
     IInferenceHistoryRepository inferenceHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     ITagRepository tagRepository,
     IStorageLogic storageLogic,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.experimentRepository           = experimentRepository;
     this.experimentPreprocessRepository = experimentPreprocessRepository;
     this.aquariumDataSetRepository      = aquariumDataSetRepository;
     this.dataSetRepository         = dataSetRepository;
     this.gitRepository             = gitRepository;
     this.registryRepository        = registryRepository;
     this.templateRepository        = templateRepository;
     this.templateVersionRepository = templateVersionRepository;
     this.tenantRepository          = tenantRepository;
     this.nodeRepository            = nodeRepository;
     this.templateLogic             = templateLogic;
     this.tagLogic = tagLogic;
     this.gitLogic = gitLogic;
     this.clusterManagementLogic         = clusterManagementLogic;
     this.dataSetLogic                   = dataSetLogic;
     this.registryLogic                  = registryLogic;
     this.inferenceHistoryRepository     = inferenceHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.tagRepository                  = tagRepository;
     this.storageLogic                   = storageLogic;
     this.unitOfWork = unitOfWork;
 }
예제 #6
0
        /// <summary>
        /// コンストラクタで各 DI オブジェクトを引数で受け取ります。
        /// </summary>
        public DeleteTensorBoardContainerTimer(
            ITensorBoardContainerRepository tensorBoardContainerRepository,
            IClusterManagementService clusterManagementService,
            IUnitOfWork unitOfWork,
            IOptions <ContainerManageOptions> containerManageOptions,
            IOptions <DeleteTensorBoardContainerTimerOptions> deleteTensorBoardContainerTimerOptions,
            ILogger <DeleteTensorBoardContainerTimer> logger
            ) : base(logger, deleteTensorBoardContainerTimerOptions.Value)
        {
            // 各 DI オブジェクトの設定
            this.tensorBoardContainerRepository = tensorBoardContainerRepository;
            this.clusterManagementService       = clusterManagementService;
            this.unitOfWork = unitOfWork;

            // kubernetes の token
            this.kubernetesToken = containerManageOptions.Value.ResourceManageKey;
        }
예제 #7
0
 public TrainingController(
     ITrainingHistoryRepository trainingHistoryRepository,
     IInferenceHistoryRepository inferenceHistoryRepository,
     ITensorBoardContainerRepository tensorBoardContainerRepository,
     IDataSetRepository dataSetRepository,
     ITrainingLogic trainingLogic,
     IStorageLogic storageLogic,
     IGitLogic gitLogic,
     IClusterManagementLogic clusterManagementLogic,
     IUnitOfWork unitOfWork,
     IHttpContextAccessor accessor) : base(accessor)
 {
     this.clusterManagementLogic         = clusterManagementLogic;
     this.trainingHistoryRepository      = trainingHistoryRepository;
     this.inferenceHistoryRepository     = inferenceHistoryRepository;
     this.tensorBoardContainerRepository = tensorBoardContainerRepository;
     this.dataSetRepository = dataSetRepository;
     this.trainingLogic     = trainingLogic;
     this.storageLogic      = storageLogic;
     this.gitLogic          = gitLogic;
     this.unitOfWork        = unitOfWork;
 }