yangys
2025-11-21 e8ed1a91c77ab62a924f12acd55777f227bacd7e
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
package com.qianwen.smartman.common.constant;
 
 
public interface LauncherConstant {
    public static final String SENTINEL_DEV_ADDR = "127.0.0.1:8858";
    public static final String SENTINEL_PROD_ADDR = "10.211.55.5:8858";
    public static final String SENTINEL_TEST_ADDR = "172.30.0.58:8858";
    public static final String ELK_DEV_ADDR = "127.0.0.1:9000";
    public static final String ELK_PROD_ADDR = "172.30.0.58:9000";
    public static final String ELK_TEST_ADDR = "172.30.0.58:9000";
 
    static String sentinelAddr(String profile) {
        switch (profile) {
          case "prod":
            return "10.211.55.5:8858";
          case "test":
            return "172.30.0.58:8858";
        } 
        return "127.0.0.1:8858";
      }
      
      static String elkAddr(String profile) {
        switch (profile) {
          case "prod":
            return "172.30.0.58:9000";
          case "test":
            return "172.30.0.58:9000";
        } 
        return "127.0.0.1:9000";
      }
}