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

web.5670.2c88a6a8cb19fd18.js Maven / Gradle / Ivy

"use strict";(self.webpackChunkflink=self.webpackChunkflink||[]).push([[5670],{72801:(L,h,n)=>{n.d(h,{i:()=>g});const g={scrollBeyondLastLine:!1,glyphMargin:!0,language:"apex",wordWrap:"on",readOnly:!0,minimap:{enabled:!1}}},42455:(L,h,n)=>{n.d(h,{c:()=>u});var g=n(36895),s=n(94650);let u=(()=>{class c{constructor(o){this.locale=o}transform(o,p="mediumDate",e,r){if(null==o||""===o||o!=o||o<0)return"\u2013";try{return(0,g.p6)(o,p,r||this.locale,e)}catch{}}}return c.\u0275fac=function(o){return new(o||c)(s.Y36(s.soG,16))},c.\u0275pipe=s.Yjl({name:"humanizeDate",type:c,pure:!0,standalone:!0}),c})()},11186:(L,h,n)=>{n.r(h),n.d(h,{JobManagerLogListComponent:()=>S});var g=n(36895),s=n(19132),u=n(77579),c=n(39646),d=n(70262),o=n(28746),p=n(82722),e=n(42455),r=n(80833),i=n(6675),M=n(73925),t=n(94650),P=n(94138);function O(_,m){if(1&_&&(t.ynx(0),t.TgZ(1,"tr")(2,"td")(3,"a",4),t._uU(4),t.qZA()(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"humanizeDate"),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.ALo(10,"number"),t.qZA()(),t.BQk()),2&_){const a=m.ngIf,l=t.oxw(2);t.xp6(3),t.Q6J("queryParamsHandling","preserve")("routerLink",l.logRouterFactory(a.name)),t.xp6(1),t.hij(" ",a.name," "),t.xp6(2),t.Oqu(t.xi3(7,5,a.mtime,"yyyy-MM-dd HH:mm:ss")),t.xp6(3),t.Oqu(t.xi3(10,8,a.size/1024,"1.0-2"))}}function D(_,m){if(1&_&&t.YNc(0,O,11,11,"ng-container",3),2&_){const a=m.$implicit,l=t.oxw();t.Q6J("ngIf",l.narrowLogData(a))}}const z=function(){return["50%","25%","25%"]},v=function(){return{y:"calc( 100% - 36px )"}};let S=(()=>{class _{constructor(a,l,C){this.jobManagerService=a,this.cdr=l,this.moduleConfig=C,this.trackByName=(E,f)=>f.name,this.narrowLogData=(0,M.t)(),this.sortLastModifiedTimeFn=(E,f)=>E.mtime-f.mtime,this.sortSizeFn=(E,f)=>E.size-f.size,this.listOfLog=[],this.isLoading=!0,this.destroy$=new u.x,this.logRouterFactory=C.routerFactories?.jobManager||r.I.routerFactories.jobManager}ngOnInit(){this.jobManagerService.loadLogList().pipe((0,d.K)(()=>(0,c.of)([])),(0,o.x)(()=>{this.isLoading=!1,this.cdr.markForCheck()}),(0,p.R)(this.destroy$)).subscribe(a=>{this.listOfLog=a})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return _.\u0275fac=function(a){return new(a||_)(t.Y36(P.x),t.Y36(t.sBO),t.Y36(r.w))},_.\u0275cmp=t.Xpm({type:_,selectors:[["flink-job-manager-log-list"]],standalone:!0,features:[t.jDz],decls:11,vars:14,consts:[["nzBordered","","nzSize","small",3,"nzData","nzLoading","nzFrontPagination","nzShowPagination","nzVirtualItemSize","nzVirtualForTrackBy","nzVirtualMinBufferPx","nzVirtualMaxBufferPx","nzWidthConfig","nzScroll"],[3,"nzSortFn"],["nz-virtual-scroll",""],[4,"ngIf"],[3,"queryParamsHandling","routerLink"]],template:function(a,l){1&a&&(t.TgZ(0,"nz-table",0)(1,"thead")(2,"tr")(3,"th"),t._uU(4,"Log Name"),t.qZA(),t.TgZ(5,"th",1),t._uU(6,"Last Modified Time"),t.qZA(),t.TgZ(7,"th",1),t._uU(8,"Size (KB)"),t.qZA()()(),t.TgZ(9,"tbody"),t.YNc(10,D,1,1,"ng-template",2),t.qZA()()),2&a&&(t.Q6J("nzData",l.listOfLog)("nzLoading",l.isLoading)("nzFrontPagination",!1)("nzShowPagination",!1)("nzVirtualItemSize",36)("nzVirtualForTrackBy",l.trackByName)("nzVirtualMinBufferPx",480)("nzVirtualMaxBufferPx",480)("nzWidthConfig",t.DdM(12,z))("nzScroll",t.DdM(13,v)),t.xp6(5),t.Q6J("nzSortFn",l.sortLastModifiedTimeFn),t.xp6(2),t.Q6J("nzSortFn",l.sortSizeFn))},dependencies:[i.HQ,i.N8,i.qD,i.Uo,i._C,i.Om,i.p0,i.$Z,i.zu,g.O5,s.yS,e.c,g.JJ],styles:["[_nghost-%COMP%]{display:flex;flex:1;padding:16px}[_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%]     .ant-table-cell{font-size:12px}"],changeDetection:0}),_})()},94138:(L,h,n)=>{n.d(h,{x:()=>d});var g=n(80529),s=n(54004),u=n(94650),c=n(70946);let d=(()=>{class o{constructor(e,r){this.httpClient=e,this.configService=r}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 g.WM).append("Cache-Control","no-cache")})}loadStdout(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/stdout`,{responseType:"text",headers:(new g.WM).append("Cache-Control","no-cache")})}loadLogList(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/logs`).pipe((0,s.U)(e=>e.logs))}loadLog(e){const r=`${this.configService.BASE_URL}/jobmanager/logs/${e}`;return this.httpClient.get(r,{responseType:"text",headers:(new g.WM).append("Cache-Control","no-cache")}).pipe((0,s.U)(i=>({data:i,url:r})))}loadThreadDump(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/thread-dump`).pipe((0,s.U)(e=>e.threadInfos.map(r=>r.stringifiedThreadInfo).join("")))}loadMetricsName(){return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`).pipe((0,s.U)(e=>e.map(r=>r.id)))}loadMetrics(e){const r=e.join(",");return this.httpClient.get(`${this.configService.BASE_URL}/jobmanager/metrics`,{params:{get:r}}).pipe((0,s.U)(i=>{const M={};return i.forEach(t=>{M[t.id]=parseInt(t.value,10)}),M}))}loadHistoryServerConfig(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/jobmanager/config`)}loadHistoryServerEnvironment(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/jobmanager/environment`)}loadHistoryServerJobManagerLogUrl(e){return this.httpClient.get(`${this.configService.BASE_URL}/jobs/${e}/jobmanager/log-url`).pipe((0,s.U)(r=>r.url))}}return o.\u0275fac=function(e){return new(e||o)(u.LFG(g.eN),u.LFG(c.E))},o.\u0275prov=u.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy