org.apache.hadoop.ipc.Server.call()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中org.apache.hadoop.ipc.Server.call()方法的一些代码示例,展示了Server.call()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.call()方法的具体详情如下:
包路径:org.apache.hadoop.ipc.Server
类名称:Server
方法名:call

Server.call介绍

[英]Called for each call.
[中]每次都打电话。

代码示例

代码示例来源:origin: org.apache.hadoop/hadoop-common

/** Called for each call. */
public abstract Writable call(RPC.RpcKind rpcKind, String protocol,
  Writable param, long receiveTime) throws Exception;

代码示例来源:origin: org.apache.hadoop/hadoop-common

@Override
public Void run() throws Exception {
 if (!connection.channel.isOpen()) {
  Server.LOG.info(Thread.currentThread().getName() + ": skipped " + this);
  return null;
 }
 Writable value = null;
 ResponseParams responseParams = new ResponseParams();
 try {
  value = call(
    rpcKind, connection.protocolName, rpcRequest, timestamp);
 } catch (Throwable e) {
  populateResponseParamsOnError(e, responseParams);
 }
 if (!isResponseDeferred()) {
  setupResponse(this, responseParams.returnStatus,
    responseParams.detailedErr,
    value, responseParams.errorClass, responseParams.error);
  sendResponse();
 } else {
  if (LOG.isDebugEnabled()) {
   LOG.debug("Deferring response for callId: " + this.callId);
  }
 }
 return null;
}

代码示例来源:origin: ch.cern.hadoop/hadoop-common

@Override
 public Writable run() throws Exception {
  // make the call
  return call(call.rpcKind, call.connection.protocolName, 
        call.rpcRequest, call.timestamp);
 }
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

@Override
 public Writable run() throws Exception {
  // make the call
  return call(call.rpcKind, call.connection.protocolName, 
        call.rpcRequest, call.timestamp);
 }
}

代码示例来源:origin: com.facebook.hadoop/hadoop-core

@Override
 public Writable run() throws Exception {
  // make the call
  return call(call.connection.protocol,
        call.param, call.timestamp);
 }
}

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

@Override
 public Writable run() throws Exception {
  // make the call
  return call(call.rpcKind, call.connection.protocolName, 
        call.rpcRequest, call.timestamp);
 }
}

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

/** Called for each call. */
public abstract Writable call(RPC.RpcKind rpcKind, String protocol,
  Writable param, long receiveTime) throws Exception;

代码示例来源:origin: com.facebook.hadoop/hadoop-core

/** Called for each call. */
public abstract Writable call(Class<?> protocol,
               Writable param, long receiveTime)
throws IOException;

代码示例来源:origin: io.hops/hadoop-common

/** Called for each call. */
public abstract Writable call(RPC.RpcKind rpcKind, String protocol,
  Writable param, long receiveTime) throws Exception;

代码示例来源:origin: ch.cern.hadoop/hadoop-common

/** Called for each call. */
public abstract Writable call(RPC.RpcKind rpcKind, String protocol,
  Writable param, long receiveTime) throws Exception;

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

/** Called for each call. */
public abstract Writable call(RPC.RpcKind rpcKind, String protocol,
  Writable param, long receiveTime) throws Exception;

代码示例来源:origin: io.hops/hadoop-common

value = call(
   rpcKind, connection.protocolName, rpcRequest, timestamp);
} catch (Throwable e) {

代码示例来源:origin: ch.cern.hadoop/hadoop-common

value = call(call.rpcKind, call.connection.protocolName, call.rpcRequest, 
        call.timestamp);
} else {

代码示例来源:origin: com.github.jiayuhan-it/hadoop-common

value = call(call.rpcKind, call.connection.protocolName, call.rpcRequest, 
        call.timestamp);
} else {

代码示例来源:origin: org.jvnet.hudson.hadoop/hadoop-core

UserGroupInformation.setCurrentUGI(call.connection.ticket);
try {
 value = call(call.param, call.timestamp);             // make the call
} catch (Throwable e) {
 LOG.info(getName()+", call "+call+": error: " + e, e);

代码示例来源:origin: io.prestosql.hadoop/hadoop-apache

value = call(call.rpcKind, call.connection.protocolName, call.rpcRequest, 
        call.timestamp);
} else {

相关文章