View as "text/plain" | Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.thrift.clients;import in.shop2020.content.ContentService.Client;import org.apache.thrift.transport.TTransportException;public class ContentClient extends GenericClient {private Client client = null;/**** @throws TTransportException*/public ContentClient() throws TTransportException{this(ConfigClientKeys.content_service_server_host.toString(), ConfigClientKeys.content_service_server_port.toString());}/*** get the client for given hostkey and portkey* @param hostConfigKey* @param portConfigKey* @throws TTransportException*/public ContentClient(String hostConfigKey, String portConfigKey) throws TTransportException{super(hostConfigKey, portConfigKey);client = new Client(protocol);}/*** Get the client* @return*/public Client getClient(){return client;}@Overridepublic void closeSession() {return;}}