##### Coverage Report - com.ctrip.framework.apollo.core.dto.ApolloConfig

Classes in this File | Line Coverage | Branch Coverage | Complexity
ApolloConfig |
0% | 0/31
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.core.dto;
2 |  |
3 |  |
     import java.util.Map;
4 |  |
5 |  |
     /**
6 |  |
      * @author Jason Song(song_s@ctrip.com)
7 |  |
      */
8 |  |
     public class ApolloConfig {
9 |  |
10 |  |
       private String appId;
11 |  |
12 |  |
       private String cluster;
13 |  |
14 |  |
       private String namespaceName;
15 |  |
16 |  |
       private Map<String, String> configurations;
17 |  |
18 |  |
       private String releaseKey;
19 |  |
20 | 0 |
       public ApolloConfig() {
21 | 0 |
       }
22 |  |
23 |  |
       public ApolloConfig(String appId,
24 |  |
                           String cluster,
25 |  |
                           String namespaceName,
26 | 0 |
                           String releaseKey) {
27 | 0 |
         this.appId = appId;
28 | 0 |
         this.cluster = cluster;
29 | 0 |
         this.namespaceName = namespaceName;
30 | 0 |
         this.releaseKey = releaseKey;
31 | 0 |
       }
32 |  |
33 |  |
       public String getAppId() {
34 | 0 |
         return appId;
35 |  |
       }
36 |  |
37 |  |
       public String getCluster() {
38 | 0 |
         return cluster;
39 |  |
       }
40 |  |
41 |  |
       public String getNamespaceName() {
42 | 0 |
         return namespaceName;
43 |  |
       }
44 |  |
45 |  |
       public String getReleaseKey() {
46 | 0 |
         return releaseKey;
47 |  |
       }
48 |  |
49 |  |
       public Map<String, String> getConfigurations() {
50 | 0 |
         return configurations;
51 |  |
       }
52 |  |
53 |  |
       public void setAppId(String appId) {
54 | 0 |
         this.appId = appId;
55 | 0 |
       }
56 |  |
57 |  |
       public void setCluster(String cluster) {
58 | 0 |
         this.cluster = cluster;
59 | 0 |
       }
60 |  |
61 |  |
       public void setNamespaceName(String namespaceName) {
62 | 0 |
         this.namespaceName = namespaceName;
63 | 0 |
       }
64 |  |
65 |  |
       public void setReleaseKey(String releaseKey) {
66 | 0 |
         this.releaseKey = releaseKey;
67 | 0 |
       }
68 |  |
69 |  |
       public void setConfigurations(Map<String, String> configurations) {
70 | 0 |
         this.configurations = configurations;
71 | 0 |
       }
72 |  |
73 |  |
       @Override
74 |  |
       public String toString() {
75 | 0 |
         final StringBuilder sb = new StringBuilder("ApolloConfig{");
76 | 0 |
         sb.append("appId='").append(appId).append('\'');
77 | 0 |
         sb.append(", cluster='").append(cluster).append('\'');
78 | 0 |
         sb.append(", namespaceName='").append(namespaceName).append('\'');
79 | 0 |
         sb.append(", configurations=").append(configurations);
80 | 0 |
         sb.append(", releaseKey='").append(releaseKey).append('\'');
81 | 0 |
         sb.append('}');
82 | 0 |
         return sb.toString();
83 |  |
       }
84 |  |
     }