本文整理匯總了TypeScript中app/shared.JhiRoutesService.routeDown方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript JhiRoutesService.routeDown方法的具體用法?TypeScript JhiRoutesService.routeDown怎麽用?TypeScript JhiRoutesService.routeDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app/shared.JhiRoutesService
的用法示例。
在下文中一共展示了JhiRoutesService.routeDown方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1:
(error) => {
if (error.status === 503 || error.status === 500 || error.status === 404) {
this.updatingLogs = false;
if (error.status === 500 || error.status === 404) {
this.routesService.routeDown(this.activeRoute);
}
}
}
示例2:
(error) => {
if (error.status === 503 || error.status === 500 || error.status === 404) {
this.healthData = this.healthService.transformHealthData(error.json());
this.updatingHealth = false;
if (error.status === 500 || error.status === 404) {
this.routesService.routeDown(this.activeRoute);
}
}
}
示例3: displayActiveRouteLogs
displayActiveRouteLogs() {
this.updatingLogs = true;
if (this.activeRoute && this.activeRoute.status !== 'DOWN') {
this.logsService.findInstanceAll(this.activeRoute).subscribe(
(response) => {
this.loggers = response.body;
this.updatingLogs = false;
},
(error) => {
if (error.status === 503 || error.status === 500 || error.status === 404) {
this.updatingLogs = false;
if (error.status === 500 || error.status === 404) {
this.routesService.routeDown(this.activeRoute);
}
}
}
);
} else {
this.routesService.routeDown(this.activeRoute);
}
}
示例4: displayActiveRouteHealth
displayActiveRouteHealth() {
this.updatingHealth = true;
if (this.activeRoute && this.activeRoute.status !== 'DOWN') {
this.healthService.checkInstanceHealth(this.activeRoute).subscribe(
(health) => {
this.healthData = this.healthService.transformHealthData(health);
this.updatingHealth = false;
},
(error) => {
if (error.status === 503 || error.status === 500 || error.status === 404) {
this.healthData = this.healthService.transformHealthData(error.json());
this.updatingHealth = false;
if (error.status === 500 || error.status === 404) {
this.routesService.routeDown(this.activeRoute);
}
}
}
);
} else {
this.routesService.routeDown(this.activeRoute);
}
}