Package org.apache.storm.drpc
Class DRPCInvocationsClient
java.lang.Object
org.apache.storm.security.auth.ThriftClient
org.apache.storm.drpc.DRPCInvocationsClient
- All Implemented Interfaces:
AutoCloseable
,DistributedRPCInvocations.Iface
-
Field Summary
Fields inherited from class org.apache.storm.security.auth.ThriftClient
protocol, retryForever
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
failRequest
(String id) void
fetchRequest
(String func) getHost()
int
getPort()
boolean
void
void
Methods inherited from class org.apache.storm.security.auth.ThriftClient
close, reconnect, transport
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG
-
-
Constructor Details
-
Method Details
-
getHost
-
getPort
public int getPort() -
reconnectClient
public void reconnectClient() throws org.apache.storm.thrift.TException- Throws:
org.apache.storm.thrift.TException
-
isConnected
public boolean isConnected() -
result
public void result(String id, String result) throws org.apache.storm.thrift.TException, AuthorizationException - Specified by:
result
in interfaceDistributedRPCInvocations.Iface
- Throws:
org.apache.storm.thrift.TException
AuthorizationException
-
fetchRequest
public DRPCRequest fetchRequest(String func) throws org.apache.storm.thrift.TException, AuthorizationException - Specified by:
fetchRequest
in interfaceDistributedRPCInvocations.Iface
- Throws:
org.apache.storm.thrift.TException
AuthorizationException
-
failRequest
public void failRequest(String id) throws org.apache.storm.thrift.TException, AuthorizationException - Specified by:
failRequest
in interfaceDistributedRPCInvocations.Iface
- Throws:
org.apache.storm.thrift.TException
AuthorizationException
-
getClient
-
failRequestV2
public void failRequestV2(String id, DRPCExecutionException ex) throws AuthorizationException, org.apache.storm.thrift.TException - Specified by:
failRequestV2
in interfaceDistributedRPCInvocations.Iface
- Throws:
AuthorizationException
org.apache.storm.thrift.TException
-