public class DRPCClient extends ThriftClient implements DistributedRPC.Iface
_protocol, _retryForever
Constructor and Description |
---|
DRPCClient(Map conf,
String host,
int port) |
DRPCClient(Map conf,
String host,
int port,
Integer timeout) |
Modifier and Type | Method and Description |
---|---|
String |
execute(String func,
String args) |
DistributedRPC.Client |
getClient() |
String |
getHost() |
int |
getPort() |
close, reconnect, transport
public DRPCClient(Map conf, String host, int port) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public String getHost()
public int getPort()
public String execute(String func, String args) throws org.apache.thrift.TException, DRPCExecutionException, AuthorizationException
execute
in interface DistributedRPC.Iface
org.apache.thrift.TException
DRPCExecutionException
AuthorizationException
public DistributedRPC.Client getClient()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.