web.9051.c487a1ece3451bd4.js Maven / Gradle / Ivy
"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[9051],{69585:(L,S,t)=>{t.r(S),t.d(S,{JobManagerStdoutComponent:()=>T});var l=t(24006),n=t(77579),u=t(39646),_=t(70262),M=t(82722),m=t(89584),O=t(44978),o=t(80833),a=t(80711),s=t(94650),z=t(94138),v=t(70946);let T=(()=>{class f{constructor(h,p,y,E){this.jobManagerService=h,this.configService=p,this.cdr=y,this.moduleConfig=E,this.downloadName="jobmanager_stdout",this.stdout="",this.loading=!0,this.destroy$=new n.x,this.editorOptions=E.editorOptions||o.I.editorOptions,this.downloadUrl=`${this.configService.BASE_URL}/jobmanager/stdout`}ngOnInit(){this.reload()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}reload(){this.loading=!0,this.cdr.markForCheck(),this.jobManagerService.loadStdout().pipe((0,_.K)(()=>(0,u.of)("")),(0,M.R)(this.destroy$)).subscribe(h=>{this.loading=!1,this.stdout=h,this.cdr.markForCheck()})}}return f.\u0275fac=function(h){return new(h||f)(s.Y36(z.x),s.Y36(v.E),s.Y36(s.sBO),s.Y36(o.w))},f.\u0275cmp=s.Xpm({type:f,selectors:[["flink-job-manager-stdout"]],standalone:!0,features:[s.jDz],decls:2,vars:5,consts:[["flinkAutoResize","",3,"nzLoading","ngModel","nzEditorOption"],[3,"downloadHref","downloadName","reload"]],template:function(h,p){1&h&&(s._UZ(0,"nz-code-editor",0),s.TgZ(1,"flink-addon-compact",1),s.NdJ("reload",function(){return p.reload()}),s.qZA()),2&h&&(s.Q6J("nzLoading",p.loading)("ngModel",p.stdout)("nzEditorOption",p.editorOptions),s.xp6(1),s.Q6J("downloadHref",p.downloadUrl)("downloadName",p.downloadName))},dependencies:[a.qw,a.XZ,O.w,l.u5,l.JJ,l.On,m.N],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex:1}[_nghost-%COMP%] nz-code-editor[_ngcontent-%COMP%]{position:absolute;inset:0}"],changeDetection:0}),f})()},94138:(L,S,t)=>{t.d(S,{x:()=>M});var l=t(80529),n=t(54004),u=t(94650),_=t(70946);let M=(()=>{class m{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 l.WM).append("Cache-Control","no-cache")})}loadStdout(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/stdout`,{responseType:"text",headers:(new l.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 l.WM).append("Cache-Control","no-cache")}).pipe((0,n.U)(s=>({data:s,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)(s=>{const z={};return s.forEach(v=>{z[v.id]=parseInt(v.value,10)}),z}))}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 m.\u0275fac=function(o){return new(o||m)(u.LFG(l.eN),u.LFG(_.E))},m.\u0275prov=u.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"}),m})()},65681:(L,S,t)=>{t.d(S,{W:()=>N,j:()=>b});var l=t(70655),n=t(94650),u=t(77579),_=t(61135),M=t(4707),m=t(5963),O=t(68675),o=t(71884),a=t(63900),s=t(54482),z=t(25032),v=t(25403),T=t(38421),C=t(82722),h=t(72536),p=t(3187),y=t(40445),E=t(36895),A=t(49643);function $(e,c){1&e&&(n.TgZ(0,"span",3),n._UZ(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),n.qZA())}function x(e,c){}function I(e,c){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 P(e,c){if(1&e&&(n.TgZ(0,"div")(1,"div",5),n.YNc(2,x,0,0,"ng-template",6),n.YNc(3,I,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,c){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=["*"],U="spin";let N=(()=>{class e{constructor(i,r,d){this.nzConfigService=i,this.cdr=r,this.directionality=d,this._nzModuleName=U,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new u.x,this.spinning$=new _.X(this.nzSpinning),this.delay$=new M.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var i;this.delay$.pipe((0,O.O)(this.nzDelay),(0,o.x)(),(0,a.w)(d=>0===d?this.spinning$:this.spinning$.pipe(function f(e){return(0,s.e)((c,i)=>{let r=!1,d=null,g=null;const j=()=>{if(g?.unsubscribe(),g=null,r){r=!1;const D=d;d=null,i.next(D)}};c.subscribe((0,v.x)(i,D=>{g?.unsubscribe(),r=!0,d=D,g=(0,v.x)(i,j,z.Z),(0,T.Xf)(e(D)).subscribe(g)},()=>{j(),i.complete()},void 0,()=>{d=g=null}))})}(g=>(0,m.H)(g?d:0)))),(0,C.R)(this.destroy$)).subscribe(d=>{this.isLoading=d,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(U).pipe((0,C.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(i=this.directionality.change)||void 0===i||i.pipe((0,C.R)(this.destroy$)).subscribe(d=>{this.dir=d,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(i){const{nzSpinning:r,nzDelay:d}=i;r&&this.spinning$.next(this.nzSpinning),d&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return e.\u0275fac=function(i){return new(i||e)(n.Y36(h.jY),n.Y36(n.sBO),n.Y36(y.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,P,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:[E.O5,E.tP],encapsulation:2}),(0,l.gn)([(0,h.oS)()],e.prototype,"nzIndicator",void 0),(0,l.gn)([(0,p.Rn)()],e.prototype,"nzDelay",void 0),(0,l.gn)([(0,p.yF)()],e.prototype,"nzSimple",void 0),(0,l.gn)([(0,p.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:[y.vT,E.ez,A.Q8]}),e})()}}]);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy