@hpcc-js/comms 2.69.0 → 2.73.4
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.
- package/dist/index.es6.js +524 -216
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +447 -114
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +544 -192
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/lib-es6/clienttools/eclMeta.js +4 -4
- package/lib-es6/clienttools/eclMeta.js.map +1 -1
- package/lib-es6/clienttools/eclcc.js +18 -18
- package/lib-es6/clienttools/eclcc.js.map +1 -1
- package/lib-es6/connection.js +6 -6
- package/lib-es6/connection.js.map +1 -1
- package/lib-es6/ecl/graph.js +5 -5
- package/lib-es6/ecl/graph.js.map +1 -1
- package/lib-es6/ecl/logicalFile.js +2 -2
- package/lib-es6/ecl/logicalFile.js.map +1 -1
- package/lib-es6/ecl/machine.js +10 -0
- package/lib-es6/ecl/machine.js.map +1 -1
- package/lib-es6/ecl/result.js +1 -1
- package/lib-es6/ecl/result.js.map +1 -1
- package/lib-es6/ecl/scope.js +5 -5
- package/lib-es6/ecl/scope.js.map +1 -1
- package/lib-es6/ecl/store.js +4 -4
- package/lib-es6/ecl/store.js.map +1 -1
- package/lib-es6/ecl/targetCluster.js +3 -3
- package/lib-es6/ecl/targetCluster.js.map +1 -1
- package/lib-es6/ecl/topology.js +1 -1
- package/lib-es6/ecl/topology.js.map +1 -1
- package/lib-es6/ecl/workunit.js +7 -4
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/espConnection.js +1 -1
- package/lib-es6/espConnection.js.map +1 -1
- package/lib-es6/index-common.js +3 -0
- package/lib-es6/index-common.js.map +1 -1
- package/lib-es6/services/wsAccess.js +11 -0
- package/lib-es6/services/wsAccess.js.map +1 -0
- package/lib-es6/services/wsDFU.js +1 -1
- package/lib-es6/services/wsDFU.js.map +1 -1
- package/lib-es6/services/wsEcl.js +3 -3
- package/lib-es6/services/wsEcl.js.map +1 -1
- package/lib-es6/services/wsLogaccess.js +11 -0
- package/lib-es6/services/wsLogaccess.js.map +1 -0
- package/lib-es6/services/wsMachine.js +10 -21
- package/lib-es6/services/wsMachine.js.map +1 -1
- package/lib-es6/services/wsResources.js +11 -0
- package/lib-es6/services/wsResources.js.map +1 -0
- package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js +20 -0
- package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js.map +1 -0
- package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js +203 -0
- package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js.map +1 -0
- package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js +28 -0
- package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js.map +1 -0
- package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js +41 -0
- package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js.map +1 -0
- package/package.json +30 -35
- package/src/__package__.ts +2 -2
- package/src/ecl/machine.ts +11 -9
- package/src/ecl/targetCluster.ts +7 -7
- package/src/ecl/topology.ts +1 -1
- package/src/ecl/workunit.ts +3 -0
- package/src/index-common.ts +3 -0
- package/src/services/wsAccess.ts +8 -0
- package/src/services/wsDFU.ts +3 -2
- package/src/services/wsLogaccess.ts +8 -0
- package/src/services/wsMachine.ts +17 -293
- package/src/services/wsResources.ts +8 -0
- package/src/services/wsdl/WsResources/v1.01/WsResources.ts +119 -0
- package/src/services/wsdl/ws_access/v1.16/ws_access.ts +1086 -0
- package/src/services/wsdl/ws_logaccess/v1/ws_logaccess.ts +78 -0
- package/src/services/wsdl/ws_machine/v1.17/ws_machine.ts +567 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/activity.d.ts +1 -1
- package/types/ecl/activity.d.ts.map +1 -1
- package/types/ecl/machine.d.ts +11 -9
- package/types/ecl/machine.d.ts.map +1 -1
- package/types/ecl/targetCluster.d.ts +5 -5
- package/types/ecl/targetCluster.d.ts.map +1 -1
- package/types/ecl/topology.d.ts.map +1 -1
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/index-common.d.ts +3 -0
- package/types/index-common.d.ts.map +1 -1
- package/types/services/wsAccess.d.ts +5 -0
- package/types/services/wsAccess.d.ts.map +1 -0
- package/types/services/wsDFU.d.ts +2 -1
- package/types/services/wsDFU.d.ts.map +1 -1
- package/types/services/wsLogaccess.d.ts +5 -0
- package/types/services/wsLogaccess.d.ts.map +1 -0
- package/types/services/wsMachine.d.ts +9 -235
- package/types/services/wsMachine.d.ts.map +1 -1
- package/types/services/wsResources.d.ts +5 -0
- package/types/services/wsResources.d.ts.map +1 -0
- package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts +85 -0
- package/types/services/wsdl/WsResources/v1.01/WsResources.d.ts.map +1 -0
- package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts +778 -0
- package/types/services/wsdl/ws_access/v1.16/ws_access.d.ts.map +1 -0
- package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +51 -0
- package/types/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts.map +1 -0
- package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +470 -0
- package/types/services/wsdl/ws_machine/v1.17/ws_machine.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/activity.d.ts +1 -1
- package/types-3.4/ecl/machine.d.ts +11 -9
- package/types-3.4/ecl/targetCluster.d.ts +5 -5
- package/types-3.4/index-common.d.ts +3 -0
- package/types-3.4/services/wsAccess.d.ts +5 -0
- package/types-3.4/services/wsDFU.d.ts +2 -1
- package/types-3.4/services/wsLogaccess.d.ts +5 -0
- package/types-3.4/services/wsMachine.d.ts +9 -235
- package/types-3.4/services/wsResources.d.ts +5 -0
- package/types-3.4/services/wsdl/WsResources/v1.01/WsResources.d.ts +85 -0
- package/types-3.4/services/wsdl/ws_access/v1.16/ws_access.d.ts +778 -0
- package/types-3.4/services/wsdl/ws_logaccess/v1/ws_logaccess.d.ts +51 -0
- package/types-3.4/services/wsdl/ws_machine/v1.17/ws_machine.d.ts +470 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/comms",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.73.4",
|
|
4
4
|
"description": "hpcc-js - Communications",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"compile-es6-watch": "npm run compile-es6 -- -w",
|
|
23
23
|
"compile-umd": "tsc --module umd --outDir ./lib-umd",
|
|
24
24
|
"compile-umd-watch": "npm run compile-umd -- -w",
|
|
25
|
+
"compile-util": "tsc --esModuleInterop --target es2019 --skipLibCheck --module commonjs --outDir ./lib-cjs ./utils/index.ts",
|
|
25
26
|
"bundle": "rollup -c",
|
|
26
27
|
"bundle-watch": "npm run bundle -- -w",
|
|
27
28
|
"minimize-browser": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
|
|
@@ -30,52 +31,46 @@
|
|
|
30
31
|
"gen-legacy-types": "downlevel-dts ./types ./types-3.4",
|
|
31
32
|
"build": "npm run compile-es6 && npm run bundle",
|
|
32
33
|
"watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
|
|
33
|
-
"stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
34
|
+
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
|
|
34
35
|
"lint": "eslint src/**/*.ts",
|
|
35
36
|
"lint-fix": "eslint --fix src/**/*.ts",
|
|
36
|
-
"test": "
|
|
37
|
+
"test": "mocha lib-umd/__tests__ --reporter spec",
|
|
37
38
|
"docs": "typedoc --options tdoptions.json .",
|
|
38
|
-
"update": "npx npm-check-updates -u -t minor"
|
|
39
|
+
"update": "npx npm-check-updates -u -t minor",
|
|
40
|
+
"wsdl-access": "node ./lib-cjs/index.js --url=http://localhost:8010/ws_access?wsdl --outDir=./src/services/wsdl",
|
|
41
|
+
"wsdl-account": "node ./lib-cjs/index.js --url=http://localhost:8010/Ws_Account?wsdl --outDir=./src/services/wsdl",
|
|
42
|
+
"wsdl-codesign": "node ./lib-cjs/index.js --url=http://localhost:8010/ws_codesign?wsdl --outDir=./src/services/wsdl",
|
|
43
|
+
"wsdl-dfu": "node ./lib-cjs/index.js --url=http://localhost:8010/WsDfu?wsdl --outDir=./src/services/wsdl",
|
|
44
|
+
"wsdl-dfuxref": "node ./lib-cjs/index.js --url=http://localhost:8010/WsDFUXRef?wsdl --outDir=./src/services/wsdl",
|
|
45
|
+
"wsdl-logaccess": "node ./lib-cjs/index.js --url=http://localhost:8010/Ws_logaccess?wsdl --outDir=./src/services/wsdl",
|
|
46
|
+
"wsdl-machine": "node ./lib-cjs/index.js --url=http://localhost:8010/ws_machine?wsdl --outDir=./src/services/wsdl",
|
|
47
|
+
"wsdl-smc": "node ./lib-cjs/index.js --url=http://localhost:8010/WsSMC?wsdl --outDir=./src/services/wsdl",
|
|
48
|
+
"wsdl-store": "node ./lib-cjs/index.js --url=http://localhost:8010/WsStore?wsdl --outDir=./src/services/wsdl",
|
|
49
|
+
"wsdl-topology": "node ./lib-cjs/index.js --url=http://localhost:8010/WsTopology?wsdl --outDir=./src/services/wsdl",
|
|
50
|
+
"wsdl-workunits": "node ./lib-cjs/index.js --url=http://localhost:8010/WsWorkunits?wsdl --outDir=./src/services/wsdl",
|
|
51
|
+
"wsdl": "npm-run-all --serial compile-util --parallel wsdl-account wsdl-codesign wsdl-dfu wsdl-dfuxref wsdl-machine wsdl-smc wsdl-store wsdl-topology wsdl-workunits"
|
|
39
52
|
},
|
|
40
53
|
"dependencies": {
|
|
41
|
-
"@hpcc-js/ddl-shim": "^2.
|
|
42
|
-
"@hpcc-js/util": "^2.
|
|
43
|
-
"@xmldom/xmldom": "0.
|
|
54
|
+
"@hpcc-js/ddl-shim": "^2.19.0",
|
|
55
|
+
"@hpcc-js/util": "^2.46.1",
|
|
56
|
+
"@xmldom/xmldom": "0.8.1",
|
|
44
57
|
"abort-controller": "3.0.0",
|
|
45
58
|
"node-fetch": "2.6.7",
|
|
46
|
-
"safe-buffer": "5.1
|
|
47
|
-
"tmp": "0.
|
|
59
|
+
"safe-buffer": "5.2.1",
|
|
60
|
+
"tmp": "0.2.1"
|
|
48
61
|
},
|
|
49
62
|
"devDependencies": {
|
|
50
|
-
"@hpcc-js/bundle": "^2.
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@rollup/plugin-node-resolve": "8.0.0",
|
|
54
|
-
"@types/chai": "4.1.7",
|
|
55
|
-
"@types/d3-request": "1.0.2",
|
|
56
|
-
"@types/d3-time-format": "2.1.1",
|
|
63
|
+
"@hpcc-js/bundle": "^2.11.1",
|
|
64
|
+
"@types/d3-request": "1.0.6",
|
|
65
|
+
"@types/d3-time-format": "2.3.1",
|
|
57
66
|
"@types/node": "^10",
|
|
58
|
-
"@types/request": "0.0.
|
|
67
|
+
"@types/request": "0.0.47",
|
|
59
68
|
"@types/xmldom": "0.1.31",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "4.31.0",
|
|
61
|
-
"@typescript-eslint/parser": "4.31.0",
|
|
62
|
-
"chai": "4.2.0",
|
|
63
69
|
"d3-array": "^1",
|
|
64
70
|
"d3-time-format": "^2",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"mocha": "5.2.0",
|
|
69
|
-
"npm-run-all": "4.1.5",
|
|
70
|
-
"rimraf": "2.6.3",
|
|
71
|
-
"rollup": "2.10.7",
|
|
72
|
-
"rollup-plugin-postcss": "3.1.1",
|
|
73
|
-
"rollup-plugin-sourcemaps": "0.6.2",
|
|
74
|
-
"terser": "4.0.0",
|
|
75
|
-
"tslib": "2.3.0",
|
|
76
|
-
"typedoc": "0.14.2",
|
|
77
|
-
"typescript": "4.3.4",
|
|
78
|
-
"whatwg-fetch": "3.4.1"
|
|
71
|
+
"soap": "0.43.0",
|
|
72
|
+
"tslib": "2.3.1",
|
|
73
|
+
"whatwg-fetch": "3.6.2"
|
|
79
74
|
},
|
|
80
75
|
"repository": {
|
|
81
76
|
"type": "git",
|
|
@@ -88,5 +83,5 @@
|
|
|
88
83
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
89
84
|
},
|
|
90
85
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
91
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "cd0029695af339b4f316099b57ee0ada54e74910"
|
|
92
87
|
}
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/comms";
|
|
2
|
-
export const PKG_VERSION = "2.
|
|
3
|
-
export const BUILD_VERSION = "2.
|
|
2
|
+
export const PKG_VERSION = "2.73.4";
|
|
3
|
+
export const BUILD_VERSION = "2.102.4";
|
package/src/ecl/machine.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cache, StateObject } from "@hpcc-js/util";
|
|
2
2
|
import { IConnection, IOptions } from "../connection";
|
|
3
|
-
import {
|
|
3
|
+
import { WsMachine, MachineService } from "../services/wsMachine";
|
|
4
4
|
|
|
5
5
|
export class MachineCache extends Cache<{ Address: string }, Machine> {
|
|
6
6
|
constructor() {
|
|
@@ -11,7 +11,7 @@ export class MachineCache extends Cache<{ Address: string }, Machine> {
|
|
|
11
11
|
}
|
|
12
12
|
const _machines = new MachineCache();
|
|
13
13
|
|
|
14
|
-
export interface MachineInfoEx extends
|
|
14
|
+
export interface MachineInfoEx extends WsMachine.MachineInfoEx {
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export class Machine extends StateObject<MachineInfoEx, MachineInfoEx> implements MachineInfoEx {
|
|
@@ -33,14 +33,16 @@ export class Machine extends StateObject<MachineInfoEx, MachineInfoEx> implement
|
|
|
33
33
|
get RoxieStateDetails(): string { return this.get("RoxieStateDetails"); }
|
|
34
34
|
get OS(): number { return this.get("OS"); }
|
|
35
35
|
get ProcessNumber(): number { return this.get("ProcessNumber"); }
|
|
36
|
-
get
|
|
37
|
-
get
|
|
38
|
-
get
|
|
39
|
-
get
|
|
40
|
-
get
|
|
41
|
-
get
|
|
36
|
+
get Channels(): number { return this.get("Channels"); }
|
|
37
|
+
get Processors(): WsMachine.Processors { return this.get("Processors"); }
|
|
38
|
+
get Storage(): WsMachine.Storage { return this.get("Storage"); }
|
|
39
|
+
get Running(): WsMachine.Running { return this.get("Running"); }
|
|
40
|
+
get PhysicalMemory(): WsMachine.PhysicalMemory { return this.get("PhysicalMemory"); }
|
|
41
|
+
get VirtualMemory(): WsMachine.VirtualMemory { return this.get("VirtualMemory"); }
|
|
42
|
+
get ComponentInfo(): WsMachine.ComponentInfo { return this.get("ComponentInfo"); }
|
|
43
|
+
get Exception(): string { return this.get("Exception"); }
|
|
42
44
|
|
|
43
|
-
static attach(optsConnection: IOptions | IConnection | MachineService, address: string, state?:
|
|
45
|
+
static attach(optsConnection: IOptions | IConnection | MachineService, address: string, state?: WsMachine.MachineInfoEx): Machine {
|
|
44
46
|
const retVal: Machine = _machines.get({ Address: address }, () => {
|
|
45
47
|
return new Machine(optsConnection);
|
|
46
48
|
});
|
package/src/ecl/targetCluster.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Cache, StateObject } from "@hpcc-js/util";
|
|
2
2
|
import { IConnection, IOptions } from "../connection";
|
|
3
|
-
import {
|
|
3
|
+
import { WsMachine, WsMachineEx, MachineService } from "../services/wsMachine";
|
|
4
4
|
import { TopologyService, TpListTargetClusters, TpTargetClusterQuery } from "../services/wsTopology";
|
|
5
5
|
import { Machine } from "./machine";
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ export class TargetClusterCache extends Cache<{ BaseUrl: string, Name: string },
|
|
|
14
14
|
const _targetCluster = new TargetClusterCache();
|
|
15
15
|
|
|
16
16
|
export interface TpTargetClusterEx {
|
|
17
|
-
MachineInfoEx:
|
|
17
|
+
MachineInfoEx: WsMachine.MachineInfoEx[];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export type UTargetClusterState = TpTargetClusterQuery.TpTargetCluster & TpListTargetClusters.TpClusterNameType & TpTargetClusterEx;
|
|
@@ -33,7 +33,7 @@ export class TargetCluster extends StateObject<UTargetClusterState, ITargetClust
|
|
|
33
33
|
get TpEclServers(): TpTargetClusterQuery.TpEclServers { return this.get("TpEclServers"); }
|
|
34
34
|
get TpEclAgents(): TpTargetClusterQuery.TpEclAgents { return this.get("TpEclAgents"); }
|
|
35
35
|
get TpEclSchedulers(): TpTargetClusterQuery.TpEclSchedulers { return this.get("TpEclSchedulers"); }
|
|
36
|
-
get MachineInfoEx():
|
|
36
|
+
get MachineInfoEx(): WsMachine.MachineInfoEx[] { return this.get("MachineInfoEx", []); }
|
|
37
37
|
get CMachineInfoEx(): Machine[] {
|
|
38
38
|
return this.MachineInfoEx.map(machineInfoEx => Machine.attach(this.machineConnection, machineInfoEx.Address, machineInfoEx));
|
|
39
39
|
}
|
|
@@ -64,14 +64,14 @@ export class TargetCluster extends StateObject<UTargetClusterState, ITargetClust
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
fetchMachines(request:
|
|
67
|
+
fetchMachines(request: WsMachine.GetTargetClusterInfoRequest = {}): Promise<Machine[]> {
|
|
68
68
|
return this.machineConnection.GetTargetClusterInfo({
|
|
69
69
|
TargetClusters: {
|
|
70
70
|
Item: [`${this.Type}:${this.Name}`]
|
|
71
71
|
},
|
|
72
72
|
...request
|
|
73
73
|
}).then(response => {
|
|
74
|
-
const retVal:
|
|
74
|
+
const retVal: WsMachine.MachineInfoEx[] = [];
|
|
75
75
|
for (const machineInfo of response.TargetClusterInfoList.TargetClusterInfo) {
|
|
76
76
|
for (const machineInfoEx of machineInfo.Processes.MachineInfoEx) {
|
|
77
77
|
retVal.push(machineInfoEx);
|
|
@@ -102,8 +102,8 @@ export class TargetCluster extends StateObject<UTargetClusterState, ITargetClust
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
fetchUsage(): Promise<
|
|
106
|
-
return this.machineConnection.GetTargetClusterUsageEx([this.Name]);
|
|
105
|
+
fetchUsage(): Promise<WsMachineEx.TargetClusterUsage[]> {
|
|
106
|
+
return this.machineConnection.GetTargetClusterUsageEx({ TargetClusters: { Item: [this.Name] } });
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
package/src/ecl/topology.ts
CHANGED
|
@@ -93,7 +93,7 @@ export class Topology extends StateObject<TopologyStateEx, TopologyStateEx> impl
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
protected _prevRefresh
|
|
96
|
+
protected _prevRefresh;
|
|
97
97
|
refresh(force: boolean = false): Promise<this> {
|
|
98
98
|
if (!this._prevRefresh || force) {
|
|
99
99
|
this._prevRefresh = Promise.all([this.fetchTargetClusters(), this.fetchLogicalClusters(), this.fetchServices()]).then(() => {
|
package/src/ecl/workunit.ts
CHANGED
|
@@ -550,6 +550,9 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
|
|
|
550
550
|
case "cnt":
|
|
551
551
|
props[scopeProperty.Name] = +scopeProperty.RawValue;
|
|
552
552
|
break;
|
|
553
|
+
case "cost":
|
|
554
|
+
props[scopeProperty.Name] = +scopeProperty.RawValue / 1000000;
|
|
555
|
+
break;
|
|
553
556
|
case "cpu":
|
|
554
557
|
case "skw":
|
|
555
558
|
case "node":
|
package/src/index-common.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from "./__package__";
|
|
2
2
|
|
|
3
|
+
export * from "./services/wsAccess";
|
|
3
4
|
export * from "./services/wsAccount";
|
|
4
5
|
export * from "./services/wsCodesign";
|
|
5
6
|
export * from "./services/wsDFU";
|
|
6
7
|
export * from "./services/wsDFUXRef";
|
|
7
8
|
export * from "./services/wsEcl";
|
|
9
|
+
export * from "./services/wsLogaccess";
|
|
8
10
|
export * from "./services/wsMachine";
|
|
11
|
+
export * from "./services/wsResources";
|
|
9
12
|
export * from "./services/wsSMC";
|
|
10
13
|
export * from "./services/wsStore";
|
|
11
14
|
export * from "./services/wsTopology";
|
package/src/services/wsDFU.ts
CHANGED
|
@@ -1555,7 +1555,8 @@ export namespace WsDfu {
|
|
|
1555
1555
|
KeyType: string;
|
|
1556
1556
|
NumOfSubfiles: number;
|
|
1557
1557
|
Accessed: string;
|
|
1558
|
-
|
|
1558
|
+
AtRestCost?: number;
|
|
1559
|
+
AccessCost?: number;
|
|
1559
1560
|
}
|
|
1560
1561
|
|
|
1561
1562
|
export interface Superfiles {
|
|
@@ -2821,7 +2822,7 @@ export namespace WsDfu {
|
|
|
2821
2822
|
export class DFUService extends Service {
|
|
2822
2823
|
|
|
2823
2824
|
constructor(optsConnection: IOptions | IConnection) {
|
|
2824
|
-
super(optsConnection, "WsDfu", "1.
|
|
2825
|
+
super(optsConnection, "WsDfu", "1.62");
|
|
2825
2826
|
}
|
|
2826
2827
|
|
|
2827
2828
|
DFUQuery(request: WsDfu.DFUQueryRequest): Promise<WsDfu.DFUQueryResponse> {
|
|
@@ -1,327 +1,51 @@
|
|
|
1
1
|
import { exists } from "@hpcc-js/util";
|
|
2
2
|
import { max as d3Max, mean as d3Mean } from "d3-array";
|
|
3
|
-
import { IConnection, IOptions } from "../connection";
|
|
4
|
-
import { ESPConnection } from "../espConnection";
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
Response structures generated via:
|
|
8
|
-
* http://192.168.3.22:8010/ws_machine/GetTargetClusterInfo?respjson_
|
|
9
|
-
* http://json2ts.com/
|
|
10
|
-
*/
|
|
4
|
+
import { MachineServiceBase, WsMachine } from "./wsdl/ws_machine/v1.17/ws_machine";
|
|
11
5
|
|
|
12
|
-
export
|
|
6
|
+
export {
|
|
7
|
+
WsMachine
|
|
8
|
+
};
|
|
13
9
|
|
|
14
|
-
|
|
15
|
-
Item: string[];
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface Request {
|
|
19
|
-
TargetClusters?: TargetClusters;
|
|
20
|
-
AddProcessesToFilter?: string;
|
|
21
|
-
ApplyProcessFilter?: boolean;
|
|
22
|
-
GetProcessorInfo?: boolean;
|
|
23
|
-
GetStorageInfo?: boolean;
|
|
24
|
-
LocalFileSystemsOnly?: boolean;
|
|
25
|
-
GetSoftwareInfo?: boolean;
|
|
26
|
-
MemThreshold?: number;
|
|
27
|
-
DiskThreshold?: number;
|
|
28
|
-
CpuThreshold?: number;
|
|
29
|
-
AutoRefresh?: number;
|
|
30
|
-
MemThresholdType?: string;
|
|
31
|
-
DiskThresholdType?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface Exception {
|
|
35
|
-
Code: string;
|
|
36
|
-
Audience: string;
|
|
37
|
-
Source: string;
|
|
38
|
-
Message: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface Exceptions {
|
|
42
|
-
Source: string;
|
|
43
|
-
Exception: Exception[];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export interface Columns {
|
|
47
|
-
Item: string[];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface Addresses {
|
|
51
|
-
Item: string[];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface RequestInfo {
|
|
55
|
-
Addresses: Addresses;
|
|
56
|
-
ClusterType: string;
|
|
57
|
-
Cluster: string;
|
|
58
|
-
OldIP: string;
|
|
59
|
-
Path: string;
|
|
60
|
-
AddProcessesToFilter: string;
|
|
61
|
-
ApplyProcessFilter: boolean;
|
|
62
|
-
GetProcessorInfo: boolean;
|
|
63
|
-
GetStorageInfo: boolean;
|
|
64
|
-
LocalFileSystemsOnly: boolean;
|
|
65
|
-
GetSoftwareInfo: boolean;
|
|
66
|
-
MemThreshold: number;
|
|
67
|
-
DiskThreshold: number;
|
|
68
|
-
CpuThreshold: number;
|
|
69
|
-
AutoRefresh: number;
|
|
70
|
-
MemThresholdType: string;
|
|
71
|
-
DiskThresholdType: string;
|
|
72
|
-
SecurityString: string;
|
|
73
|
-
UserName: string;
|
|
74
|
-
Password: string;
|
|
75
|
-
EnableSNMP: boolean;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface ProcessorInfo {
|
|
79
|
-
Type: string;
|
|
80
|
-
Load: number;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface Processors {
|
|
84
|
-
ProcessorInfo: ProcessorInfo[];
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface StorageInfo {
|
|
88
|
-
Description: string;
|
|
89
|
-
Type: string;
|
|
90
|
-
Available: number;
|
|
91
|
-
PercentAvail: number;
|
|
92
|
-
Total: number;
|
|
93
|
-
Failures: number;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface Storage {
|
|
97
|
-
StorageInfo: StorageInfo[];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface SWRunInfo {
|
|
101
|
-
Name: string;
|
|
102
|
-
Instances: number;
|
|
103
|
-
State: number;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface Running {
|
|
107
|
-
SWRunInfo: SWRunInfo[];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export interface PhysicalMemory {
|
|
111
|
-
Description: string;
|
|
112
|
-
Type: string;
|
|
113
|
-
Available: number;
|
|
114
|
-
PercentAvail: number;
|
|
115
|
-
Total: number;
|
|
116
|
-
Failures: number;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface VirtualMemory {
|
|
120
|
-
Description: string;
|
|
121
|
-
Type: string;
|
|
122
|
-
Available: number;
|
|
123
|
-
PercentAvail: number;
|
|
124
|
-
Total: number;
|
|
125
|
-
Failures: number;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface ComponentInfo {
|
|
129
|
-
Condition: number;
|
|
130
|
-
State: number;
|
|
131
|
-
UpTime: string;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface MachineInfoEx {
|
|
135
|
-
Address: string;
|
|
136
|
-
ConfigAddress: string;
|
|
137
|
-
Name: string;
|
|
138
|
-
ProcessType: string;
|
|
139
|
-
DisplayType: string;
|
|
140
|
-
Description: string;
|
|
141
|
-
AgentVersion: string;
|
|
142
|
-
Contact: string;
|
|
143
|
-
Location: string;
|
|
144
|
-
UpTime: string;
|
|
145
|
-
ComponentName: string;
|
|
146
|
-
ComponentPath: string;
|
|
147
|
-
RoxieState: string;
|
|
148
|
-
RoxieStateDetails: string;
|
|
149
|
-
OS: number;
|
|
150
|
-
ProcessNumber: number;
|
|
151
|
-
Processors: Processors;
|
|
152
|
-
Storage: Storage;
|
|
153
|
-
Running: Running;
|
|
154
|
-
PhysicalMemory: PhysicalMemory;
|
|
155
|
-
VirtualMemory: VirtualMemory;
|
|
156
|
-
ComponentInfo: ComponentInfo;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface Processes {
|
|
160
|
-
MachineInfoEx: MachineInfoEx[];
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface TargetClusterInfo {
|
|
164
|
-
Name: string;
|
|
165
|
-
Type: string;
|
|
166
|
-
Processes: Processes;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface TargetClusterInfoList {
|
|
170
|
-
TargetClusterInfo: TargetClusterInfo[];
|
|
171
|
-
}
|
|
10
|
+
export namespace WsMachineEx {
|
|
172
11
|
|
|
173
|
-
export interface
|
|
174
|
-
Exceptions: Exceptions;
|
|
175
|
-
Columns: Columns;
|
|
176
|
-
RequestInfo: RequestInfo;
|
|
177
|
-
TargetClusterInfoList: TargetClusterInfoList;
|
|
178
|
-
TimeStamp: string;
|
|
179
|
-
AcceptLanguage: string;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export namespace GetTargetClusterUsage {
|
|
184
|
-
|
|
185
|
-
export interface TargetClusters {
|
|
186
|
-
Item: string[];
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface Request {
|
|
190
|
-
TargetClusters?: TargetClusters;
|
|
191
|
-
BypassCachedResult: boolean;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface Exception {
|
|
195
|
-
Code: string;
|
|
196
|
-
Audience: string;
|
|
197
|
-
Source: string;
|
|
198
|
-
Message: string;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export interface Exceptions {
|
|
202
|
-
Source: string;
|
|
203
|
-
Exception: Exception[];
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface DiskUsage {
|
|
207
|
-
Name: string;
|
|
208
|
-
Path: string;
|
|
209
|
-
Description: string;
|
|
210
|
-
InUse: number;
|
|
211
|
-
Available: number;
|
|
212
|
-
PercentAvailable: number;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface DiskUsages {
|
|
216
|
-
DiskUsage: DiskUsage[];
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export interface MachineUsage {
|
|
220
|
-
Name: string;
|
|
221
|
-
NetAddress: string;
|
|
222
|
-
Description: string;
|
|
223
|
-
DiskUsages: DiskUsages;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export interface MachineUsages {
|
|
227
|
-
MachineUsage: MachineUsage[];
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
export interface ComponentUsage {
|
|
231
|
-
Type: string;
|
|
232
|
-
Name: string;
|
|
233
|
-
Description: string;
|
|
234
|
-
MachineUsages: MachineUsages;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface ComponentUsages {
|
|
238
|
-
ComponentUsage: ComponentUsage[];
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
export interface TargetClusterUsage {
|
|
242
|
-
Name: string;
|
|
243
|
-
Description: string;
|
|
244
|
-
ComponentUsages: ComponentUsages;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface TargetClusterUsages {
|
|
248
|
-
TargetClusterUsage: TargetClusterUsage[];
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export interface Response {
|
|
252
|
-
Exceptions: Exceptions;
|
|
253
|
-
TargetClusterUsages: TargetClusterUsages;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export namespace GetTargetClusterUsageEx {
|
|
258
|
-
|
|
259
|
-
export interface DiskUsage {
|
|
260
|
-
Name: string;
|
|
261
|
-
Path: string;
|
|
262
|
-
Description: string;
|
|
263
|
-
InUse: number;
|
|
264
|
-
Available: number;
|
|
12
|
+
export interface DiskUsage extends WsMachine.DiskUsage {
|
|
265
13
|
Total: number;
|
|
266
|
-
PercentAvailable: number;
|
|
267
14
|
PercentUsed: number;
|
|
268
15
|
}
|
|
269
16
|
|
|
270
|
-
export interface MachineUsage {
|
|
271
|
-
Name: string;
|
|
272
|
-
NetAddress: string;
|
|
273
|
-
Description: string;
|
|
17
|
+
export interface MachineUsage extends Omit<WsMachine.MachineUsage, "DiskUsages"> {
|
|
274
18
|
DiskUsages: DiskUsage[];
|
|
275
19
|
mean: number;
|
|
276
20
|
max: number;
|
|
277
21
|
}
|
|
278
22
|
|
|
279
|
-
export interface ComponentUsage {
|
|
280
|
-
Type: string;
|
|
281
|
-
Name: string;
|
|
282
|
-
Description: string;
|
|
23
|
+
export interface ComponentUsage extends Omit<WsMachine.ComponentUsage, "MachineUsages"> {
|
|
283
24
|
MachineUsages: MachineUsage[];
|
|
284
25
|
MachineUsagesDescription: string;
|
|
285
26
|
mean: number;
|
|
286
27
|
max: number;
|
|
287
28
|
}
|
|
288
29
|
|
|
289
|
-
export interface TargetClusterUsage {
|
|
290
|
-
Name: string;
|
|
291
|
-
Description: string;
|
|
30
|
+
export interface TargetClusterUsage extends Omit<WsMachine.TargetClusterUsage, "ComponentUsages"> {
|
|
292
31
|
ComponentUsages: ComponentUsage[];
|
|
293
32
|
ComponentUsagesDescription: string;
|
|
294
33
|
mean: number;
|
|
295
34
|
max: number;
|
|
296
35
|
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
export class MachineService {
|
|
300
|
-
private _connection: ESPConnection;
|
|
301
36
|
|
|
302
|
-
|
|
303
|
-
this._connection = new ESPConnection(optsConnection, "ws_machine", "1.13");
|
|
304
|
-
}
|
|
37
|
+
}
|
|
305
38
|
|
|
306
|
-
|
|
307
|
-
return this._connection.send("GetTargetClusterInfo", request);
|
|
308
|
-
}
|
|
39
|
+
export class MachineService extends MachineServiceBase {
|
|
309
40
|
|
|
310
|
-
|
|
311
|
-
return this._connection.send("GetTargetClusterUsage", {
|
|
312
|
-
TargetClusters: targetClusters ? { Item: targetClusters } : {},
|
|
313
|
-
BypassCachedResult: bypassCachedResult
|
|
314
|
-
}).then(response => {
|
|
41
|
+
GetTargetClusterUsageEx(request: WsMachine.GetTargetClusterUsageRequest): Promise<WsMachineEx.TargetClusterUsage[]> {
|
|
42
|
+
return this._connection.send("GetTargetClusterUsage", request).then(response => {
|
|
315
43
|
return exists("TargetClusterUsages.TargetClusterUsage", response) ? response.TargetClusterUsages.TargetClusterUsage : [];
|
|
316
|
-
})
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
GetTargetClusterUsageEx(targetClusters?: string[], bypassCachedResult: boolean = false): Promise<GetTargetClusterUsageEx.TargetClusterUsage[]> {
|
|
320
|
-
return this.GetTargetClusterUsage(targetClusters, bypassCachedResult).then(response => {
|
|
44
|
+
}).then(response => {
|
|
321
45
|
return response.filter(tcu => !!tcu.ComponentUsages).map(tcu => {
|
|
322
|
-
const ComponentUsages:
|
|
323
|
-
const MachineUsages = (cu.MachineUsages && cu.MachineUsages.MachineUsage ? cu.MachineUsages.MachineUsage : []).map(mu => {
|
|
324
|
-
const DiskUsages:
|
|
46
|
+
const ComponentUsages: WsMachineEx.ComponentUsage[] = tcu.ComponentUsages.ComponentUsage.map(cu => {
|
|
47
|
+
const MachineUsages: WsMachineEx.MachineUsage[] = (cu.MachineUsages && cu.MachineUsages.MachineUsage ? cu.MachineUsages.MachineUsage : []).map(mu => {
|
|
48
|
+
const DiskUsages: WsMachineEx.DiskUsage[] = mu.DiskUsages && mu.DiskUsages.DiskUsage ? mu.DiskUsages.DiskUsage.map(du => {
|
|
325
49
|
return {
|
|
326
50
|
...du,
|
|
327
51
|
Total: du.InUse + du.Available,
|