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, transportpublic String getHost()
public int getPort()
public void reconnectClient()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionpublic boolean isConnected()
public void result(String id, String result) throws org.apache.thrift.TException, AuthorizationException
result in interface DistributedRPCInvocations.Ifaceorg.apache.thrift.TExceptionAuthorizationExceptionpublic DRPCRequest fetchRequest(String func) throws org.apache.thrift.TException, AuthorizationException
fetchRequest in interface DistributedRPCInvocations.Ifaceorg.apache.thrift.TExceptionAuthorizationExceptionpublic void failRequest(String id) throws org.apache.thrift.TException, AuthorizationException
failRequest in interface DistributedRPCInvocations.Ifaceorg.apache.thrift.TExceptionAuthorizationExceptionpublic DistributedRPCInvocations.Client getClient()
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.