本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例6: newInstance
import org.apache.hadoop.classification.InterfaceAudience.Public; //导入依赖的package包/类
@Public
@Stable
public static GetApplicationsRequest newInstance() {
GetApplicationsRequest request =
Records.newRecord(GetApplicationsRequest.class);
return request;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}