Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
9061 manish.sha 1
package in.shop2020.thrift.clients;
2
 
3
import in.shop2020.utils.ConfigClientKeys;
4
import in.shop2020.googleadwords.GoogleAdwordsService.Client;
5
//import in.shop2020.
6
import org.apache.thrift.transport.TTransportException;
7
 
8
 
9
public class AdwordsClient extends GenericClient{
10
 
11
	private Client client =null;
12
 
13
	/**
14
	 * 
15
	 * @throws TTransportException
16
	 */
17
	public AdwordsClient() throws TTransportException {
18
		this(ConfigClientKeys.adwords_service_server_host.toString(), ConfigClientKeys.adwords_service_server_port.toString());
19
	}
20
 
21
	/**
22
	 * get the client for given hostkey and portkey
23
	 * @param hostConfigKey
24
	 * @param portConfigKey
25
	 * @throws TTransportException
26
	 */
27
	public AdwordsClient(String hostConfigKey, String portConfigKey)
28
			throws TTransportException {
29
		super(hostConfigKey, portConfigKey);
30
		client = new Client(protocol);
31
	}
32
 
33
	/**
34
	 * Get the client
35
	 * @return
36
	 */
37
	public Client getClient(){
38
		return client;
39
	}
40
 
41
	@Override
42
	public void closeSession() {
43
		// TODO Auto-generated method stub
44
 
45
	}
46
 
47
}