private final static Logger logger = LoggerFactory.getLogger(AiravataClientFactory.class);
public static Airavata.Client createAiravataClient(String serverHost, int serverPort) throws AiravataClientConnectException{
try {
TTransport transport = new TSocket(serverHost, serverPort);
transport.open();
TProtocol protocol = new TBinaryProtocol(transport);
// TMultiplexedProtocol mp = new TMultiplexedProtocol(protocol, "APIServer");
return new Airavata.Client(protocol);
} catch (TTransportException e) {
throw new AiravataClientConnectException("Unable to connect to the server at "+serverHost+":"+serverPort);