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