@esfaenza/admin-module 15.2.8 → 15.2.10
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/esm2020/lib/admin-module.module.mjs +11 -11
- package/esm2020/lib/components/audits/adm_audits.component.mjs +3 -3
- package/esm2020/lib/components/dynamic_views/adm_dynamic_views.component.mjs +4 -4
- package/esm2020/lib/components/enqueues/adm_enq.component.mjs +3 -3
- package/esm2020/lib/components/logs/adm_logs.component.mjs +2 -2
- package/esm2020/lib/components/metrics/metrics_search.component.mjs +4 -4
- package/esm2020/lib/components/profiler/adm_profiler.component.mjs +5 -5
- package/esm2020/lib/components/topact/topact_search.component.mjs +5 -5
- package/esm2020/lib/components/workers/adm_wrk.component.mjs +7 -7
- package/esm2020/lib/models/externals/Repository.mjs +22 -22
- package/fesm2015/esfaenza-admin-module.mjs +56 -56
- package/fesm2015/esfaenza-admin-module.mjs.map +1 -1
- package/fesm2020/esfaenza-admin-module.mjs +56 -56
- package/fesm2020/esfaenza-admin-module.mjs.map +1 -1
- package/lib/models/externals/Repository.d.ts +21 -21
- package/package.json +1 -1
|
@@ -43,27 +43,27 @@ class AuditsView extends AppSearch {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
const Repository = {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
GET_Director_ChangeProcessConsumerGroup: "/api/Director/ChangeProcessConsumerGroup",
|
|
47
|
+
GET_Director_ClearAllCaches: "/api/Director/ClearAllCaches",
|
|
48
|
+
GET_Director_GetConsumerGroups: "/api/Director/GetConsumerGroups#cache",
|
|
49
|
+
GET_Director_GetInfos: "/api/Director/GetInfos",
|
|
50
|
+
GET_Director_GetMetrics: "/api/Director/GetMetrics",
|
|
51
|
+
POST_Director_GetMetrics: "/api/Director/GetMetrics",
|
|
52
|
+
POST_Director_GetProfilerDataNodes: "/api/Director/GetProfilerDataNodes",
|
|
53
|
+
POST_Director_GetServerAudits: "/api/Director/GetServerAudits",
|
|
54
|
+
POST_Director_GetDynamicViewData: "/api/Director/GetDynamicViewData",
|
|
55
|
+
POST_Director_GetServerLocks: "/api/Director/GetServerLocks",
|
|
56
|
+
GET_Director_GetServerLogs: "/api/Director/GetServerLogs",
|
|
57
|
+
GET_Director_GetDynamicViews: "/api/Director/GetDynamicViews",
|
|
58
|
+
POST_Director_GetServerWorkers: "/api/Director/GetServerWorkers",
|
|
59
|
+
POST_Director_GetTopActivities: "/api/Director/GetTopActivities",
|
|
60
|
+
GET_Director_GetWorkerStatus: "/api/Director/GetWorkerStatus",
|
|
61
|
+
GET_Director_InvalidateServerSideCache: "/api/Director/InvalidateServerSideCache",
|
|
62
|
+
GET_Director_KillProcess: "/api/Director/KillProcess",
|
|
63
|
+
GET_Director_SetProcessTracing: "/api/Director/SetProcessTracing",
|
|
64
|
+
GET_Director_StartWorker: "/api/Director/StartWorker",
|
|
65
|
+
GET_Director_StopWorker: "/api/Director/StopWorker",
|
|
66
|
+
GET_Director_GetNodeStats: "/api/Director/GetNodeStats",
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
const ADM_MODULE_PATH = new InjectionToken('ADM_MODULE_PATH');
|
|
@@ -150,7 +150,7 @@ class AdmAuditsComponent {
|
|
|
150
150
|
//Altirmenti genero il modello nuovo normalmente
|
|
151
151
|
if (HotPotato) {
|
|
152
152
|
this.searchView = HotPotato;
|
|
153
|
-
this.POSTGetProcesses(Repository["
|
|
153
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerAudits"], this.searchView);
|
|
154
154
|
}
|
|
155
155
|
else {
|
|
156
156
|
this.searchView = new AuditsView();
|
|
@@ -163,7 +163,7 @@ class AdmAuditsComponent {
|
|
|
163
163
|
this.searchInProgress = true;
|
|
164
164
|
if (resetPage)
|
|
165
165
|
this.searchView.page = 1;
|
|
166
|
-
this.POSTGetProcesses(Repository["
|
|
166
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerAudits"], this.searchView);
|
|
167
167
|
}
|
|
168
168
|
POSTGetProcesses(url, data) {
|
|
169
169
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -292,7 +292,7 @@ class AdmWrkComponent {
|
|
|
292
292
|
init(HotPotato) {
|
|
293
293
|
if (HotPotato) {
|
|
294
294
|
this.searchView = HotPotato;
|
|
295
|
-
this.POSTGetProcesses(Repository["
|
|
295
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerWorkers"], this.searchView);
|
|
296
296
|
}
|
|
297
297
|
else {
|
|
298
298
|
this.searchView = new ProcessesView();
|
|
@@ -303,7 +303,7 @@ class AdmWrkComponent {
|
|
|
303
303
|
this.searchView.searchinprogress = true;
|
|
304
304
|
if (resetPage)
|
|
305
305
|
this.searchView.page = 1;
|
|
306
|
-
this.POSTGetProcesses(Repository["
|
|
306
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerWorkers"], this.searchView);
|
|
307
307
|
}
|
|
308
308
|
POSTGetProcesses(url, data) {
|
|
309
309
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -337,7 +337,7 @@ class AdmWrkComponent {
|
|
|
337
337
|
.set("sid", process.properties["sid"] || process.properties["SID"])
|
|
338
338
|
.set("serial", process.properties["serial"] || process.properties["SERIAL"])
|
|
339
339
|
.set("enable", tracing.toString());
|
|
340
|
-
this.http.get(Repository["
|
|
340
|
+
this.http.get(Repository["GET_Director_SetProcessTracing"], pars).subscribe(t => {
|
|
341
341
|
this.msgExts.manageStringResponse(t, "", this.lc.loc("Errori nella modifica del Tracing del Processo"), () => this.sendSearch());
|
|
342
342
|
});
|
|
343
343
|
}
|
|
@@ -347,7 +347,7 @@ class AdmWrkComponent {
|
|
|
347
347
|
.set("instanceid", process.properties["inst_id"] || process.properties["INST_ID"])
|
|
348
348
|
.set("sid", process.properties["sid"] || process.properties["SID"])
|
|
349
349
|
.set("serial", process.properties["serial"] || process.properties["SERIAL"]);
|
|
350
|
-
this.http.get(Repository["
|
|
350
|
+
this.http.get(Repository["GET_Director_KillProcess"], pars).subscribe(t => {
|
|
351
351
|
this.msgExts.manageStringResponse(t, this.lc.loc("Processo ucciso con successo"), this.lc.loc("Errori durante la Kill del Processo"), () => this.sendSearch());
|
|
352
352
|
});
|
|
353
353
|
});
|
|
@@ -362,7 +362,7 @@ class AdmWrkComponent {
|
|
|
362
362
|
this.dlgChangeCg.show();
|
|
363
363
|
}
|
|
364
364
|
loadCgDictionaries() {
|
|
365
|
-
this.http.get(Repository["
|
|
365
|
+
this.http.get(Repository["GET_Director_GetConsumerGroups"]).subscribe(t => this.CGs = t);
|
|
366
366
|
}
|
|
367
367
|
setupChangeCg() {
|
|
368
368
|
this.utiExts.cleanForm(this.cgFrom);
|
|
@@ -374,7 +374,7 @@ class AdmWrkComponent {
|
|
|
374
374
|
.set("sid", this.ProcessOnEdit.properties["sid"] || this.ProcessOnEdit.properties["SID"])
|
|
375
375
|
.set("serial", this.ProcessOnEdit.properties["serial"] || this.ProcessOnEdit.properties["SERIAL"])
|
|
376
376
|
.set("consumer_group", this.newCg);
|
|
377
|
-
this.http.get(Repository["
|
|
377
|
+
this.http.get(Repository["GET_Director_ChangeProcessConsumerGroup"], pars).subscribe(t => {
|
|
378
378
|
this.msgExts.manageStringResponse(t, this.lc.loc("Gruppo di Consumo modificato con successo"), this.lc.loc("Errori nella modifica del Gruppo di Consumo"), () => this.sendSearch());
|
|
379
379
|
});
|
|
380
380
|
return true;
|
|
@@ -636,7 +636,7 @@ class AdmProfilerComponent {
|
|
|
636
636
|
init(HotPotato) {
|
|
637
637
|
if (HotPotato) {
|
|
638
638
|
this.searchView = HotPotato;
|
|
639
|
-
this.POSTGetItems(Repository["
|
|
639
|
+
this.POSTGetItems(Repository["POST_Director_GetProfilerDataNodes"], this.searchView);
|
|
640
640
|
}
|
|
641
641
|
else {
|
|
642
642
|
this.searchView = new ProfilerDataNodesView();
|
|
@@ -651,7 +651,7 @@ class AdmProfilerComponent {
|
|
|
651
651
|
this.searchView.searchinprogress = true;
|
|
652
652
|
if (resetPage)
|
|
653
653
|
this.searchView.page = 1;
|
|
654
|
-
this.POSTGetItems(Repository["
|
|
654
|
+
this.POSTGetItems(Repository["POST_Director_GetProfilerDataNodes"], this.searchView);
|
|
655
655
|
}
|
|
656
656
|
POSTGetItems(url, data) {
|
|
657
657
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -664,7 +664,7 @@ class AdmProfilerComponent {
|
|
|
664
664
|
var view = JSON.parse(JSON.stringify(this.searchView));
|
|
665
665
|
view.page = 1;
|
|
666
666
|
view.itemsperpageoverride = 9999999;
|
|
667
|
-
this.http.post(Repository["
|
|
667
|
+
this.http.post(Repository["POST_Director_GetProfilerDataNodes"], view).subscribe(t => {
|
|
668
668
|
let items = this.expExts.deserializeForExport(t.items, ProfilerDataNode);
|
|
669
669
|
dataCallBack(items);
|
|
670
670
|
});
|
|
@@ -672,7 +672,7 @@ class AdmProfilerComponent {
|
|
|
672
672
|
loadNodeDetails(nodeId) {
|
|
673
673
|
this.NodeDetails = null;
|
|
674
674
|
let pars = new HttpParams().set('nodeId', nodeId);
|
|
675
|
-
this.http.get(Repository.
|
|
675
|
+
this.http.get(Repository.GET_Director_GetNodeStats, pars).subscribe(t => {
|
|
676
676
|
this.NodeDetails = t;
|
|
677
677
|
});
|
|
678
678
|
}
|
|
@@ -770,7 +770,7 @@ class AdmTopActivitiesComponent {
|
|
|
770
770
|
init(HotPotato) {
|
|
771
771
|
if (HotPotato) {
|
|
772
772
|
this.searchView = HotPotato;
|
|
773
|
-
this.POSTGetItems(Repository.
|
|
773
|
+
this.POSTGetItems(Repository.POST_Director_GetTopActivities, this.searchView, false);
|
|
774
774
|
}
|
|
775
775
|
else {
|
|
776
776
|
this.searchView = new TopActivitiesDataView();
|
|
@@ -785,7 +785,7 @@ class AdmTopActivitiesComponent {
|
|
|
785
785
|
this.searchView.searchinprogress = true;
|
|
786
786
|
if (resetPage)
|
|
787
787
|
this.searchView.page = 1;
|
|
788
|
-
this.POSTGetItems(Repository.
|
|
788
|
+
this.POSTGetItems(Repository.POST_Director_GetTopActivities, searchViewOverride ?? this.searchView, update);
|
|
789
789
|
}
|
|
790
790
|
POSTGetItems(url, data, update) {
|
|
791
791
|
this.http.post(url, data).subscribe(async (t) => {
|
|
@@ -800,12 +800,12 @@ class AdmTopActivitiesComponent {
|
|
|
800
800
|
});
|
|
801
801
|
}
|
|
802
802
|
getDirectorInfos() {
|
|
803
|
-
return this.http.get(Repository.
|
|
803
|
+
return this.http.get(Repository.GET_Director_GetInfos).pipe(map(res => { return res; })).toPromise();
|
|
804
804
|
}
|
|
805
805
|
loadNodeDetails(nodeId) {
|
|
806
806
|
this.NodeDetails = null;
|
|
807
807
|
let pars = new HttpParams().set('nodeId', nodeId);
|
|
808
|
-
this.http.get(Repository.
|
|
808
|
+
this.http.get(Repository.GET_Director_GetNodeStats, pars).subscribe(t => {
|
|
809
809
|
this.NodeDetails = t;
|
|
810
810
|
});
|
|
811
811
|
}
|
|
@@ -947,7 +947,7 @@ class AdmEnqComponent {
|
|
|
947
947
|
init(HotPotato) {
|
|
948
948
|
if (HotPotato) {
|
|
949
949
|
this.locksView = HotPotato;
|
|
950
|
-
this.POSTGetProcesses(Repository["
|
|
950
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerLocks"], this.locksView);
|
|
951
951
|
}
|
|
952
952
|
else {
|
|
953
953
|
this.locksView = new LocksView();
|
|
@@ -957,7 +957,7 @@ class AdmEnqComponent {
|
|
|
957
957
|
sendSearch(resetPage = true) {
|
|
958
958
|
if (resetPage)
|
|
959
959
|
this.locksView.page = 1;
|
|
960
|
-
this.POSTGetProcesses(Repository["
|
|
960
|
+
this.POSTGetProcesses(Repository["POST_Director_GetServerLocks"], this.locksView);
|
|
961
961
|
}
|
|
962
962
|
POSTGetProcesses(url, data) {
|
|
963
963
|
this.http.post(url, data).subscribe(t => {
|
|
@@ -1037,7 +1037,7 @@ class AdmMetricsComponent {
|
|
|
1037
1037
|
this.selectedInstance = "";
|
|
1038
1038
|
this.searchView.filtermetrics = [];
|
|
1039
1039
|
var pars = new HttpParams().set("from", this.searchView.filterfrom || "").set("to", this.searchView.filterto || "");
|
|
1040
|
-
this.http.get(Repository["
|
|
1040
|
+
this.http.get(Repository["GET_Director_GetMetrics"], pars).subscribe(t => this.Metrics = t);
|
|
1041
1041
|
}
|
|
1042
1042
|
async doInit(ignoreStorage) {
|
|
1043
1043
|
let item = await this.localStorage.getItem("HotSearchMetrics").toPromise();
|
|
@@ -1054,7 +1054,7 @@ class AdmMetricsComponent {
|
|
|
1054
1054
|
init(HotPotato) {
|
|
1055
1055
|
if (HotPotato) {
|
|
1056
1056
|
this.searchView = HotPotato;
|
|
1057
|
-
this.POSTGetItems(Repository["
|
|
1057
|
+
this.POSTGetItems(Repository["POST_Director_GetMetrics"], this.searchView, false);
|
|
1058
1058
|
}
|
|
1059
1059
|
else {
|
|
1060
1060
|
this.searchView = new MetricsView();
|
|
@@ -1074,7 +1074,7 @@ class AdmMetricsComponent {
|
|
|
1074
1074
|
this.searchView.itemsperpageoverride = 999999;
|
|
1075
1075
|
if (resetPage)
|
|
1076
1076
|
this.searchView.page = 1;
|
|
1077
|
-
this.POSTGetItems(Repository["
|
|
1077
|
+
this.POSTGetItems(Repository["POST_Director_GetMetrics"], searchViewOverride ?? this.searchView, update);
|
|
1078
1078
|
}
|
|
1079
1079
|
POSTGetItems(url, data, update) {
|
|
1080
1080
|
data.filterrealtime = update ? data.filterrealtime : !(!!data.filterfrom || !!data.filterto);
|
|
@@ -1172,7 +1172,7 @@ class AdmLogsComponent {
|
|
|
1172
1172
|
this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1173
1173
|
}
|
|
1174
1174
|
ngOnInit() {
|
|
1175
|
-
this.http.get(Repository["
|
|
1175
|
+
this.http.get(Repository["GET_Director_GetServerLogs"]).subscribe(t => { this.Log = t; });
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
1178
|
AdmLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AdmLogsComponent, deps: [{ token: i1.InterComService }, { token: i4.HTTPService }, { token: i2.LocalizationService }, { token: i5.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1221,7 +1221,7 @@ class AdmDynamicViewsComponent {
|
|
|
1221
1221
|
this.intercom.send(InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1222
1222
|
}
|
|
1223
1223
|
ngOnInit() {
|
|
1224
|
-
this.http.get(Repository.
|
|
1224
|
+
this.http.get(Repository.GET_Director_GetDynamicViews).subscribe(t => { this.Names = t; });
|
|
1225
1225
|
this.storageSub = this.route.queryParams.subscribe(params => { this.Init(params["ignoreStorage"]); });
|
|
1226
1226
|
}
|
|
1227
1227
|
ngOnDestroy() {
|
|
@@ -1245,7 +1245,7 @@ class AdmDynamicViewsComponent {
|
|
|
1245
1245
|
//Altirmenti genero il modello nuovo normalmente
|
|
1246
1246
|
if (HotPotato) {
|
|
1247
1247
|
this.searchView = HotPotato;
|
|
1248
|
-
this.POSTGetItems(Repository.
|
|
1248
|
+
this.POSTGetItems(Repository.POST_Director_GetDynamicViewData, this.searchView);
|
|
1249
1249
|
}
|
|
1250
1250
|
else {
|
|
1251
1251
|
this.searchView = new DynamicViewsView();
|
|
@@ -1257,7 +1257,7 @@ class AdmDynamicViewsComponent {
|
|
|
1257
1257
|
if (resetPage)
|
|
1258
1258
|
this.searchView.page = 1;
|
|
1259
1259
|
this.searchView.filtername = this.filterName;
|
|
1260
|
-
this.POSTGetItems(Repository.
|
|
1260
|
+
this.POSTGetItems(Repository.POST_Director_GetDynamicViewData, this.searchView);
|
|
1261
1261
|
}
|
|
1262
1262
|
POSTGetItems(url, data) {
|
|
1263
1263
|
if (!this.searchView.filtername) {
|
|
@@ -1351,14 +1351,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1351
1351
|
const routeConfig = [
|
|
1352
1352
|
{
|
|
1353
1353
|
path: "", children: [
|
|
1354
|
-
{ path: "serverworkers", component: AdmWrkComponent, data: { title: "
|
|
1355
|
-
{ path: "profiler", component: AdmProfilerComponent, data: { title: "Server
|
|
1356
|
-
{ path: "topact", component: AdmTopActivitiesComponent, data: { title: "
|
|
1357
|
-
{ path: "metrics", component: AdmMetricsComponent, data: { title: "
|
|
1358
|
-
{ path: "serverlogs", component: AdmLogsComponent, data: { title: "Server
|
|
1359
|
-
{ path: "serveraudits", component: AdmAuditsComponent, data: { title: "
|
|
1360
|
-
{ path: "serverenqueues", component: AdmEnqComponent, data: { title: "
|
|
1361
|
-
{ path: "serverviews", component: AdmDynamicViewsComponent, data: { title: "
|
|
1354
|
+
{ path: "serverworkers", component: AdmWrkComponent, data: { title: "Ricerca Processi Applicativi", internalNavigation: false } },
|
|
1355
|
+
{ path: "profiler", component: AdmProfilerComponent, data: { title: "Profiler del Server", internalNavigation: false } },
|
|
1356
|
+
{ path: "topact", component: AdmTopActivitiesComponent, data: { title: "Attività Principali", internalNavigation: false } },
|
|
1357
|
+
{ path: "metrics", component: AdmMetricsComponent, data: { title: "Metriche di Sistema", internalNavigation: false } },
|
|
1358
|
+
{ path: "serverlogs", component: AdmLogsComponent, data: { title: "Log del Server", internalNavigation: false } },
|
|
1359
|
+
{ path: "serveraudits", component: AdmAuditsComponent, data: { title: "Ricerca Audit Applicativi", internalNavigation: false } },
|
|
1360
|
+
{ path: "serverenqueues", component: AdmEnqComponent, data: { title: "Ricerca Lock Applicativi", internalNavigation: false } },
|
|
1361
|
+
{ path: "serverviews", component: AdmDynamicViewsComponent, data: { title: "Ricerca Viste Dinamiche Applicative", internalNavigation: false } }
|
|
1362
1362
|
]
|
|
1363
1363
|
}
|
|
1364
1364
|
];
|
|
@@ -1440,7 +1440,7 @@ AdmModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
|
1440
1440
|
NgxMatDatetimePickerModule, i5.RouterModule] });
|
|
1441
1441
|
AdmModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AdmModule, providers: [
|
|
1442
1442
|
AdminModuleCommService,
|
|
1443
|
-
{ provide: ADM_CONVERSATIONS, useFactory: () => !!myconfig.
|
|
1443
|
+
{ provide: ADM_CONVERSATIONS, useFactory: () => !!myconfig.TransactionTimeoutSeconds }
|
|
1444
1444
|
], imports: [MODULES] });
|
|
1445
1445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AdmModule, decorators: [{
|
|
1446
1446
|
type: NgModule,
|
|
@@ -1449,7 +1449,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1449
1449
|
declarations: [...COMPONENTS, ...PIPES],
|
|
1450
1450
|
providers: [
|
|
1451
1451
|
AdminModuleCommService,
|
|
1452
|
-
{ provide: ADM_CONVERSATIONS, useFactory: () => !!myconfig.
|
|
1452
|
+
{ provide: ADM_CONVERSATIONS, useFactory: () => !!myconfig.TransactionTimeoutSeconds }
|
|
1453
1453
|
]
|
|
1454
1454
|
}]
|
|
1455
1455
|
}], ctorParameters: function () { return [{ type: AdminModuleCommService }]; } });
|