web.6633.d6d79dcee6048284.js Maven / Gradle / Ivy
"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[6633],{51925:(U,C,t)=>{t.r(C),t.d(C,{JobManagerLogDetailComponent:()=>L});var p=t(24006),n=t(19132),v=t(77579),M=t(28746),E=t(82722),u=t(14050),O=t(44978),r=t(80833),s=t(94963),c=t(80711),_=t(21102),e=t(94650),T=t(94138);const P=function(){return["../"]};let L=(()=>{class m{constructor(l,a,D,z){this.jobManagerService=l,this.cdr=a,this.activatedRoute=D,this.moduleConfig=z,this.logs="",this.logName="",this.downloadUrl="",this.isLoading=!1,this.isFullScreen=!1,this.destroy$=new v.x,this.editorOptions=z.editorOptions||r.I.editorOptions}ngOnInit(){this.logName=this.activatedRoute.snapshot.params.logName,this.reload()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}reload(){this.isLoading=!0,this.cdr.markForCheck(),this.jobManagerService.loadLog(this.logName).pipe((0,M.x)(()=>{this.isLoading=!1,this.cdr.markForCheck()}),(0,E.R)(this.destroy$)).subscribe(l=>{this.logs=l.data,this.downloadUrl=l.url})}toggleFullScreen(l){this.isFullScreen=l}}return m.\u0275fac=function(l){return new(l||m)(e.Y36(T.x),e.Y36(e.sBO),e.Y36(n.gz),e.Y36(r.w))},m.\u0275cmp=e.Xpm({type:m,selectors:[["flink-job-manager-log-detail"]],hostVars:2,hostBindings:function(l,a){2&l&&e.ekj("full-screen",a.isFullScreen)},standalone:!0,features:[e.jDz],decls:11,vars:9,consts:[[1,"breadcrumb"],[3,"routerLink"],["nz-icon","","nzType","rollback","nzTheme","outline"],[3,"isLoading","downloadHref","downloadName","reload","fullScreen"],[1,"editor-container"],["flinkAutoResize","",3,"nzLoading","ngModel","nzEditorOption"]],template:function(l,a){1&l&&(e.TgZ(0,"div",0)(1,"nz-breadcrumb")(2,"nz-breadcrumb-item")(3,"a",1),e._UZ(4,"i",2),e._uU(5," Log List "),e.qZA()(),e.TgZ(6,"nz-breadcrumb-item"),e._uU(7),e.qZA()(),e.TgZ(8,"flink-addon-inline",3),e.NdJ("reload",function(){return a.reload()})("fullScreen",function(z){return a.toggleFullScreen(z)}),e.qZA()(),e.TgZ(9,"div",4),e._UZ(10,"nz-code-editor",5),e.qZA()),2&l&&(e.xp6(3),e.Q6J("routerLink",e.DdM(8,P)),e.xp6(4),e.hij(" ",a.logName," "),e.xp6(1),e.Q6J("isLoading",a.isLoading)("downloadHref",a.downloadUrl)("downloadName",a.logName),e.xp6(2),e.Q6J("nzLoading",a.isLoading)("ngModel",a.logs)("nzEditorOption",a.editorOptions))},dependencies:[s.lt,s.Dg,s.MO,n.yS,_.PV,_.Ls,u.G,c.qw,c.XZ,p.u5,p.JJ,p.On,O.w],styles:["[_nghost-%COMP%]{display:flex;flex:1;flex-flow:column nowrap}.full-screen[_nghost-%COMP%]{position:fixed;inset:0;z-index:99;background:#fff}[_nghost-%COMP%] .editor-container[_ngcontent-%COMP%]{position:relative;flex:1}[_nghost-%COMP%] .editor-container[_ngcontent-%COMP%] nz-code-editor[_ngcontent-%COMP%]{position:absolute;inset:0}[_nghost-%COMP%] .breadcrumb[_ngcontent-%COMP%]{position:relative;display:flex;flex-flow:row nowrap;padding:12px 24px;border-bottom:1px solid #f0f0f0;background:#fff}[_nghost-%COMP%] .breadcrumb[_ngcontent-%COMP%] flink-addon-inline[_ngcontent-%COMP%]{position:absolute;top:0;right:12px;line-height:47px}"],changeDetection:0}),m})()},94138:(U,C,t)=>{t.d(C,{x:()=>E});var p=t(80529),n=t(54004),v=t(94650),M=t(70946);let E=(()=>{class u{constructor(r,s){this.httpClient=r,this.configService=s}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 p.WM).append("Cache-Control","no-cache")})}loadStdout(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/stdout`,{responseType:"text",headers:(new p.WM).append("Cache-Control","no-cache")})}loadLogList(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/logs`).pipe((0,n.U)(r=>r.logs))}loadLog(r){const s=`${this.configService.BASE_URL}/jobmanager/logs/${r}`;return this.httpClient.get(s,{responseType:"text",headers:(new p.WM).append("Cache-Control","no-cache")}).pipe((0,n.U)(c=>({data:c,url:s})))}loadThreadDump(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/thread-dump`).pipe((0,n.U)(r=>r.threadInfos.map(s=>s.stringifiedThreadInfo).join("")))}loadMetricsName(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`).pipe((0,n.U)(r=>r.map(s=>s.id)))}loadMetrics(r){const s=r.join(",");return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`,{params:{get:s}}).pipe((0,n.U)(c=>{const _={};return c.forEach(e=>{_[e.id]=parseFloat(e.value)}),_}))}loadHistoryServerConfig(r){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${r}/jobmanager/config`)}loadHistoryServerEnvironment(r){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${r}/jobmanager/environment`)}loadHistoryServerJobManagerLogUrl(r){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${r}/jobmanager/log-url`).pipe((0,n.U)(s=>s.url))}loadProfilingList(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/profiler`)}createProfilingInstance(r,s){return this.httpClient.post(`${this.configService.BASE_URL}/jobmanager/profiler`,{mode:r,duration:s})}loadProfilingResult(r){const s=`${this.configService.BASE_URL}/jobmanager/profiler/${r}`;return this.httpClient.get(s,{responseType:"text",headers:(new p.WM).append("Cache-Control","no-cache")}).pipe((0,n.U)(c=>({data:c,url:s})))}}return u.\u0275fac=function(r){return new(r||u)(v.LFG(p.eN),v.LFG(M.E))},u.\u0275prov=v.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},65681:(U,C,t)=>{t.d(C,{W:()=>I,j:()=>N});var p=t(70655),n=t(94650),v=t(77579),M=t(61135),E=t(4707),u=t(5963),O=t(68675),r=t(71884),s=t(63900),c=t(54482),_=t(25032),e=t(25403),T=t(38421),L=t(82722),m=t(72536),S=t(3187),l=t(40445),a=t(36895),D=t(49643);function z(o,h){1&o&&(n.TgZ(0,"span",3),n._UZ(1,"i",4)(2,"i",4)(3,"i",4)(4,"i",4),n.qZA())}function A(o,h){}function R(o,h){if(1&o&&(n.TgZ(0,"div",8),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.Oqu(i.nzTip)}}function $(o,h){if(1&o&&(n.TgZ(0,"div")(1,"div",5),n.YNc(2,A,0,0,"ng-template",6),n.YNc(3,R,2,1,"div",7),n.qZA()()),2&o){const i=n.oxw(),d=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||d),n.xp6(1),n.Q6J("ngIf",i.nzTip)}}function j(o,h){if(1&o&&(n.TgZ(0,"div",9),n.Hsn(1),n.qZA()),2&o){const i=n.oxw();n.ekj("ant-spin-blur",i.isLoading)}}const B=["*"],b="spin";let I=(()=>{class o{constructor(i,d,g){this.nzConfigService=i,this.cdr=d,this.directionality=g,this._nzModuleName=b,this.nzIndicator=null,this.nzSize="default",this.nzTip=null,this.nzDelay=0,this.nzSimple=!1,this.nzSpinning=!0,this.destroy$=new v.x,this.spinning$=new M.X(this.nzSpinning),this.delay$=new E.t(1),this.isLoading=!1,this.dir="ltr"}ngOnInit(){var i;this.delay$.pipe((0,O.O)(this.nzDelay),(0,r.x)(),(0,s.w)(g=>0===g?this.spinning$:this.spinning$.pipe(function P(o){return(0,c.e)((h,i)=>{let d=!1,g=null,f=null;const x=()=>{if(f?.unsubscribe(),f=null,d){d=!1;const y=g;g=null,i.next(y)}};h.subscribe((0,e.x)(i,y=>{f?.unsubscribe(),d=!0,g=y,f=(0,e.x)(i,x,_.Z),(0,T.Xf)(o(y)).subscribe(f)},()=>{x(),i.complete()},void 0,()=>{g=f=null}))})}(f=>(0,u.H)(f?g:0)))),(0,L.R)(this.destroy$)).subscribe(g=>{this.isLoading=g,this.cdr.markForCheck()}),this.nzConfigService.getConfigChangeEventForComponent(b).pipe((0,L.R)(this.destroy$)).subscribe(()=>this.cdr.markForCheck()),null===(i=this.directionality.change)||void 0===i||i.pipe((0,L.R)(this.destroy$)).subscribe(g=>{this.dir=g,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(i){const{nzSpinning:d,nzDelay:g}=i;d&&this.spinning$.next(this.nzSpinning),g&&this.delay$.next(this.nzDelay)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return o.\u0275fac=function(i){return new(i||o)(n.Y36(m.jY),n.Y36(n.sBO),n.Y36(l.Is,8))},o.\u0275cmp=n.Xpm({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(i,d){2&i&&n.ekj("ant-spin-nested-loading",!d.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,d){1&i&&(n.F$t(),n.YNc(0,z,5,0,"ng-template",null,0,n.W1O),n.YNc(2,$,4,12,"div",1),n.YNc(3,j,2,2,"div",2)),2&i&&(n.xp6(2),n.Q6J("ngIf",d.isLoading),n.xp6(1),n.Q6J("ngIf",!d.nzSimple))},dependencies:[a.O5,a.tP],encapsulation:2}),(0,p.gn)([(0,m.oS)()],o.prototype,"nzIndicator",void 0),(0,p.gn)([(0,S.Rn)()],o.prototype,"nzDelay",void 0),(0,p.gn)([(0,S.yF)()],o.prototype,"nzSimple",void 0),(0,p.gn)([(0,S.yF)()],o.prototype,"nzSpinning",void 0),o})(),N=(()=>{class o{}return o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({imports:[l.vT,a.ez,D.Q8]}),o})()}}]);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy