Beispiel #1
0
        public static bool Initialize(IBMemoryServiceInterface _MemoryService, Action <string> _ErrorMessageAction = null)
        {
            try
            {
                MemoryService = _MemoryService;
                PodManager    = new K8sObjectManager(KubernetesClientManager.GetDefaultKubernetesClient());
                Instance      = new BatchProcessingStateService();

                LongRunningThread = new Thread(GeneralStatusCheck);
                LongRunningThread.IsBackground = true;
                LongRunningThread.Start(_ErrorMessageAction);

                return(true);
            }
            catch (Exception ex)
            {
                _ErrorMessageAction?.Invoke($"{ex.Message}\n{ex.StackTrace}");
                return(false);
            }
        }
Beispiel #2
0
 public void GetBucketAndFile(string _PodName, out string _Bucket, out string _Filename)
 {
     BatchProcessingStateService.GetPodBucketAndFile(_PodName, out _Bucket, out _Filename, out string _);
 }