Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
48 ashish 1
package in.shop2020.utils;
2
 
68 ashish 3
import in.shop2020.config.ConfigException;
4
import in.shop2020.thrift.clients.config.ConfigClient;
5
 
48 ashish 6
public class Utils {
7
 
68 ashish 8
	public Utils(){
9
 
10
	}
48 ashish 11
 
68 ashish 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
	}
48 ashish 23
 
24
}