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

web.1940.0f090d1ca4f13ee4.js Maven / Gradle / Ivy

There is a newer version: 2.0-preview1
Show newest version
"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[1940],{42455:(T,f,n)=>{n.d(f,{c:()=>i});var l=n(36895),t=n(94650);let i=(()=>{class a{constructor(o){this.locale=o}transform(o,m="mediumDate",C,r){if(null==o||""===o||o!=o||o<0)return"\u2013";try{return(0,l.p6)(o,m,r||this.locale,C)}catch{}}}return a.\u0275fac=function(o){return new(o||a)(t.Y36(t.soG,16))},a.\u0275pipe=t.Yjl({name:"humanizeDate",type:a,pure:!0,standalone:!0}),a})()},82315:(T,f,n)=>{n.d(f,{w:()=>i});var l=n(7963),t=n(94650);let i=(()=>{class a{transform(o,m=!1){if((0,l.k)(o)||isNaN(o))return"-";if(o<0)return"-";{const C=o%1e3;let r=Math.floor(o/1e3);const u=r%60;r=Math.floor(r/60);const c=r%60;r=Math.floor(r/60);const e=r%24;r=Math.floor(r/24);const s=r;return 0===s?0===e?0===c?0===u?`${C}ms`:`${u}s`:`${c}m ${u}s`:m?`${e}h ${c}m`:`${e}h ${c}m ${u}s`:m?`${s}d ${e}h`:`${s}d ${e}h ${c}m ${u}s`}}}return a.\u0275fac=function(o){return new(o||a)},a.\u0275pipe=t.Yjl({name:"humanizeDuration",type:a,pure:!0,standalone:!0}),a})()},27304:(T,f,n)=>{n.d(f,{A:()=>i});var l=n(94650),t=n(70946);let i=(()=>{class a{constructor(o){this.configService=o}backgroundColor(o){return this.configService.COLOR_MAP[o]}}return a.\u0275fac=function(o){return new(o||a)(l.Y36(t.E))},a.\u0275cmp=l.Xpm({type:a,selectors:[["flink-job-badge"]],inputs:{state:"state"},standalone:!0,features:[l.jDz],decls:3,vars:3,consts:[[1,"background"]],template:function(o,m){1&o&&(l.TgZ(0,"div",0)(1,"span"),l._uU(2),l.qZA()()),2&o&&(l.xp6(1),l.Udp("background",m.backgroundColor(m.state)),l.xp6(1),l.Oqu(m.state))},styles:["span[_ngcontent-%COMP%]{width:30px;padding:3px 5px;color:#fff;font-weight:700;text-align:center;cursor:default}"],changeDetection:0}),a})()},81940:(T,f,n)=>{n.d(f,{Q:()=>g});var l=n(36895),t=n(94650),i=n(77579),a=n(82722),D=n(95577),o=n(42455),m=n(82315),C=n(27304),r=n(30500),u=n(51971),c=n(49651),e=n(6675),s=n(22679),_=n(22423);function E(h,M){if(1&h){const d=t.EpF();t.TgZ(0,"tr",6),t.NdJ("click",function(){const P=t.CHM(d).$implicit,O=t.oxw();return t.KtG(O.navigateToJob(P))}),t.TgZ(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.ALo(5,"humanizeDate"),t.qZA(),t.TgZ(6,"td"),t._uU(7),t.ALo(8,"humanizeDuration"),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.ALo(11,"humanizeDate"),t.qZA(),t.TgZ(12,"td"),t._UZ(13,"flink-task-badge",7),t.qZA(),t.TgZ(14,"td"),t._UZ(15,"flink-job-badge",8),t.qZA()()}if(2&h){const d=M.$implicit;t.xp6(2),t.Oqu(d.name),t.xp6(2),t.Oqu(t.xi3(5,6,d["start-time"],"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.Oqu(t.lcZ(8,9,d.duration)),t.xp6(3),t.Oqu(t.xi3(11,11,d["end-time"],"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.Q6J("tasks",d.tasks),t.xp6(2),t.Q6J("state",d.state)}}let g=(()=>{class h{constructor(d,p,$,P){this.statusService=d,this.jobService=p,this.nzMessageService=$,this.cdr=P,this.listOfJob=[],this.isLoading=!0,this.destroy$=new i.x,this.completed=!1,this.navigate=new t.vpe,this.sortJobNameFn=(O,v)=>O.name.localeCompare(v.name),this.sortStartTimeFn=(O,v)=>O["start-time"]-v["start-time"],this.sortDurationFn=(O,v)=>O.duration-v.duration,this.sortEndTimeFn=(O,v)=>O["end-time"]-v["end-time"],this.sortStateFn=(O,v)=>O.state.localeCompare(v.state)}trackJobBy(d,p){return p.jid}navigateToJob(d){"INITIALIZING"===d.state?this.nzMessageService.info("Job detail page is not available while it is in state INITIALIZING."):this.navigate.emit(d)}ngOnInit(){this.jobData$=this.jobData$||this.statusService.refresh$.pipe((0,a.R)(this.destroy$),(0,D.z)(()=>this.jobService.loadJobs())),this.jobData$.subscribe(d=>{this.isLoading=!1,this.listOfJob=d.filter(p=>p.completed===this.completed),this.cdr.markForCheck()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}ngOnChanges(d){const{completed:p}=d;p&&(this.isLoading=!0,this.cdr.markForCheck())}}return h.\u0275fac=function(d){return new(d||h)(t.Y36(s.B),t.Y36(_.O),t.Y36(c.dD),t.Y36(t.sBO))},h.\u0275cmp=t.Xpm({type:h,selectors:[["flink-job-list"]],inputs:{completed:"completed",title:"title",jobData$:"jobData$"},outputs:{navigate:"navigate"},standalone:!0,features:[t.TTD,t.jDz],decls:19,vars:14,consts:[[3,"nzBordered","nzTitle","nzLoading"],[1,"no-border",3,"nzSize","nzData","nzFrontPagination","nzShowPagination"],["table",""],["nzWidth","40%",3,"nzSortFn"],[3,"nzSortFn"],["class","clickable",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"clickable",3,"click"],[3,"tasks"],[3,"state"]],template:function(d,p){if(1&d&&(t.TgZ(0,"nz-card",0)(1,"nz-table",1,2)(3,"thead")(4,"tr")(5,"th",3),t._uU(6,"Job Name"),t.qZA(),t.TgZ(7,"th",4),t._uU(8,"Start Time"),t.qZA(),t.TgZ(9,"th",4),t._uU(10,"Duration"),t.qZA(),t.TgZ(11,"th",4),t._uU(12,"End Time"),t.qZA(),t.TgZ(13,"th"),t._uU(14,"Tasks"),t.qZA(),t.TgZ(15,"th",4),t._uU(16,"Status"),t.qZA()()(),t.TgZ(17,"tbody"),t.YNc(18,E,16,14,"tr",5),t.qZA()()()),2&d){const $=t.MAs(2);t.Q6J("nzBordered",!1)("nzTitle",p.title)("nzLoading",p.isLoading),t.xp6(1),t.Q6J("nzSize","small")("nzData",p.listOfJob)("nzFrontPagination",!1)("nzShowPagination",!1),t.xp6(4),t.Q6J("nzSortFn",p.sortJobNameFn),t.xp6(2),t.Q6J("nzSortFn",p.sortStartTimeFn),t.xp6(2),t.Q6J("nzSortFn",p.sortDurationFn),t.xp6(2),t.Q6J("nzSortFn",p.sortEndTimeFn),t.xp6(4),t.Q6J("nzSortFn",p.sortStateFn),t.xp6(3),t.Q6J("ngForOf",$.data)("ngForTrackBy",p.trackJobBy)}},dependencies:[u.vh,u.bd,e.HQ,e.N8,e.qD,e.Uo,e._C,e.Om,e.p0,e.$Z,r.K,C.A,l.sg,o.c,m.w,c.gR],styles:["[_nghost-%COMP%]     .ant-card-body{padding:24px 16px}"],changeDetection:0}),h})()},30500:(T,f,n)=>{n.d(f,{K:()=>C});var l=n(36895),t=n(37570),i=n(94650),a=n(70946);function D(r,u){if(1&r&&(i.TgZ(0,"span",4),i._uU(1),i.qZA()),2&r){const c=i.oxw().$implicit,e=i.oxw(2);i.Udp("background",e.colorMap[c]),i.Q6J("nzTooltipTitle",c),i.xp6(1),i.hij(" ",e.tasks[c]," ")}}function o(r,u){if(1&r&&(i.ynx(0),i.YNc(1,D,2,4,"span",3),i.BQk()),2&r){const c=u.$implicit,e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.tasks[c])}}function m(r,u){if(1&r&&(i.TgZ(0,"div",1),i.YNc(1,o,2,1,"ng-container",2),i.qZA()),2&r){const c=i.oxw();i.xp6(1),i.Q6J("ngForOf",c.statusList)}}let C=(()=>{class r{constructor(c){this.configService=c,this.statusList=Object.keys(this.configService.COLOR_MAP)}get colorMap(){return this.configService.COLOR_MAP}}return r.\u0275fac=function(c){return new(c||r)(i.Y36(a.E))},r.\u0275cmp=i.Xpm({type:r,selectors:[["flink-task-badge"]],inputs:{tasks:"tasks"},standalone:!0,features:[i.jDz],decls:1,vars:1,consts:[["class","background",4,"ngIf"],[1,"background"],[4,"ngFor","ngForOf"],["nz-tooltip","",3,"nzTooltipTitle","background",4,"ngIf"],["nz-tooltip","",3,"nzTooltipTitle"]],template:function(c,e){1&c&&i.YNc(0,m,2,1,"div",0),2&c&&i.Q6J("ngIf",e.tasks)},dependencies:[l.sg,l.O5,t.cg,t.SY],styles:["span[_ngcontent-%COMP%]{min-width:32px;padding:3px 5px;color:#fff;font-weight:700;text-align:center;cursor:default}"],changeDetection:0}),r})()},22423:(T,f,n)=>{n.d(f,{O:()=>r});var l=n(60515),t=n(4128),i=n(95577),a=n(54004),D=n(70262),o=n(94650),m=n(80529),C=n(70946);let r=(()=>{class u{constructor(e,s){this.httpClient=e,this.configService=s}cancelJob(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/yarn-cancel`)}loadJobs(){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/overview`).pipe((0,a.U)(e=>(e.jobs.forEach(s=>{for(const _ in s.tasks){const E=_.toUpperCase();s.tasks[E]=s.tasks[_],delete s.tasks[_]}s.completed=["FINISHED","FAILED","CANCELED"].indexOf(s.state)>-1}),e.jobs||[])),(0,D.K)(()=>l.E))}loadJobConfig(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/config`)}loadJob(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}`).pipe((0,a.U)(s=>this.convertJob(s)))}loadAccumulators(e,s){return(0,t.D)([this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/accumulators`),this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/subtasks/accumulators`)]).pipe((0,a.U)(([_,E])=>({main:_["user-accumulators"],subtasks:E.subtasks})))}loadExceptions(e,s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/exceptions?maxExceptions=${s}`)}loadOperatorBackPressure(e,s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/backpressure`)}loadOperatorFlameGraph(e,s,_){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/flamegraph?type=${_}`)}loadOperatorFlameGraphForSingleSubtask(e,s,_,E){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/flamegraph?type=${_}&subtaskindex=${E}`)}loadSubTasks(e,s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}`)}loadSubTaskTimes(e,s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/subtasktimes`)}loadTaskManagers(e,s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/vertices/${s}/taskmanagers`)}loadCheckpointStats(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/checkpoints`)}loadCheckpointConfig(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/checkpoints/config`)}loadCheckpointDetails(e,s){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/checkpoints/details/${s}`)}loadCheckpointSubtaskDetails(e,s,_){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/checkpoints/details/${s}/subtasks/${_}`)}loadJobResourceRequirements(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/resource-requirements`)}changeDesiredParallelism(e,s){return this.loadJobResourceRequirements(e).pipe((0,a.U)(_=>{for(const E in _){const g=s.get(E);null!=g&&(_[E].parallelism.upperBound=g)}return _})).pipe((0,i.z)(_=>this.httpClient.put(`${this.configService.BASE_URL}/jobs/${e}/resource-requirements`,_)))}convertJob(e){const s=[];let _=[];if(e.plan?.nodes?.length){_=e.plan.nodes.map(g=>{let h;return e.vertices&&e.vertices.length&&(h=e.vertices.find(M=>M.id===g.id)),{...g,detail:h}}),_.forEach(g=>{g.inputs&&g.inputs.length&&g.inputs.forEach(h=>{s.push({...h,source:h.id,target:g.id,id:`${h.id}-${g.id}`})})});const E=e.vertices.map(g=>g.id);_.sort((g,h)=>E.indexOf(g.id)-E.indexOf(h.id))}return{...e,plan:{...e.plan,nodes:_,links:s}}}}return u.\u0275fac=function(e){return new(e||u)(o.LFG(m.eN),o.LFG(C.E))},u.\u0275prov=o.Yz7({token:u,factory:u.\u0275fac,providedIn:"root"}),u})()},7963:(T,f,n)=>{function l(t){return null==t}n.d(f,{k:()=>l})}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy