ProjectOnline.java
4.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package com.ui.project;
import java.util.*;
import java.util.stream.Collectors;
public class ProjectOnline {
private static List<String> JAVA_ENV_LIST=new ArrayList<>();
//private static List<String> JAVA_ENV_LIST_QCLOUD = Arrays.asList("qcloud", "qcloud_gray");
//private static List<String> JAVA_ENV_LIST_AWS= Arrays.asList( "aws","aws_gray");
private final static String JAVA_ENV_AWS="aws,aws_gray";
private final static String JAVA_ENV_QCLOUD="qcloud,qcloud_gray";
private final static String JAVA_ENV_QCLOUD_AZ2="qcloudaz2";
private final static String JAVA_ENV_QCLOUD_AWS=JAVA_ENV_AWS+","+JAVA_ENV_QCLOUD;//默认值
public final static String JAVA_ENV_ALL=JAVA_ENV_AWS+","+JAVA_ENV_QCLOUD+","+JAVA_ENV_QCLOUD_AZ2;
private static List<Project> JAVA_LIST = new ArrayList<>();
private static Map<String,Project> JAVA_MAP = new HashMap<>();
//private static List<Project> PHP_LIST = new ArrayList<Project>();
//private static List<Project> NODE_LIST = new ArrayList<Project>();
static{
// java 核心服务
JAVA_LIST.add(new Project("1","yohobuy-activity","129","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-wechat","248","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yoho-sns","125","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yoho-erp-gateway","977","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yoho-message","123","yoho30","aws,qcloud,qcloud_gray,"+JAVA_ENV_QCLOUD_AZ2));
JAVA_LIST.add(new Project("1","uic","439","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yoho-users","134","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-resources","122","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-promotion","140","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-product","143","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-order","124","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-brower","131","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-bigdata","144","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yoho-gateway","126","yoho30",JAVA_ENV_ALL));
JAVA_LIST.add(new Project("1","yohobuy-risk","932","yoho30",JAVA_ENV_ALL));
//只有qcloud_gray: 媒体java (灰度)
JAVA_LIST.add(new Project("1", "yoho-now", "690", "YOHONow","qcloud_gray"));
JAVA_LIST.add(new Project("1","yoho-mars","737","media","qcloud_gray"));
JAVA_LIST.add(new Project("1","yohomars-platform","764","media","qcloud_gray"));
JAVA_LIST.add(new Project("1","yohonow-platform","775","media","qcloud_gray"));
//只有qcloud : java服务-单中心
JAVA_LIST.add(new Project("1","yoho-push","137","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","cms_push","514","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","yoho-social","353","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","yohobuy-union","133","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","yohobuy-crm","275","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","yohobuy-task","138","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","yoho-message-controller","684","yoho30","qcloud"));
JAVA_LIST.add(new Project("1","yoho-message-sender","685","yoho30","qcloud"));
//JAVA_LIST.add(new Project("1","yoho-cobar","461","yoho30"));
//JAVA_LIST.add(new Project("1","yohobuy-global","679","yoho30"));
//JAVA_LIST.add(new Project("1","mars_push","494","yoho30"));
//JAVA_LIST.add(new Project("1","yoho-union-recomand","789","yoho30"));
//只有qcloud、 qcloud灰度。 线下店java服务
JAVA_LIST.add(new Project("1","yohobuy-shops","490","yoho30",JAVA_ENV_QCLOUD));
JAVA_LIST.add(new Project("1","yohobuy-portal-gateway","557","yoho30",JAVA_ENV_QCLOUD));
JAVA_LIST.add(new Project("1","yohobuy-extendstore","852","yoho30",JAVA_ENV_QCLOUD));
JAVA_LIST.add(new Project("2","yoho-search-service","12","yoho-search","aws,qcloud,"+JAVA_ENV_QCLOUD_AZ2));
JAVA_LIST.add(new Project("2","yoho-search-consumer","8","yoho-search","aws,qcloud,"+JAVA_ENV_QCLOUD_AZ2));
JAVA_LIST.add(new Project("2","yoho-search-producer","7","yoho-search","aws,qcloud,"+JAVA_ENV_QCLOUD_AZ2));
JAVA_LIST.add(new Project("2","yohomars-search-service","554","yoho-search",JAVA_ENV_QCLOUD_AWS));
JAVA_LIST.add(new Project("2","yoho-search-adaptor","13","yoho-search","aws,qcloud"));
JAVA_LIST.add(new Project("3","yohobuy-platform","110","platform",JAVA_ENV_QCLOUD_AWS));
//把list转成map,放到最后
JAVA_MAP=JAVA_LIST.stream().collect(Collectors.toMap(Project::getName,Project->Project));
}
public static List<Project> getJavaList() {
return JAVA_LIST;
}
public static Project getJavaProjectByName(String projectName) {
return JAVA_MAP.get(projectName);
}
}