All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.831.f2163dfdf5624e69.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[831],{10831:(k,r,o)=>{o.r(r),o.d(r,{TaskManagerLogsComponent:()=>p});var M=o(70262),E=o(82722),m=o(77579),O=o(39646),i=o(18309),d=o(80711),h=o(44978),e=o(24006),c=o(89584),n=o(94650),f=o(45695),D=o(70946),P=o(19132);let p=(()=>{class s{constructor(t,a,l,C,g){this.taskManagerService=t,this.configService=a,this.activatedRoute=l,this.cdr=C,this.moduleConfig=g,this.logs="",this.loading=!0,this.downloadUrl="",this.downloadName="",this.destroy$=new m.x,this.editorOptions=g.editorOptions||i.K.editorOptions}ngOnInit(){this.taskManagerId=this.activatedRoute.parent.snapshot.params.taskManagerId,this.downloadUrl=`${this.configService.BASE_URL}/taskmanagers/${this.taskManagerId}/log`,this.downloadName=`taskmanager_${this.taskManagerId}_log`,this.reload()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}reload(){this.loading=!0,this.cdr.markForCheck(),this.taskManagerService.loadLogs(this.taskManagerId).pipe((0,M.K)(()=>(0,O.of)("")),(0,E.R)(this.destroy$)).subscribe(t=>{this.loading=!1,this.logs=t,this.cdr.markForCheck()})}}return s.\u0275fac=function(t){return new(t||s)(n.Y36(f.k),n.Y36(D.E),n.Y36(P.gz),n.Y36(n.sBO),n.Y36(i.N))},s.\u0275cmp=n.Xpm({type:s,selectors:[["flink-task-manager-logs"]],standalone:!0,features:[n.jDz],decls:2,vars:5,consts:[["flinkAutoResize","",3,"nzLoading","ngModel","nzEditorOption"],[3,"downloadHref","downloadName","reload"]],template:function(t,a){1&t&&(n._UZ(0,"nz-code-editor",0),n.TgZ(1,"flink-addon-compact",1),n.NdJ("reload",function(){return a.reload()}),n.qZA()),2&t&&(n.Q6J("nzLoading",a.loading)("ngModel",a.logs)("nzEditorOption",a.editorOptions),n.xp6(1),n.Q6J("downloadHref",a.downloadUrl)("downloadName",a.downloadName))},dependencies:[d.qw,d.XZ,h.w,e.u5,e.JJ,e.On,c.N],styles:["[_nghost-%COMP%]{position:relative;flex:1;border:1px solid #f0f0f0}[_nghost-%COMP%]   nz-code-editor[_ngcontent-%COMP%]{position:absolute;inset:0}"],changeDetection:0}),s})()}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy