public class DRPC extends Object implements AutoCloseable
Constructor and Description |
---|
DRPC(StormMetricsRegistry metricsRegistry,
IAuthorizer auth,
long timeoutMs) |
DRPC(StormMetricsRegistry metricsRegistry,
Map<String,Object> conf) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T extends OutstandingRequest> |
execute(String functionName,
String funcArgs,
RequestFactory<T> factory) |
String |
executeBlocking(String functionName,
String funcArgs) |
void |
failRequest(String id,
DRPCExecutionException e) |
DRPCRequest |
fetchRequest(String functionName) |
void |
returnResult(String id,
String result) |
public DRPC(StormMetricsRegistry metricsRegistry, Map<String,Object> conf)
public DRPC(StormMetricsRegistry metricsRegistry, IAuthorizer auth, long timeoutMs)
public void returnResult(String id, String result) throws AuthorizationException
AuthorizationException
public DRPCRequest fetchRequest(String functionName) throws AuthorizationException
AuthorizationException
public void failRequest(String id, DRPCExecutionException e) throws AuthorizationException
AuthorizationException
public <T extends OutstandingRequest> T execute(String functionName, String funcArgs, RequestFactory<T> factory) throws AuthorizationException
AuthorizationException
public String executeBlocking(String functionName, String funcArgs) throws DRPCExecutionException, AuthorizationException
public void close()
close
in interface AutoCloseable
Copyright © 2019 The Apache Software Foundation. All rights reserved.