feature(web): 增加 a4 集群的监控

This commit is contained in:
2023-05-31 18:50:52 +08:00
parent 08f2b43ee6
commit 6132f46325
8 changed files with 276 additions and 155 deletions

View File

@@ -0,0 +1,13 @@
package com.lanyuanxiaoyao.service.forest.service;
import com.dtflys.forest.annotation.BaseRequest;
/**
* Yarn 信息
*
* @author lanyuanxiaoyao
* @date 2023-04-21
*/
@BaseRequest(baseURL = "http://service-yarn-query-a4")
public interface YarnA4Service extends YarnService {
}

View File

@@ -39,13 +39,15 @@ public class YarnClusterService {
YarnB1Service yarnB1Service,
YarnB5Service yarnB5Service,
YarnB5SyncService yarnB5SyncService,
YarnB4Service yarnB4Service
YarnB4Service yarnB4Service,
YarnA4Service yarnA4Service
) {
MutableMap<String, YarnService> servicesMap = Maps.mutable.empty();
servicesMap.put(Constants.CLUSTER_B1, yarnB1Service);
servicesMap.put(Constants.CLUSTER_B5, yarnB5Service);
servicesMap.put(Constants.CLUSTER_B5_SYNC, yarnB5SyncService);
servicesMap.put(Constants.CLUSTER_B4, yarnB4Service);
servicesMap.put(Constants.CLUSTER_A4, yarnA4Service);
this.servicesMap = servicesMap.toImmutable();
}