org.apache.hadoop.mapreduce.v2.api.protocolrecords.KillTaskResponse源码实例Demo

类org.apache.hadoop.mapreduce.v2.api.protocolrecords.KillTaskResponse源码实例Demo

下面列出了org.apache.hadoop.mapreduce.v2.api.protocolrecords.KillTaskResponse 类实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: hadoop   文件: MRClientService.java
@SuppressWarnings("unchecked")
@Override
public KillTaskResponse killTask(KillTaskRequest request) 
  throws IOException {
  TaskId taskId = request.getTaskId();
  UserGroupInformation callerUGI = UserGroupInformation.getCurrentUser();
  String message = "Kill task " + taskId + " received from " + callerUGI
      + " at " + Server.getRemoteAddress();
  LOG.info(message);
  verifyAndGetTask(taskId, JobACL.MODIFY_JOB);
  appContext.getEventHandler().handle(
      new TaskEvent(taskId, TaskEventType.T_KILL));
  KillTaskResponse response = 
    recordFactory.newRecordInstance(KillTaskResponse.class);
  return response;
}
 
源代码2 项目: big-c   文件: MRClientService.java
@SuppressWarnings("unchecked")
@Override
public KillTaskResponse killTask(KillTaskRequest request) 
  throws IOException {
  TaskId taskId = request.getTaskId();
  UserGroupInformation callerUGI = UserGroupInformation.getCurrentUser();
  String message = "Kill task " + taskId + " received from " + callerUGI
      + " at " + Server.getRemoteAddress();
  LOG.info(message);
  verifyAndGetTask(taskId, JobACL.MODIFY_JOB);
  appContext.getEventHandler().handle(
      new TaskEvent(taskId, TaskEventType.T_KILL));
  KillTaskResponse response = 
    recordFactory.newRecordInstance(KillTaskResponse.class);
  return response;
}
 
源代码3 项目: hadoop   文件: NotRunningJob.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  KillTaskResponse resp =
    recordFactory.newRecordInstance(KillTaskResponse.class);
  return resp;
}
 
源代码4 项目: hadoop   文件: MRClientProtocolPBServiceImpl.java
@Override
public KillTaskResponseProto killTask(RpcController controller,
    KillTaskRequestProto proto) throws ServiceException {
  KillTaskRequest request = new KillTaskRequestPBImpl(proto);
  try {
    KillTaskResponse response = real.killTask(request);
    return ((KillTaskResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
 
源代码5 项目: hadoop   文件: MRClientProtocolPBClientImpl.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  KillTaskRequestProto requestProto = ((KillTaskRequestPBImpl)request).getProto();
  try {
    return new KillTaskResponsePBImpl(proxy.killTask(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
 
源代码6 项目: big-c   文件: NotRunningJob.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  KillTaskResponse resp =
    recordFactory.newRecordInstance(KillTaskResponse.class);
  return resp;
}
 
源代码7 项目: big-c   文件: MRClientProtocolPBServiceImpl.java
@Override
public KillTaskResponseProto killTask(RpcController controller,
    KillTaskRequestProto proto) throws ServiceException {
  KillTaskRequest request = new KillTaskRequestPBImpl(proto);
  try {
    KillTaskResponse response = real.killTask(request);
    return ((KillTaskResponsePBImpl)response).getProto();
  } catch (IOException e) {
    throw new ServiceException(e);
  }
}
 
源代码8 项目: big-c   文件: MRClientProtocolPBClientImpl.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  KillTaskRequestProto requestProto = ((KillTaskRequestPBImpl)request).getProto();
  try {
    return new KillTaskResponsePBImpl(proxy.killTask(null, requestProto));
  } catch (ServiceException e) {
    throw unwrapAndThrowException(e);
  }
}
 
源代码9 项目: incubator-tez   文件: NotRunningJob.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  KillTaskResponse resp =
    recordFactory.newRecordInstance(KillTaskResponse.class);
  return resp;
}
 
源代码10 项目: tez   文件: NotRunningJob.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  KillTaskResponse resp =
    recordFactory.newRecordInstance(KillTaskResponse.class);
  return resp;
}
 
源代码11 项目: hadoop   文件: TestClientRedirect.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  return null;
}
 
源代码12 项目: hadoop   文件: TestRPCFactories.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  return null;
}
 
源代码13 项目: hadoop   文件: HistoryClientService.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  throw new IOException("Invalid operation on completed job");
}
 
源代码14 项目: big-c   文件: TestClientRedirect.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  return null;
}
 
源代码15 项目: big-c   文件: TestRPCFactories.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  return null;
}
 
源代码16 项目: big-c   文件: HistoryClientService.java
@Override
public KillTaskResponse killTask(KillTaskRequest request)
    throws IOException {
  throw new IOException("Invalid operation on completed job");
}
 
源代码17 项目: hadoop   文件: MRClientProtocol.java
public KillTaskResponse killTask(KillTaskRequest request) throws IOException; 
源代码18 项目: big-c   文件: MRClientProtocol.java
public KillTaskResponse killTask(KillTaskRequest request) throws IOException; 
源代码评论
动弹
沙发等你来抢
 类方法
 同包方法