public abstract class AsyncPbRpcProxy<ProtocolType,TokenType extends org.apache.hadoop.security.token.TokenIdentifier>
extends org.apache.hadoop.service.AbstractService
Modifier and Type | Class and Description |
---|---|
protected static class |
AsyncPbRpcProxy.CallableRequest<REQUEST extends com.google.protobuf.Message,RESPONSE extends com.google.protobuf.Message> |
static interface |
AsyncPbRpcProxy.ExecuteRequestCallback<T extends com.google.protobuf.Message> |
protected static class |
AsyncPbRpcProxy.NodeCallableRequest<REQUEST extends com.google.protobuf.Message,RESPONSE extends com.google.protobuf.Message> |
static class |
AsyncPbRpcProxy.RequestManager |
Constructor and Description |
---|
AsyncPbRpcProxy(String name,
int numThreads,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.security.token.Token<TokenType> token,
long connectionTimeoutMs,
long retrySleepMs,
int expectedNodes,
int maxPerNode) |
Modifier and Type | Method and Description |
---|---|
protected abstract ProtocolType |
createProtocolImpl(org.apache.hadoop.conf.Configuration config,
String hostname,
int port,
org.apache.hadoop.security.UserGroupInformation ugi,
org.apache.hadoop.io.retry.RetryPolicy retryPolicy,
SocketFactory socketFactory) |
protected ProtocolType |
getProxy(LlapNodeId nodeId,
org.apache.hadoop.security.token.Token<TokenType> nodeToken) |
protected abstract String |
getTokenUser(org.apache.hadoop.security.token.Token<TokenType> token) |
protected void |
queueRequest(AsyncPbRpcProxy.CallableRequest<?,?> request) |
void |
serviceStart() |
void |
serviceStop() |
protected abstract void |
shutdownProtocolImpl(ProtocolType proxy) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceInit, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
public void serviceStart()
serviceStart
in class org.apache.hadoop.service.AbstractService
public void serviceStop()
serviceStop
in class org.apache.hadoop.service.AbstractService
protected final void queueRequest(AsyncPbRpcProxy.CallableRequest<?,?> request)
protected final ProtocolType getProxy(LlapNodeId nodeId, org.apache.hadoop.security.token.Token<TokenType> nodeToken)
nodeId
- Hostname + post.nodeToken
- A custom node token. If not specified, the default token is used.protected abstract ProtocolType createProtocolImpl(org.apache.hadoop.conf.Configuration config, String hostname, int port, org.apache.hadoop.security.UserGroupInformation ugi, org.apache.hadoop.io.retry.RetryPolicy retryPolicy, SocketFactory socketFactory)
protected abstract void shutdownProtocolImpl(ProtocolType proxy)
Copyright © 2022 The Apache Software Foundation. All rights reserved.