Subversion Repositories SmartDukaan

Rev

Rev 2821 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package in.shop2020.thrift.clients;

import in.shop2020.warehouse.WarehouseService.Client;
import in.shop2020.utils.ConfigClientKeys;

import org.apache.thrift.transport.TTransportException;

public class WarehouseClient extends GenericClient{

        private Client client = null;

        /**
         * 
         * @throws TTransportException
         */
        public WarehouseClient() throws TTransportException{
                this(ConfigClientKeys.warehouse_service_server_host.toString(), ConfigClientKeys.warehouse_service_server_port.toString());
        }

        /**
         * get the client for given hostkey and portkey
         * @param hostConfigKey
         * @param portConfigKey
         * @throws TTransportException
         */
        public WarehouseClient(String hostConfigKey, String portConfigKey) throws TTransportException{
                super(hostConfigKey, portConfigKey);
                client = new Client(protocol);
        }
        

        /**
         * Get the client
         * @return
         */
        public Client getClient(){
                return client;
        }
        
        @Override
        public void closeSession() {
                return;
        }

}