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
FieldsFields inherited from class org.apache.storm.security.auth.ThriftClient
protocol, retryForever -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfailRequest(String id) voidfetchRequest(String func) getHost()intgetPort()booleanvoidvoidMethods 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:
resultin interfaceDistributedRPCInvocations.Iface- Throws:
org.apache.storm.thrift.TExceptionAuthorizationException
-
fetchRequest
public DRPCRequest fetchRequest(String func) throws org.apache.storm.thrift.TException, AuthorizationException - Specified by:
fetchRequestin interfaceDistributedRPCInvocations.Iface- Throws:
org.apache.storm.thrift.TExceptionAuthorizationException
-
failRequest
public void failRequest(String id) throws org.apache.storm.thrift.TException, AuthorizationException - Specified by:
failRequestin interfaceDistributedRPCInvocations.Iface- Throws:
org.apache.storm.thrift.TExceptionAuthorizationException
-
getClient
-
failRequestV2
public void failRequestV2(String id, DRPCExecutionException ex) throws AuthorizationException, org.apache.storm.thrift.TException - Specified by:
failRequestV2in interfaceDistributedRPCInvocations.Iface- Throws:
AuthorizationExceptionorg.apache.storm.thrift.TException
-