@hpcc-js/comms 2.86.0 → 2.87.0
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 +207 -36
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +208 -36
- 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 +206 -35
- 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.map +1 -1
- package/lib-es6/clienttools/eclcc.js.map +1 -1
- package/lib-es6/connection.js.map +1 -1
- package/lib-es6/ecl/activity.js.map +1 -1
- package/lib-es6/ecl/dfuWorkunit.js.map +1 -1
- package/lib-es6/ecl/graph.js.map +1 -1
- package/lib-es6/ecl/logicalFile.js.map +1 -1
- package/lib-es6/ecl/machine.js.map +1 -1
- package/lib-es6/ecl/query.js.map +1 -1
- package/lib-es6/ecl/resource.js.map +1 -1
- package/lib-es6/ecl/result.js.map +1 -1
- package/lib-es6/ecl/scope.js.map +1 -1
- package/lib-es6/ecl/sourceFile.js.map +1 -1
- package/lib-es6/ecl/store.js.map +1 -1
- package/lib-es6/ecl/targetCluster.js.map +1 -1
- package/lib-es6/ecl/timer.js.map +1 -1
- package/lib-es6/ecl/topology.js.map +1 -1
- package/lib-es6/ecl/workunit.js +106 -3
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/ecl/xsdParser.js.map +1 -1
- package/lib-es6/espConnection.js.map +1 -1
- package/lib-es6/index.node.js.map +1 -1
- package/lib-es6/services/wsAccount.js.map +1 -1
- package/lib-es6/services/wsCloud.js.map +1 -1
- package/lib-es6/services/wsDFUXRef.js.map +1 -1
- package/lib-es6/services/wsEcl.js.map +1 -1
- package/lib-es6/services/wsLogaccess.js.map +1 -1
- package/lib-es6/services/wsSMC.js +9 -34
- package/lib-es6/services/wsSMC.js.map +1 -1
- package/lib-es6/services/wsStore.js.map +1 -1
- package/lib-es6/services/wsTopology.js.map +1 -1
- package/lib-es6/services/wsWorkunits.js.map +1 -1
- package/lib-es6/services/wsdl/FileSpray/v1.23/FileSpray.js.map +1 -1
- package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js.map +1 -1
- package/lib-es6/services/wsdl/WsCloud/v1/WsCloud.js.map +1 -1
- package/lib-es6/services/wsdl/WsDFUXRef/v1.02/WsDFUXRef.js.map +1 -1
- package/lib-es6/services/wsdl/WsDali/v1.04/WsDali.js.map +1 -1
- package/lib-es6/services/wsdl/WsDfu/v1.62/WsDfu.js.map +1 -1
- package/lib-es6/services/wsdl/WsDfu/v1.63/WsDfu.js.map +1 -1
- package/lib-es6/services/wsdl/WsDfu/v1.65/WsDfu.js.map +1 -1
- package/lib-es6/services/wsdl/WsFileIO/v1.01/WsFileIO.js.map +1 -1
- package/lib-es6/services/wsdl/WsPackageProcess/v1.04/WsPackageProcess.js.map +1 -1
- package/lib-es6/services/wsdl/WsResources/v1.01/WsResources.js.map +1 -1
- package/lib-es6/services/wsdl/WsSMC/v1.24/WsSMC.js.map +1 -1
- package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js +99 -0
- package/lib-es6/services/wsdl/WsSMC/v1.27/WsSMC.js.map +1 -0
- package/lib-es6/services/wsdl/WsTopology/v1.31/WsTopology.js.map +1 -1
- package/lib-es6/services/wsdl/WsTopology/v1.32/WsTopology.js.map +1 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.88/WsWorkunits.js.map +1 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.94/WsWorkunits.js.map +1 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.95/WsWorkunits.js.map +1 -1
- package/lib-es6/services/wsdl/ws_access/v1.16/ws_access.js.map +1 -1
- package/lib-es6/services/wsdl/ws_access/v1.17/ws_access.js.map +1 -1
- package/lib-es6/services/wsdl/ws_account/v1.05/ws_account.js.map +1 -1
- package/lib-es6/services/wsdl/ws_codesign/v1.1/ws_codesign.js.map +1 -1
- package/lib-es6/services/wsdl/ws_elk/v1/ws_elk.js.map +1 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1/ws_logaccess.js.map +1 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.02/ws_logaccess.js.map +1 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.03/ws_logaccess.js.map +1 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.04/ws_logaccess.js.map +1 -1
- package/lib-es6/services/wsdl/ws_logaccess/v1.05/ws_logaccess.js.map +1 -1
- package/lib-es6/services/wsdl/ws_machine/v1.17/ws_machine.js.map +1 -1
- package/lib-es6/services/wsdl/wsstore/v1.02/wsstore.js.map +1 -1
- package/package.json +7 -7
- package/src/__package__.ts +2 -2
- package/src/ecl/activity.ts +2 -2
- package/src/ecl/workunit.ts +148 -6
- package/src/services/wsSMC.ts +8 -604
- package/src/services/wsdl/WsSMC/v1.27/WsSMC.ts +670 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/workunit.d.ts +17 -1
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/services/wsSMC.d.ts +5 -489
- package/types/services/wsSMC.d.ts.map +1 -1
- package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +519 -0
- package/types/services/wsdl/WsSMC/v1.27/WsSMC.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/workunit.d.ts +17 -1
- package/types-3.4/services/wsSMC.d.ts +5 -489
- package/types-3.4/services/wsdl/WsSMC/v1.27/WsSMC.d.ts +519 -0
package/src/services/wsSMC.ts
CHANGED
|
@@ -1,578 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SMCServiceBase, WsSMC } from "./wsdl/WsSMC/v1.27/WsSMC";
|
|
2
|
+
import { IOptions } from "../connection";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* http://json2ts.com/
|
|
8
|
-
*/
|
|
4
|
+
export {
|
|
5
|
+
WsSMC
|
|
6
|
+
};
|
|
9
7
|
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
export interface Activity {
|
|
13
|
-
ChatURL: string;
|
|
14
|
-
BannerContent: string;
|
|
15
|
-
BannerColor: string;
|
|
16
|
-
BannerSize: string;
|
|
17
|
-
BannerScroll: string;
|
|
18
|
-
BannerAction: number;
|
|
19
|
-
EnableChatURL: boolean;
|
|
20
|
-
FromSubmitBtn: boolean;
|
|
21
|
-
SortBy: string;
|
|
22
|
-
Descending: boolean;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface BrowseResources {
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ClearQueue {
|
|
29
|
-
Cluster: string;
|
|
30
|
-
QueueName: string;
|
|
31
|
-
Comment: string;
|
|
32
|
-
ServerType: string;
|
|
33
|
-
NetworkAddress: string;
|
|
34
|
-
Port: number;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface GetBuildInfo {
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface GetStatusServerInfo {
|
|
41
|
-
ServerName: string;
|
|
42
|
-
ServerType: string;
|
|
43
|
-
NetworkAddress: string;
|
|
44
|
-
Port: number;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface GetThorQueueAvailability {
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface Index {
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface LockQuery {
|
|
54
|
-
EPIP: string;
|
|
55
|
-
XPath: string;
|
|
56
|
-
DurationMSLow: number;
|
|
57
|
-
DurationMSHigh: number;
|
|
58
|
-
TimeLockedLow: string;
|
|
59
|
-
TimeLockedHigh: string;
|
|
60
|
-
Mode: string;
|
|
61
|
-
AllFileLocks: boolean;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface MoveJobBack {
|
|
65
|
-
ClusterType: number;
|
|
66
|
-
Cluster: string;
|
|
67
|
-
QueueName: string;
|
|
68
|
-
Wuid: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface MoveJobDown {
|
|
72
|
-
ClusterType: number;
|
|
73
|
-
Cluster: string;
|
|
74
|
-
QueueName: string;
|
|
75
|
-
Wuid: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface MoveJobFront {
|
|
79
|
-
ClusterType: number;
|
|
80
|
-
Cluster: string;
|
|
81
|
-
QueueName: string;
|
|
82
|
-
Wuid: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface MoveJobUp {
|
|
86
|
-
ClusterType: number;
|
|
87
|
-
Cluster: string;
|
|
88
|
-
QueueName: string;
|
|
89
|
-
Wuid: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface NotInCommunityEdition {
|
|
93
|
-
EEPortal: string;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export interface PauseQueue {
|
|
97
|
-
Cluster: string;
|
|
98
|
-
QueueName: string;
|
|
99
|
-
Comment: string;
|
|
100
|
-
ServerType: string;
|
|
101
|
-
NetworkAddress: string;
|
|
102
|
-
Port: number;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface Ping {
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface RemoveJob {
|
|
109
|
-
ClusterType: number;
|
|
110
|
-
Cluster: string;
|
|
111
|
-
QueueName: string;
|
|
112
|
-
Wuid: string;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface ResumeQueue {
|
|
116
|
-
Cluster: string;
|
|
117
|
-
QueueName: string;
|
|
118
|
-
Comment: string;
|
|
119
|
-
ServerType: string;
|
|
120
|
-
NetworkAddress: string;
|
|
121
|
-
Port: number;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface RoxieControlCmd {
|
|
125
|
-
ProcessCluster: string;
|
|
126
|
-
TargetCluster: string;
|
|
127
|
-
Command: string;
|
|
128
|
-
Wait: number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface SetBanner {
|
|
132
|
-
ChatURL: string;
|
|
133
|
-
BannerContent: string;
|
|
134
|
-
BannerColor: string;
|
|
135
|
-
BannerSize: string;
|
|
136
|
-
BannerScroll: string;
|
|
137
|
-
BannerAction: number;
|
|
138
|
-
EnableChatURL: boolean;
|
|
139
|
-
FromSubmitBtn: boolean;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface SMCJob {
|
|
143
|
-
Wuid: string;
|
|
144
|
-
QueueName: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface SMCJobs {
|
|
148
|
-
SMCJob: SMCJob[];
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface SetJobPriority {
|
|
152
|
-
QueueName: string;
|
|
153
|
-
Wuid: string;
|
|
154
|
-
Priority: string;
|
|
155
|
-
SMCJobs: SMCJobs;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface StopQueue {
|
|
159
|
-
Cluster: string;
|
|
160
|
-
QueueName: string;
|
|
161
|
-
Comment: string;
|
|
162
|
-
ServerType: string;
|
|
163
|
-
NetworkAddress: string;
|
|
164
|
-
Port: number;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface Exception {
|
|
168
|
-
Code: string;
|
|
169
|
-
Audience: string;
|
|
170
|
-
Source: string;
|
|
171
|
-
Message: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface Exceptions {
|
|
175
|
-
Source: string;
|
|
176
|
-
Exception: Exception[];
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface TargetCluster {
|
|
180
|
-
ClusterName: string;
|
|
181
|
-
QueueName: string;
|
|
182
|
-
QueueStatus: string;
|
|
183
|
-
StatusDetails: string;
|
|
184
|
-
Warning: string;
|
|
185
|
-
ClusterType: number;
|
|
186
|
-
ClusterSize: number;
|
|
187
|
-
ClusterStatus: number;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export interface ThorClusterList {
|
|
191
|
-
TargetCluster: TargetCluster[];
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface TargetCluster2 {
|
|
195
|
-
ClusterName: string;
|
|
196
|
-
QueueName: string;
|
|
197
|
-
QueueStatus: string;
|
|
198
|
-
StatusDetails: string;
|
|
199
|
-
Warning: string;
|
|
200
|
-
ClusterType: number;
|
|
201
|
-
ClusterSize: number;
|
|
202
|
-
ClusterStatus: number;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export interface RoxieClusterList {
|
|
206
|
-
TargetCluster: TargetCluster2[];
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export interface TargetCluster3 {
|
|
210
|
-
ClusterName: string;
|
|
211
|
-
QueueName: string;
|
|
212
|
-
QueueStatus: string;
|
|
213
|
-
StatusDetails: string;
|
|
214
|
-
Warning: string;
|
|
215
|
-
ClusterType: number;
|
|
216
|
-
ClusterSize: number;
|
|
217
|
-
ClusterStatus: number;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
export interface HThorClusterList {
|
|
221
|
-
TargetCluster: TargetCluster3[];
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export interface DFUJob {
|
|
225
|
-
TimeStarted: string;
|
|
226
|
-
Done: number;
|
|
227
|
-
Total: number;
|
|
228
|
-
Command: string;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export interface DFUJobs {
|
|
232
|
-
DFUJob: DFUJob[];
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
export interface ActiveWorkunit {
|
|
236
|
-
Wuid: string;
|
|
237
|
-
State: string;
|
|
238
|
-
StateID: number;
|
|
239
|
-
Owner: string;
|
|
240
|
-
Jobname: string;
|
|
241
|
-
Server: string;
|
|
242
|
-
Instance: string;
|
|
243
|
-
Priority: string;
|
|
244
|
-
Extra: string;
|
|
245
|
-
GraphName: string;
|
|
246
|
-
Duration: string;
|
|
247
|
-
GID: string;
|
|
248
|
-
QueueName: string;
|
|
249
|
-
MemoryBlocked: number;
|
|
250
|
-
IsPausing: boolean;
|
|
251
|
-
Warning: string;
|
|
252
|
-
ClusterName: string;
|
|
253
|
-
ClusterType: string;
|
|
254
|
-
ClusterQueueName: string;
|
|
255
|
-
TargetClusterName: string;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface Running {
|
|
259
|
-
ActiveWorkunit: ActiveWorkunit[];
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export interface Queues {
|
|
263
|
-
ServerJobQueue: any[];
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface ServerJobQueue {
|
|
267
|
-
QueueName: string;
|
|
268
|
-
Queues: Queues;
|
|
269
|
-
ServerName: string;
|
|
270
|
-
ServerType: string;
|
|
271
|
-
QueueStatus: string;
|
|
272
|
-
StatusDetails: string;
|
|
273
|
-
NetworkAddress: string;
|
|
274
|
-
Port: number;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
export interface ServerJobQueues {
|
|
278
|
-
ServerJobQueue: ServerJobQueue[];
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export interface ActivityResponse {
|
|
282
|
-
Exceptions: Exceptions;
|
|
283
|
-
Build: string;
|
|
284
|
-
ThorClusterList: ThorClusterList;
|
|
285
|
-
RoxieClusterList: RoxieClusterList;
|
|
286
|
-
HThorClusterList: HThorClusterList;
|
|
287
|
-
DFUJobs: DFUJobs;
|
|
288
|
-
Running: Running;
|
|
289
|
-
BannerContent: string;
|
|
290
|
-
BannerColor: string;
|
|
291
|
-
BannerSize: string;
|
|
292
|
-
BannerScroll: string;
|
|
293
|
-
ChatURL: string;
|
|
294
|
-
ShowBanner: number;
|
|
295
|
-
ShowChatURL: number;
|
|
296
|
-
SortBy: string;
|
|
297
|
-
Descending: boolean;
|
|
298
|
-
SuperUser: boolean;
|
|
299
|
-
AccessRight: string;
|
|
300
|
-
ServerJobQueues: ServerJobQueues;
|
|
301
|
-
ActivityTime: string;
|
|
302
|
-
DaliDetached: boolean;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export interface HPCCResource {
|
|
306
|
-
Name: string;
|
|
307
|
-
Description: string;
|
|
308
|
-
FileName: string;
|
|
309
|
-
Version: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export interface HPCCResources {
|
|
313
|
-
HPCCResource: HPCCResource[];
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export interface HPCCResourceRepository {
|
|
317
|
-
Name: string;
|
|
318
|
-
Path: string;
|
|
319
|
-
HPCCResources: HPCCResources;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
export interface HPCCResourceRepositories {
|
|
323
|
-
HPCCResourceRepository: HPCCResourceRepository[];
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export interface BrowseResourcesResponse {
|
|
327
|
-
Exceptions: Exceptions;
|
|
328
|
-
PortalURL: string;
|
|
329
|
-
NetAddress: string;
|
|
330
|
-
OS: number;
|
|
331
|
-
UseResource: boolean;
|
|
332
|
-
HPCCResourceRepositories: HPCCResourceRepositories;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export interface TargetClusterInfo {
|
|
336
|
-
ClusterName: string;
|
|
337
|
-
QueueName: string;
|
|
338
|
-
QueueStatus: string;
|
|
339
|
-
StatusDetails: string;
|
|
340
|
-
Warning: string;
|
|
341
|
-
ClusterType: number;
|
|
342
|
-
ClusterSize: number;
|
|
343
|
-
ClusterStatus: number;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export interface Queues2 {
|
|
347
|
-
ServerJobQueue: any[];
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export interface ServerInfo {
|
|
351
|
-
QueueName: string;
|
|
352
|
-
Queues: Queues2;
|
|
353
|
-
ServerName: string;
|
|
354
|
-
ServerType: string;
|
|
355
|
-
QueueStatus: string;
|
|
356
|
-
StatusDetails: string;
|
|
357
|
-
NetworkAddress: string;
|
|
358
|
-
Port: number;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
export interface ActiveWorkunit2 {
|
|
362
|
-
Wuid: string;
|
|
363
|
-
State: string;
|
|
364
|
-
StateID: number;
|
|
365
|
-
Owner: string;
|
|
366
|
-
Jobname: string;
|
|
367
|
-
Server: string;
|
|
368
|
-
Instance: string;
|
|
369
|
-
Priority: string;
|
|
370
|
-
Extra: string;
|
|
371
|
-
GraphName: string;
|
|
372
|
-
Duration: string;
|
|
373
|
-
GID: string;
|
|
374
|
-
QueueName: string;
|
|
375
|
-
MemoryBlocked: number;
|
|
376
|
-
IsPausing: boolean;
|
|
377
|
-
Warning: string;
|
|
378
|
-
ClusterName: string;
|
|
379
|
-
ClusterType: string;
|
|
380
|
-
ClusterQueueName: string;
|
|
381
|
-
TargetClusterName: string;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export interface Workunits {
|
|
385
|
-
ActiveWorkunit: ActiveWorkunit2[];
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export interface StatusServerInfo {
|
|
389
|
-
TargetClusterInfo: TargetClusterInfo;
|
|
390
|
-
ServerInfo: ServerInfo;
|
|
391
|
-
Workunits: Workunits;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
export interface SMCQueueResponse {
|
|
395
|
-
Exceptions: Exceptions;
|
|
396
|
-
StatusServerInfo: StatusServerInfo;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export interface NamedValue {
|
|
400
|
-
Name: string;
|
|
401
|
-
Value: string;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
export interface BuildInfo {
|
|
405
|
-
NamedValue: NamedValue[];
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
export interface GetBuildInfoResponse {
|
|
409
|
-
Exceptions: Exceptions;
|
|
410
|
-
BuildInfo: BuildInfo;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
export interface TargetClusterInfo2 {
|
|
414
|
-
ClusterName: string;
|
|
415
|
-
QueueName: string;
|
|
416
|
-
QueueStatus: string;
|
|
417
|
-
StatusDetails: string;
|
|
418
|
-
Warning: string;
|
|
419
|
-
ClusterType: number;
|
|
420
|
-
ClusterSize: number;
|
|
421
|
-
ClusterStatus: number;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export interface Queues3 {
|
|
425
|
-
ServerJobQueue: any[];
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
export interface ServerInfo2 {
|
|
429
|
-
QueueName: string;
|
|
430
|
-
Queues: Queues3;
|
|
431
|
-
ServerName: string;
|
|
432
|
-
ServerType: string;
|
|
433
|
-
QueueStatus: string;
|
|
434
|
-
StatusDetails: string;
|
|
435
|
-
NetworkAddress: string;
|
|
436
|
-
Port: number;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
export interface ActiveWorkunit3 {
|
|
440
|
-
Wuid: string;
|
|
441
|
-
State: string;
|
|
442
|
-
StateID: number;
|
|
443
|
-
Owner: string;
|
|
444
|
-
Jobname: string;
|
|
445
|
-
Server: string;
|
|
446
|
-
Instance: string;
|
|
447
|
-
Priority: string;
|
|
448
|
-
Extra: string;
|
|
449
|
-
GraphName: string;
|
|
450
|
-
Duration: string;
|
|
451
|
-
GID: string;
|
|
452
|
-
QueueName: string;
|
|
453
|
-
MemoryBlocked: number;
|
|
454
|
-
IsPausing: boolean;
|
|
455
|
-
Warning: string;
|
|
456
|
-
ClusterName: string;
|
|
457
|
-
ClusterType: string;
|
|
458
|
-
ClusterQueueName: string;
|
|
459
|
-
TargetClusterName: string;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
export interface Workunits2 {
|
|
463
|
-
ActiveWorkunit: ActiveWorkunit3[];
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
export interface StatusServerInfo2 {
|
|
467
|
-
TargetClusterInfo: TargetClusterInfo2;
|
|
468
|
-
ServerInfo: ServerInfo2;
|
|
469
|
-
Workunits: Workunits2;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
export interface GetStatusServerInfoResponse {
|
|
473
|
-
Exceptions: Exceptions;
|
|
474
|
-
StatusServerInfo: StatusServerInfo2;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
export interface ThorCluster {
|
|
478
|
-
ClusterName: string;
|
|
479
|
-
QueueName: string;
|
|
480
|
-
QueueStatus: string;
|
|
481
|
-
QueueAvailable: number;
|
|
482
|
-
JobsRunning: number;
|
|
483
|
-
JobsInQueue: number;
|
|
484
|
-
QueueStatus2: number;
|
|
485
|
-
ThorLCR: string;
|
|
486
|
-
ClusterSize: number;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export interface ThorClusters {
|
|
490
|
-
ThorCluster: ThorCluster[];
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
export interface GetThorQueueAvailabilityResponse {
|
|
494
|
-
Exceptions: Exceptions;
|
|
495
|
-
ThorClusters: ThorClusters;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
export interface SMCIndexResponse {
|
|
499
|
-
Exceptions: Exceptions;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
export interface ModeNames {
|
|
503
|
-
Item: string[];
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export interface Lock {
|
|
507
|
-
EPIP: string;
|
|
508
|
-
XPath: string;
|
|
509
|
-
LogicalFile: string;
|
|
510
|
-
SessionID: number;
|
|
511
|
-
DurationMS: number;
|
|
512
|
-
TimeLocked: string;
|
|
513
|
-
Modes: string;
|
|
514
|
-
ModeNames: ModeNames;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
export interface Locks {
|
|
518
|
-
Lock: Lock[];
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
export interface LockQueryResponse {
|
|
522
|
-
Exceptions: Exceptions;
|
|
523
|
-
Locks: Locks;
|
|
524
|
-
NumLocks: number;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
export interface SMCJobResponse {
|
|
528
|
-
Exceptions: Exceptions;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
export interface NotInCommunityEditionResponse {
|
|
532
|
-
Exceptions: Exceptions;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
export interface WsSMCPingResponse {
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
export interface Endpoint {
|
|
539
|
-
Address: string;
|
|
540
|
-
Attached: boolean;
|
|
541
|
-
StateHash: string;
|
|
542
|
-
Status: string;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
export interface Endpoints {
|
|
546
|
-
Endpoint: Endpoint[];
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
export interface RoxieControlCmdResponse {
|
|
550
|
-
Exceptions: Exceptions;
|
|
551
|
-
Endpoints: Endpoints;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
export interface SetBannerResponse {
|
|
555
|
-
Exceptions: Exceptions;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
export interface SMCPriorityResponse {
|
|
559
|
-
Exceptions: Exceptions;
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
export class SMCService {
|
|
564
|
-
private _connection: ESPConnection;
|
|
565
|
-
|
|
566
|
-
constructor(optsConnection: IOptions | IConnection) {
|
|
567
|
-
this._connection = new ESPConnection(optsConnection, "WsSMC", "1.24");
|
|
568
|
-
}
|
|
8
|
+
export class SMCService extends SMCServiceBase {
|
|
569
9
|
|
|
570
10
|
connectionOptions(): IOptions {
|
|
571
11
|
return this._connection.opts();
|
|
572
12
|
}
|
|
573
13
|
|
|
574
|
-
Activity(request:
|
|
575
|
-
return
|
|
14
|
+
Activity(request: WsSMC.Activity): Promise<WsSMC.ActivityResponse> {
|
|
15
|
+
return super.Activity(request).then(response => {
|
|
576
16
|
return {
|
|
577
17
|
Running: {
|
|
578
18
|
ActiveWorkunit: []
|
|
@@ -581,40 +21,4 @@ export class SMCService {
|
|
|
581
21
|
};
|
|
582
22
|
});
|
|
583
23
|
}
|
|
584
|
-
|
|
585
|
-
BrowseResources(request: Partial<WsSMC.BrowseResources>): Promise<WsSMC.BrowseResourcesResponse> {
|
|
586
|
-
return this._connection.send("BrowseResources", request);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
GetBuildInfo(request: Partial<WsSMC.GetBuildInfo>): Promise<WsSMC.GetBuildInfoResponse> {
|
|
590
|
-
return this._connection.send("GetBuildInfo", request);
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
GetStatusServerInfo(request: Partial<WsSMC.GetStatusServerInfo>): Promise<WsSMC.GetStatusServerInfoResponse> {
|
|
594
|
-
return this._connection.send("GetStatusServerInfo", request);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
GetThorQueueAvailability(request: Partial<WsSMC.GetThorQueueAvailability>): Promise<WsSMC.GetThorQueueAvailabilityResponse> {
|
|
598
|
-
return this._connection.send("GetThorQueueAvailability", request);
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
LockQuery(request: Partial<WsSMC.LockQuery>): Promise<WsSMC.LockQueryResponse> {
|
|
602
|
-
return this._connection.send("LockQuery", request);
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
NotInCommunityEdition(request: Partial<WsSMC.NotInCommunityEdition>): Promise<WsSMC.NotInCommunityEditionResponse> {
|
|
606
|
-
return this._connection.send("NotInCommunityEdition", request);
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
RoxieControlCmd(request: Partial<WsSMC.RoxieControlCmd>): Promise<WsSMC.RoxieControlCmdResponse> {
|
|
610
|
-
return this._connection.send("RoxieControlCmd", request);
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
SetBanner(request: Partial<WsSMC.SetBanner>): Promise<WsSMC.SetBannerResponse> {
|
|
614
|
-
return this._connection.send("SetBanner", request);
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
SMCJob(request: Partial<WsSMC.SMCJob>): Promise<WsSMC.SMCJobResponse> {
|
|
618
|
-
return this._connection.send("SMCJob", request);
|
|
619
|
-
}
|
|
620
24
|
}
|