当前位置: 首页>>代码示例>>Java>>正文


Java Public类代码示例

本文整理汇总了Java中org.apache.hadoop.classification.InterfaceAudience.Public的典型用法代码示例。如果您正苦于以下问题:Java Public类的具体用法?Java Public怎么用?Java Public使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Public类属于org.apache.hadoop.classification.InterfaceAudience包,在下文中一共展示了Public类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Unstable
public static ContainerHistoryData newInstance(ContainerId containerId,
    Resource allocatedResource, NodeId assignedNode, Priority priority,
    long startTime, long finishTime, String diagnosticsInfo,
    int containerExitCode, ContainerState containerState) {
  ContainerHistoryData containerHD = new ContainerHistoryData();
  containerHD.setContainerId(containerId);
  containerHD.setAllocatedResource(allocatedResource);
  containerHD.setAssignedNode(assignedNode);
  containerHD.setPriority(priority);
  containerHD.setStartTime(startTime);
  containerHD.setFinishTime(finishTime);
  containerHD.setDiagnosticsInfo(diagnosticsInfo);
  containerHD.setContainerExitStatus(containerExitCode);
  containerHD.setContainerState(containerState);
  return containerHD;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:19,代码来源:ContainerHistoryData.java

示例2: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static ApplicationSubmissionContext newInstance(
    ApplicationId applicationId, String applicationName, String queue,
    ContainerLaunchContext amContainer, boolean isUnmanagedAM,
    boolean cancelTokensWhenComplete, int maxAppAttempts,
    String applicationType, boolean keepContainers,
    String appLabelExpression, ResourceRequest resourceRequest) {
  ApplicationSubmissionContext context =
      Records.newRecord(ApplicationSubmissionContext.class);
  context.setApplicationId(applicationId);
  context.setApplicationName(applicationName);
  context.setQueue(queue);
  context.setAMContainerSpec(amContainer);
  context.setUnmanagedAM(isUnmanagedAM);
  context.setCancelTokensWhenComplete(cancelTokensWhenComplete);
  context.setMaxAppAttempts(maxAppAttempts);
  context.setApplicationType(applicationType);
  context.setKeepContainersAcrossApplicationAttempts(keepContainers);
  context.setNodeLabelExpression(appLabelExpression);
  context.setAMContainerResourceRequest(resourceRequest);
  return context;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:24,代码来源:ApplicationSubmissionContext.java

示例3: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static StartContainerRequest newInstance(
    ContainerLaunchContext context, Token container) {
  StartContainerRequest request =
      Records.newRecord(StartContainerRequest.class);
  request.setContainerLaunchContext(context);
  request.setContainerToken(container);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:StartContainerRequest.java

示例4: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static ResourceRequest newInstance(Priority priority, String hostName,
    Resource capability, int numContainers, boolean relaxLocality) {
  return newInstance(priority, hostName, capability, numContainers,
      relaxLocality, null);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:ResourceRequest.java

示例5: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static GetContainerStatusesRequest newInstance(
    List<ContainerId> containerIds) {
  GetContainerStatusesRequest request =
      Records.newRecord(GetContainerStatusesRequest.class);
  request.setContainerIds(containerIds);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:GetContainerStatusesRequest.java

示例6: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static GetApplicationsRequest newInstance() {
  GetApplicationsRequest request =
      Records.newRecord(GetApplicationsRequest.class);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:GetApplicationsRequest.java

示例7: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Unstable
public static GetApplicationAttemptsResponse newInstance(
    List<ApplicationAttemptReport> applicationAttempts) {
  GetApplicationAttemptsResponse response =
      Records.newRecord(GetApplicationAttemptsResponse.class);
  response.setApplicationAttemptList(applicationAttempts);
  return response;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:GetApplicationAttemptsResponse.java

示例8: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable 
public static KillApplicationRequest newInstance(ApplicationId applicationId) {
  KillApplicationRequest request =
      Records.newRecord(KillApplicationRequest.class);
  request.setApplicationId(applicationId);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:KillApplicationRequest.java

示例9: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Unstable
public static GetApplicationAttemptReportRequest newInstance(
    ApplicationAttemptId applicationAttemptId) {
  GetApplicationAttemptReportRequest request =
      Records.newRecord(GetApplicationAttemptReportRequest.class);
  request.setApplicationAttemptId(applicationAttemptId);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:GetApplicationAttemptReportRequest.java

示例10: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static StopContainersRequest newInstance(List<ContainerId> containerIds) {
  StopContainersRequest request =
      Records.newRecord(StopContainersRequest.class);
  request.setContainerIds(containerIds);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:StopContainersRequest.java

示例11: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static Resource newInstance(int memory, int vCores, int gCores) {
  Resource resource = Records.newRecord(Resource.class);
  resource.setMemory(memory);
  resource.setVirtualCores(vCores);
  resource.setGpuCores(gCores);
  return resource;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:Resource.java

示例12: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static SubmitApplicationRequest newInstance(
    ApplicationSubmissionContext context) {
  SubmitApplicationRequest request =
      Records.newRecord(SubmitApplicationRequest.class);
  request.setApplicationSubmissionContext(context);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:SubmitApplicationRequest.java

示例13: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static GetDelegationTokenRequest newInstance(String renewer) {
  GetDelegationTokenRequest request =
      Records.newRecord(GetDelegationTokenRequest.class);
  request.setRenewer(renewer);
  return request;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:GetDelegationTokenRequest.java

示例14: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Unstable
public static ReservationDefinition newInstance(long arrival, long deadline,
    ReservationRequests reservationRequests, String name) {
  ReservationDefinition rDefinition =
      Records.newRecord(ReservationDefinition.class);
  rDefinition.setArrival(arrival);
  rDefinition.setDeadline(deadline);
  rDefinition.setReservationRequests(reservationRequests);
  rDefinition.setReservationName(name);
  return rDefinition;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ReservationDefinition.java

示例15: newInstance

import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static AllocateRequest newInstance(int responseID, float appProgress,
    List<ResourceRequest> resourceAsk,
    List<ContainerId> containersToBeReleased,
    ResourceBlacklistRequest resourceBlacklistRequest) {
  return newInstance(responseID, appProgress, resourceAsk,
      containersToBeReleased, resourceBlacklistRequest, null);
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:AllocateRequest.java


注:本文中的org.apache.hadoop.classification.InterfaceAudience.Public类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。