public class DRPCInvocationsClient extends ThriftClient implements DistributedRPCInvocations.Iface
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
_protocol, _retryForever
Constructor and Description |
---|
DRPCInvocationsClient(Map conf,
String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
failRequest(String id) |
DRPCRequest |
fetchRequest(String func) |
DistributedRPCInvocations.Client |
getClient() |
String |
getHost() |
int |
getPort() |
boolean |
isConnected() |
void |
reconnectClient() |
void |
result(String id,
String result) |
close, reconnect, transport
public String getHost()
public int getPort()
public void reconnectClient() throws org.apache.thrift.TException
org.apache.thrift.TException
public boolean isConnected()
public void result(String id, String result) throws org.apache.thrift.TException, AuthorizationException
result
in interface DistributedRPCInvocations.Iface
org.apache.thrift.TException
AuthorizationException
public DRPCRequest fetchRequest(String func) throws org.apache.thrift.TException, AuthorizationException
fetchRequest
in interface DistributedRPCInvocations.Iface
org.apache.thrift.TException
AuthorizationException
public void failRequest(String id) throws org.apache.thrift.TException, AuthorizationException
failRequest
in interface DistributedRPCInvocations.Iface
org.apache.thrift.TException
AuthorizationException
public DistributedRPCInvocations.Client getClient()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.