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

web.4996.385336a302a07892.js Maven / Gradle / Ivy

There is a newer version: 2.0-preview1
Show newest version
"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[4996],{94996:(q,l,a)=>{a.r(l),a.d(l,{JobOverviewDrawerBackpressureComponent:()=>N});var g=a(36895),d=a(19132),O=a(77579),m=a(39646),v=a(18505),f=a(95577),h=a(70262),k=a(82722),C=a(66093),B=a(82315),x=a(85336),T=a(73925),b=a(2577),o=a(6675),t=a(94650),P=a(22423),D=a(47932);function w(r,s){if(1&r&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"humanizeDuration"),t.qZA()),2&r){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,e.now-e.backpressure["end-timestamp"])," ago ")}}function y(r,s){1&r&&(t.TgZ(0,"span"),t._uU(1,"Sampling in progress..."),t.qZA())}function E(r,s){1&r&&(t.TgZ(0,"span"),t._uU(1," - "),t.qZA())}const p=function(r){return{state:r}};function M(r,s){if(1&r&&(t.TgZ(0,"span"),t._uU(1," Measurement: "),t.YNc(2,w,3,3,"span",2),t.YNc(3,y,2,0,"span",2),t.YNc(4,E,2,0,"span",2),t._UZ(5,"nz-divider",6),t._uU(6," Back Pressure Status: "),t.TgZ(7,"span"),t._UZ(8,"flink-dynamic-host",7),t.qZA()()),2&r){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.backpressure["end-timestamp"]),t.xp6(1),t.Q6J("ngIf","deprecated"===e.backpressure.status),t.xp6(1),t.Q6J("ngIf",!e.backpressure["end-timestamp"]&&"deprecated"!==e.backpressure.status),t.xp6(1),t.Q6J("nzType","vertical"),t.xp6(3),t.Q6J("data",t.VKq(6,p,e.backpressure["backpressure-level"]))("component",e.stateBadgeComponent)}}function z(r,s){1&r&&(t.TgZ(0,"span"),t._uU(1," Operator is not running. Cannot sample back pressure. "),t.qZA())}function Z(r,s){if(1&r&&(t.TgZ(0,"span",11),t._uU(1),t.qZA()),2&r){const e=t.oxw().ngIf;t.xp6(1),t.hij(" [attempt-",e["attempt-number"]+1,"] ")}}const A=function(r){return["/task-manager",r,"thread-dump"]},S=function(r){return{vertexName:r}};function U(r,s){if(1&r&&(t.TgZ(0,"a",12),t._uU(1," Dump "),t.qZA()),2&r){const e=t.oxw().ngIf,n=t.oxw(2);t.Q6J("routerLink",t.VKq(2,A,n.mapOfSubtask.get(e.subtask)["taskmanager-id"]))("queryParams",t.VKq(4,S,n.selectedVertex.detail.name+" ("+(e.subtask+1)+"/"))}}function I(r,s){if(1&r&&(t.ynx(0),t._uU(1),t.BQk()),2&r){const e=t.oxw().$implicit;t.xp6(1),t.hij(" \xa0[attempt-",e["attempt-number"]+1,"] ")}}function J(r,s){if(1&r&&(t.ynx(0),t.TgZ(1,"tr")(2,"td",14),t._uU(3),t.YNc(4,I,2,1,"ng-container",2),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._UZ(12,"flink-dynamic-host",7),t.qZA()(),t.BQk()),2&r){const e=s.$implicit,n=t.oxw(4);t.xp6(2),t.Q6J("nzIndentSize",1),t.xp6(1),t.hij(" ",e.subtask," "),t.xp6(1),t.Q6J("ngIf",void 0!==e["attempt-number"]),t.xp6(2),t.Oqu(n.prettyPrint(e.ratio)),t.xp6(2),t.Oqu(n.prettyPrint(e.idleRatio)),t.xp6(2),t.Oqu(n.prettyPrint(e.busyRatio)),t.xp6(2),t.Q6J("data",t.VKq(8,p,e["backpressure-level"]))("component",n.stateBadgeComponent)}}function R(r,s){if(1&r&&(t.ynx(0),t.YNc(1,J,13,10,"ng-container",13),t.BQk()),2&r){const e=t.oxw().ngIf,n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e["other-concurrent-attempts"])("ngForTrackBy",n.trackBySubtaskAttempt)}}function L(r,s){if(1&r){const e=t.EpF();t.ynx(0),t.TgZ(1,"tr")(2,"td",8),t.NdJ("nzExpandChange",function(i){const u=t.CHM(e).ngIf,_=t.oxw(2);return t.KtG(_.onExpandChange(u,i))}),t._uU(3),t.YNc(4,Z,2,1,"span",9),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._UZ(12,"flink-dynamic-host",7),t.qZA(),t.TgZ(13,"td"),t.YNc(14,U,2,6,"a",10),t.qZA()(),t.YNc(15,R,2,2,"ng-container",2),t.BQk()}if(2&r){const e=s.ngIf,n=t.oxw(2);t.xp6(2),t.Q6J("nzShowExpand",(null==e["other-concurrent-attempts"]?null:e["other-concurrent-attempts"].length)>0)("nzExpand",n.expandSet.has(e.subtask)),t.xp6(1),t.hij(" ",e.subtask," "),t.xp6(1),t.Q6J("ngIf",void 0!==e["attempt-number"]),t.xp6(2),t.Oqu(n.prettyPrint(e.ratio)),t.xp6(2),t.Oqu(n.prettyPrint(e.idleRatio)),t.xp6(2),t.Oqu(n.prettyPrint(e.busyRatio)),t.xp6(2),t.Q6J("data",t.VKq(11,p,e["backpressure-level"]))("component",n.stateBadgeComponent),t.xp6(2),t.Q6J("ngIf",n.mapOfSubtask.get(e.subtask)),t.xp6(1),t.Q6J("ngIf",n.expandSet.has(e.subtask))}}function j(r,s){if(1&r&&t.YNc(0,L,16,13,"ng-container",2),2&r){const e=s.$implicit,n=t.oxw();t.Q6J("ngIf",n.narrowType(e))}}const Q=function(){return{y:"calc( 100% - 90px )"}},K=function(){return["16%","16%","16%","16%","16%","20%"]};let N=(()=>{class r{constructor(e,n,i,c){this.jobService=e,this.jobLocalService=n,this.cdr=i,this.moduleConfig=c,this.trackBySubtask=(u,_)=>_.subtask,this.trackBySubtaskAttempt=(u,_)=>`${_.subtask}-${_["attempt-number"]}`,this.expandSet=new Set,this.isLoading=!0,this.now=Date.now(),this.backpressure={},this.listOfSubTaskBackpressure=[],this.mapOfSubtask=new Map,this.narrowType=(0,T.t)(),this.destroy$=new O.x,this.stateBadgeComponent=c.customComponents?.backpressureBadgeComponent||x.C.customComponents.backpressureBadgeComponent}ngOnInit(){this.jobLocalService.jobWithVertexChanges().pipe((0,v.b)(e=>{this.selectedVertex=e.vertex,this.cdr.markForCheck()}),(0,f.z)(e=>this.jobService.loadOperatorBackPressure(e.job.jid,e.vertex.id).pipe((0,h.K)(()=>(0,m.of)({})))),(0,k.R)(this.destroy$)).subscribe(e=>{this.isLoading=!1,this.now=Date.now(),this.backpressure=e,this.listOfSubTaskBackpressure=e?.subtasks||[],this.cdr.markForCheck()}),this.jobLocalService.jobWithVertexChanges().pipe((0,f.z)(e=>this.jobService.loadSubTasks(e.job.jid,e.vertex.id).pipe((0,h.K)(()=>(0,m.of)({})))),(0,k.R)(this.destroy$)).subscribe(e=>{this.mapOfSubtask=e?.subtasks.reduce(function(n,i){return n.set(i.subtask,i),n},new Map)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}collapseAll(){this.expandSet.clear(),this.cdr.markForCheck()}onExpandChange(e,n){n?this.expandSet.add(e.subtask):this.expandSet.delete(e.subtask),this.cdr.markForCheck()}prettyPrint(e){return isNaN(e)?"N/A":`${Math.round(100*e)}%`}sortByBackpressureRatio(e,n){return e.ratio-n.ratio}sortByIdleRatio(e,n){return e.idleRatio-n.idleRatio}sortByBusyRatio(e,n){return e.busyRatio-n.busyRatio}}return r.\u0275fac=function(e){return new(e||r)(t.Y36(P.O),t.Y36(D.R),t.Y36(t.sBO),t.Y36(x.s))},r.\u0275cmp=t.Xpm({type:r,selectors:[["flink-job-overview-drawer-backpressure"]],standalone:!0,features:[t.jDz],decls:21,vars:18,consts:[["nzSize","small",3,"nzLoading","nzData","nzScroll","nzWidthConfig","nzFrontPagination","nzShowPagination","nzVirtualItemSize","nzVirtualMinBufferPx","nzVirtualMaxBufferPx","nzVirtualForTrackBy"],["colspan","6",1,"title"],[4,"ngIf"],[3,"nzSortFn"],[3,"nzSortFn","nzSortOrder"],["nz-virtual-scroll",""],[3,"nzType"],[3,"data","component"],[3,"nzShowExpand","nzExpand","nzExpandChange"],["class","left-margin",4,"ngIf"],["target","_blank",3,"routerLink","queryParams",4,"ngIf"],[1,"left-margin"],["target","_blank",3,"routerLink","queryParams"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"nzIndentSize"]],template:function(e,n){1&e&&(t.TgZ(0,"nz-table",0)(1,"thead")(2,"tr")(3,"th",1),t.YNc(4,M,9,8,"span",2),t.YNc(5,z,2,0,"span",2),t.qZA()(),t.TgZ(6,"tr")(7,"th"),t._uU(8,"SubTask"),t.qZA(),t.TgZ(9,"th",3),t._uU(10,"Backpressure"),t.qZA(),t.TgZ(11,"th",3),t._uU(12,"Idle"),t.qZA(),t.TgZ(13,"th",4),t._uU(14,"Busy"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"Backpressure Status"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"Thread Dump"),t.qZA()()(),t.TgZ(19,"tbody"),t.YNc(20,j,1,1,"ng-template",5),t.qZA()()),2&e&&(t.Q6J("nzLoading",n.isLoading)("nzData",n.listOfSubTaskBackpressure)("nzScroll",t.DdM(16,Q))("nzWidthConfig",t.DdM(17,K))("nzFrontPagination",!1)("nzShowPagination",!1)("nzVirtualItemSize",36)("nzVirtualMinBufferPx",300)("nzVirtualMaxBufferPx",300)("nzVirtualForTrackBy",n.trackBySubtask),t.xp6(4),t.Q6J("ngIf","RUNNING"===(null==n.selectedVertex||null==n.selectedVertex.detail?null:n.selectedVertex.detail.status)),t.xp6(1),t.Q6J("ngIf","RUNNING"!==(null==n.selectedVertex||null==n.selectedVertex.detail?null:n.selectedVertex.detail.status)),t.xp6(4),t.Q6J("nzSortFn",n.sortByBackpressureRatio),t.xp6(2),t.Q6J("nzSortFn",n.sortByIdleRatio),t.xp6(2),t.Q6J("nzSortFn",n.sortByBusyRatio)("nzSortOrder","descend"))},dependencies:[o.HQ,o.N8,o.qD,o.Uo,o._C,o.h7,o.Om,o.p0,o.$Z,o.zu,g.O5,B.w,b.S,b.g,C.y,g.sg,d.Bz,d.yS],styles:["[_nghost-%COMP%]   .left-margin[_ngcontent-%COMP%]{margin-left:4px}[_nghost-%COMP%]     .ant-table-row-indent{padding-left:0!important}[_nghost-%COMP%]     .ant-table-row-indent+.ant-table-row-expand-icon{margin-top:2px}[_nghost-%COMP%]     .ant-table-cell{font-size:12px}[_nghost-%COMP%]     ::-webkit-scrollbar{display:none}[_nghost-%COMP%]     nz-table, [_nghost-%COMP%]     nz-spin, [_nghost-%COMP%]     cdk-virtual-scroll-viewport, [_nghost-%COMP%]     nz-table-inner-scroll, [_nghost-%COMP%]     .ant-spin-container, [_nghost-%COMP%]     .ant-table{height:100%}[_nghost-%COMP%]   flink-backpressure-badge[_ngcontent-%COMP%], [_nghost-%COMP%]   flink-dynamic-host[_ngcontent-%COMP%]{display:inline-block;margin-left:4px}"],changeDetection:0}),r})()}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy