web.9847.7c22a228122561e5.js Maven / Gradle / Ivy
"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[9847],{92138:(U,_,t)=>{t.r(_),t.d(_,{JobManagerLogsComponent:()=>T});var c=t(72801),n=t(77579),f=t(39646),C=t(70262),M=t(82722),h=t(80833),E=t(80711),o=t(44978),a=t(24006),u=t(89584),s=t(94650),S=t(94138),y=t(70946);let T=(()=>{class v{constructor(d,m,z,D){this.jobManagerService=d,this.configService=m,this.cdr=z,this.moduleConfig=D,this.downloadName="jobmanager_log",this.editorOptions=c.i,this.logs="",this.loading=!0,this.destroy$=new n.x,this.editorOptions=D.editorOptions||h.I.editorOptions,this.downloadUrl=`${this.configService.BASE_URL}/jobmanager/log`}ngOnInit(){this.reload()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}reload(){this.loading=!0,this.cdr.markForCheck(),this.jobManagerService.loadLogs().pipe((0,C.K)(()=>(0,f.of)("")),(0,M.R)(this.destroy$)).subscribe(d=>{this.loading=!1,this.logs=d,this.cdr.markForCheck()})}}return v.\u0275fac=function(d){return new(d||v)(s.Y36(S.x),s.Y36(y.E),s.Y36(s.sBO),s.Y36(h.w))},v.\u0275cmp=s.Xpm({type:v,selectors:[["flink-job-manager-logs"]],standalone:!0,features:[s.jDz],decls:2,vars:5,consts:[["flinkAutoResize","",3,"nzLoading","ngModel","nzEditorOption"],[3,"downloadHref","downloadName","reload"]],template:function(d,m){1&d&&(s._UZ(0,"nz-code-editor",0),s.TgZ(1,"flink-addon-compact",1),s.NdJ("reload",function(){return m.reload()}),s.qZA()),2&d&&(s.Q6J("nzLoading",m.loading)("ngModel",m.logs)("nzEditorOption",m.editorOptions),s.xp6(1),s.Q6J("downloadHref",m.downloadUrl)("downloadName",m.downloadName))},dependencies:[E.qw,E.XZ,o.w,a.u5,a.JJ,a.On,u.N],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex:1}[_nghost-%COMP%] nz-code-editor[_ngcontent-%COMP%]{position:absolute;inset:0}"],changeDetection:0}),v})()},94138:(U,_,t)=>{t.d(_,{x:()=>M});var c=t(80529),n=t(54004),f=t(94650),C=t(70946);let M=(()=>{class h{constructor(o,a){this.httpClient=o,this.configService=a}loadConfig(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/config`)}loadEnvironment(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/environment`)}loadLogs(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/log`,{responseType:"text",headers:(new c.WM).append("Cache-Control","no-cache")})}loadStdout(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/stdout`,{responseType:"text",headers:(new c.WM).append("Cache-Control","no-cache")})}loadLogList(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/logs`).pipe((0,n.U)(o=>o.logs))}loadLog(o){const a=`${this.configService.BASE_URL}/jobmanager/logs/${o}`;return this.httpClient.get(a,{responseType:"text",headers:(new c.WM).append("Cache-Control","no-cache")}).pipe((0,n.U)(u=>({data:u,url:a})))}loadThreadDump(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/thread-dump`).pipe((0,n.U)(o=>o.threadInfos.map(a=>a.stringifiedThreadInfo).join("")))}loadMetricsName(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`).pipe((0,n.U)(o=>o.map(a=>a.id)))}loadMetrics(o){const a=o.join(",");return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`,{params:{get:a}}).pipe((0,n.U)(u=>{const s={};return u.forEach(S=>{s[S.id]=parseInt(S.value,10)}),s}))}loadHistoryServerConfig(o){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${o}/jobmanager/config`)}loadHistoryServerEnvironment(o){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${o}/jobmanager/environment`)}loadHistoryServerJobManagerLogUrl(o){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${o}/jobmanager/log-url`).pipe((0,n.U)(a=>a.url))}}return h.\u0275fac=function(o){return new(o||h)(f.LFG(c.eN),f.LFG(C.E))},h.\u0275prov=f.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})()},65681:(U,_,t)=>{t.d(_,{W:()=>N,j:()=>b});var c=t(70655),n=t(94650),f=t(77579),C=t(61135),M=t(4707),h=t(5963),E=t(68675),o=t(71884),a=t(63900),u=t(54482),s=t(25032),S=t(25403),y=t(38421),v=t(82722),O=t(72536),d=t(3187),m=t(40445),z=t(36895),D=t(49643);function $(e,p){1&e&&(n.TgZ(0,"span",3),n._UZ(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),n.qZA())}function P(e,p){}function x(e,p){if(1&e&&(n.TgZ(0,"div",8),n._uU(1),n.qZA()),2&e){const i=n.oxw(2);n.xp6(1),n.Oqu(i.nzTip)}}function I(e,p){if(1&e&&(n.TgZ(0,"div")(1,"div",5),n.YNc(2,P,0,0,"ng-template",6),n.YNc(3,x,2,1,"div",7),n.qZA()()),2&e){const i=n.oxw(),r=n.MAs(1);n.xp6(1),n.ekj("ant-spin-rtl","rtl"===i.dir)("ant-spin-spinning",i.isLoading)("ant-spin-lg","large"===i.nzSize)("ant-spin-sm","small"===i.nzSize)("ant-spin-show-text",i.nzTip),n.xp6(1),n.Q6J("ngTemplateOutlet",i.nzIndicator||r),n.xp6(1),n.Q6J("ngIf",i.nzTip)}}function R(e,p){if(1&e&&(n.TgZ(0,"div",9),n.Hsn(1),n.qZA()),2&e){const i=n.oxw();n.ekj("ant-spin-blur",i.isLoading)}}const B=["*"],A="spin";let N=(()=>{class e{constructor(i,r,l){this.nzConfigService=i,this.cdr=r,this.directionality=l,this._nzModuleName=A,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new f.x,this.spinning$=new C.X(this.nzSpinning),this.delay$=new M.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var i;this.delay$.pipe((0,E.O)(this.nzDelay),(0,o.x)(),(0,a.w)(l=>0===l?this.spinning$:this.spinning$.pipe(function T(e){return(0,u.e)((p,i)=>{let r=!1,l=null,g=null;const j=()=>{if(g?.unsubscribe(),g=null,r){r=!1;const L=l;l=null,i.next(L)}};p.subscribe((0,S.x)(i,L=>{g?.unsubscribe(),r=!0,l=L,g=(0,S.x)(i,j,s.Z),(0,y.Xf)(e(L)).subscribe(g)},()=>{j(),i.complete()},void 0,()=>{l=g=null}))})}(g=>(0,h.H)(g?l:0)))),(0,v.R)(this.destroy$)).subscribe(l=>{this.isLoading=l,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(A).pipe((0,v.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(i=this.directionality.change)||void 0===i||i.pipe((0,v.R)(this.destroy$)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(i){const{nzSpinning:r,nzDelay:l}=i;r&&this.spinning$.next(this.nzSpinning),l&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(O.jY),n.Y36(n.sBO),n.Y36(m.Is,8))},e.\u0275cmp=n.Xpm({type:e,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(i,r){2&i&&n.ekj("ant-spin-nested-loading",!r.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:"nzDelay",nzSimple:"nzSimple",nzSpinning:"nzSpinning"},exportAs:["nzSpin"],features:[n.TTD],ngContentSelectors:B,decls:4,vars:2,consts:[["defaultTemplate",""],[4,"ngIf"],["class","ant-spin-container",3,"ant-spin-blur",4,"ngIf"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin"],[3,"ngTemplateOutlet"],["class","ant-spin-text",4,"ngIf"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(i,r){1&i&&(n.F$t(),n.YNc(0,$,5,0,"ng-template",null,0,n.W1O),n.YNc(2,I,4,12,"div",1),n.YNc(3,R,2,2,"div",2)),2&i&&(n.xp6(2),n.Q6J("ngIf",r.isLoading),n.xp6(1),n.Q6J("ngIf",!r.nzSimple))},dependencies:[z.O5,z.tP],encapsulation:2}),(0,c.gn)([(0,O.oS)()],e.prototype,"nzIndicator",void 0),(0,c.gn)([(0,d.Rn)()],e.prototype,"nzDelay",void 0),(0,c.gn)([(0,d.yF)()],e.prototype,"nzSimple",void 0),(0,c.gn)([(0,d.yF)()],e.prototype,"nzSpinning",void 0),e})(),b=(()=>{class e{}return e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=n.oAB({type:e}),e.\u0275inj=n.cJS({imports:[m.vT,z.ez,D.Q8]}),e})()}}]);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy