本文整理汇总了Java中org.apache.hadoop.classification.InterfaceStability.Stable类的典型用法代码示例。如果您正苦于以下问题:Java Stable类的具体用法?Java Stable怎么用?Java Stable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Stable类属于org.apache.hadoop.classification.InterfaceStability包,在下文中一共展示了Stable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static ResourceBlacklistRequest newInstance(
List<String> additions, List<String> removals) {
ResourceBlacklistRequest blacklistRequest =
Records.newRecord(ResourceBlacklistRequest.class);
blacklistRequest.setBlacklistAdditions(additions);
blacklistRequest.setBlacklistRemovals(removals);
return blacklistRequest;
}
示例2:
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
@Idempotent
public RefreshSuperUserGroupsConfigurationResponse
refreshSuperUserGroupsConfiguration(
RefreshSuperUserGroupsConfigurationRequest request)
throws StandbyException, YarnException, IOException;
示例3: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static FinishApplicationMasterRequest newInstance(
FinalApplicationStatus finalAppStatus, String diagnostics, String url) {
FinishApplicationMasterRequest request =
Records.newRecord(FinishApplicationMasterRequest.class);
request.setFinalApplicationStatus(finalAppStatus);
request.setDiagnostics(diagnostics);
request.setTrackingUrl(url);
return request;
}
示例4: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static RefreshQueuesRequest newInstance() {
RefreshQueuesRequest request =
Records.newRecord(RefreshQueuesRequest.class);
return request;
}
示例5: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static GetQueueInfoRequest
newInstance(String queueName, boolean includeApplications,
boolean includeChildQueues, boolean recursive) {
GetQueueInfoRequest request = Records.newRecord(GetQueueInfoRequest.class);
request.setQueueName(queueName);
request.setIncludeApplications(includeApplications);
request.setIncludeChildQueues(includeChildQueues);
request.setRecursive(recursive);
return request;
}
示例6: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static GetClusterMetricsRequest newInstance() {
GetClusterMetricsRequest request =
Records.newRecord(GetClusterMetricsRequest.class);
return request;
}
示例7: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static GetApplicationReportRequest newInstance(
ApplicationId applicationId) {
GetApplicationReportRequest request =
Records.newRecord(GetApplicationReportRequest.class);
request.setApplicationId(applicationId);
return request;
}
示例8: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static URL newInstance(String scheme, String host, int port, String file) {
URL url = Records.newRecord(URL.class);
url.setScheme(scheme);
url.setHost(host);
url.setPort(port);
url.setFile(file);
return url;
}
示例9: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static GetClusterNodesRequest newInstance() {
GetClusterNodesRequest request =
Records.newRecord(GetClusterNodesRequest.class);
return request;
}
示例10: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static ResourceRequest newInstance(Priority priority, String hostName,
Resource capability, int numContainers, boolean relaxLocality,
String labelExpression) {
ResourceRequest request = Records.newRecord(ResourceRequest.class);
request.setPriority(priority);
request.setResourceName(hostName);
request.setCapability(capability);
request.setNumContainers(numContainers);
request.setRelaxLocality(relaxLocality);
request.setNodeLabelExpression(labelExpression);
return request;
}
示例11: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static GetDelegationTokenRequest newInstance(String renewer) {
GetDelegationTokenRequest request =
Records.newRecord(GetDelegationTokenRequest.class);
request.setRenewer(renewer);
return request;
}
示例12: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static ApplicationSubmissionContext newInstance(
ApplicationId applicationId, String applicationName, String queue,
Priority priority, ContainerLaunchContext amContainer,
boolean isUnmanagedAM, boolean cancelTokensWhenComplete,
int maxAppAttempts, Resource resource, String applicationType,
boolean keepContainers, long attemptFailuresValidityInterval) {
ApplicationSubmissionContext context =
newInstance(applicationId, applicationName, queue, priority,
amContainer, isUnmanagedAM, cancelTokensWhenComplete, maxAppAttempts,
resource, applicationType, keepContainers);
context.setAttemptFailuresValidityInterval(attemptFailuresValidityInterval);
return context;
}
示例13: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static SubmitApplicationRequest newInstance(
ApplicationSubmissionContext context) {
SubmitApplicationRequest request =
Records.newRecord(SubmitApplicationRequest.class);
request.setApplicationSubmissionContext(context);
return request;
}
示例14: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static GetNewApplicationRequest newInstance() {
GetNewApplicationRequest request =
Records.newRecord(GetNewApplicationRequest.class);
return request;
}
示例15: newInstance
import org.apache.hadoop.classification.InterfaceStability.Stable; //导入依赖的package包/类
@Public
@Stable
public static KillApplicationRequest newInstance(ApplicationId applicationId) {
KillApplicationRequest request =
Records.newRecord(KillApplicationRequest.class);
request.setApplicationId(applicationId);
return request;
}