@nsshunt/stsrunnerframework 1.0.81 → 1.0.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2072,6 +2072,22 @@ class STSWorkerManager {
2072
2072
  __privateAdd(this, _debug2, (message) => {
2073
2073
  console.log(chalk.cyan(`pid: [${process.pid}] STSWorkerManager::${message}`));
2074
2074
  });
2075
+ __publicField(this, "GetWorkers", () => {
2076
+ const retVal = {};
2077
+ for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
2078
+ retVal[workerEx.id] = this.CreateWorkerCopy(workerEx);
2079
+ }
2080
+ return retVal;
2081
+ });
2082
+ __publicField(this, "GetArchiveList", () => {
2083
+ return __privateGet(this, _archiveList);
2084
+ });
2085
+ __publicField(this, "GetWorker", (workerId) => {
2086
+ return this.CreateWorkerCopy(__privateGet(this, _workersEx)[workerId]);
2087
+ });
2088
+ __publicField(this, "GetRunner", (workerId, runnerId) => {
2089
+ return this.CreateRunnerCopy(__privateGet(this, _workersEx)[workerId].runnersEx[runnerId]);
2090
+ });
2075
2091
  __publicField(this, "AddWorker", (workerOptions, useWorkerFactory) => {
2076
2092
  let workerFactory;
2077
2093
  if (useWorkerFactory) {
@@ -2604,19 +2620,9 @@ class STSWorkerManager {
2604
2620
  get id() {
2605
2621
  return __privateGet(this, _id);
2606
2622
  }
2607
- get Workers() {
2608
- const retVal = {};
2609
- for (const [, workerEx] of Object.entries(__privateGet(this, _workersEx))) {
2610
- retVal[workerEx.id] = this.CreateWorkerCopy(workerEx);
2611
- }
2612
- return retVal;
2613
- }
2614
2623
  get WorkersEx() {
2615
2624
  return __privateGet(this, _workersEx);
2616
2625
  }
2617
- get archiveList() {
2618
- return __privateGet(this, _archiveList);
2619
- }
2620
2626
  get Options() {
2621
2627
  return __privateGet(this, _options2);
2622
2628
  }