Subversion Repositories SmartDukaan

Rev

Rev 48 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 48 Rev 68
Line 1... Line 1...
1
package in.shop2020.utils;
1
package in.shop2020.utils;
2
 
2
 
-
 
3
import in.shop2020.config.ConfigException;
-
 
4
import in.shop2020.thrift.clients.config.ConfigClient;
-
 
5
 
3
public class Utils {
6
public class Utils {
4
	
7
	
-
 
8
	public Utils(){
-
 
9
		
-
 
10
	}
5
	
11
	
-
 
12
	public static void main(String a[]){
-
 
13
		ConfigClient client = ConfigClient.getClient();
-
 
14
		String val = null;
-
 
15
		try {
-
 
16
			val = client.get("usermodel_db_hb_host");
-
 
17
		} catch (ConfigException e) {
-
 
18
			// TODO Auto-generated catch block
-
 
19
			e.printStackTrace();
-
 
20
		}
-
 
21
		System.out.println(val);
-
 
22
	}
6
 
23
 
7
}
24
}