Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21553 ashik.ali 1
package com.spice.profitmandi.thrift.clients;
2
 
3
import in.shop2020.crm.CRMService.Client;
4
 
5
import org.apache.thrift.transport.TTransportException;
6
 
7
public class CRMClient extends GenericClient{
8
 
9
	private Client client = null;
10
 
11
	/**
12
	 * 
13
	 * @throws TTransportException
14
	 */
15
	public CRMClient() throws TTransportException{
16
		this(ConfigClientKeys.crm_service_server_host.toString(), ConfigClientKeys.crm_service_server_port.toString());
17
	}
18
 
19
	/**
20
	 * get the client for given hostkey and portkey
21
	 * @param hostConfigKey
22
	 * @param portConfigKey
23
	 * @throws TTransportException
24
	 */
25
	public CRMClient(String hostConfigKey, String portConfigKey) throws TTransportException{
26
		super(hostConfigKey, portConfigKey);
27
		client = new Client(protocol);
28
	}
29
 
30
 
31
	/**
32
	 * Get the client
33
	 * @return
34
	 */
35
	public Client getClient(){
36
		return client;
37
	}
38
 
39
	@Override
40
	public void closeSession() {
41
		return;
42
	}
43
 
44
}