Rev 1021 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package in.shop2020.thrift.clients;import in.shop2020.datalogger.DataLogger.Client;import in.shop2020.utils.ConfigClientKeys;import org.apache.thrift.TException;import org.apache.thrift.transport.TTransportException;public class DataLoggingClient extends GenericClient{private Client client = null;/**** @throws TTransportException*/public DataLoggingClient() throws TTransportException{this(ConfigClientKeys.datalogging_service_local_hostname.toString(), ConfigClientKeys.datalogging_service_local_wrapper_port.toString());}/*** get the client for given hostkey and portkey* @param hostConfigKey* @param portConfigKey* @throws TTransportException*/public DataLoggingClient(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() {try {client.closeSession();} catch (TException e) {e.printStackTrace();}}}