public class DRPCClient extends Object implements DistributedRPC.Iface
Constructor and Description |
---|
DRPCClient(String host,
int port) |
DRPCClient(String host,
int port,
Integer timeout) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
execute(String func,
String args) |
String |
getHost() |
int |
getPort() |
public DRPCClient(String host, int port)
public String getHost()
public int getPort()
public String execute(String func, String args) throws org.apache.thrift.TException, DRPCExecutionException
execute
in interface DistributedRPC.Iface
org.apache.thrift.TException
DRPCExecutionException
public void close()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.