本文整理汇总了Java中org.apache.hadoop.classification.InterfaceStability.Unstable类的典型用法代码示例。如果您正苦于以下问题:Java Unstable类的具体用法?Java Unstable怎么用?Java Unstable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Unstable类属于org.apache.hadoop.classification.InterfaceStability包,在下文中一共展示了Unstable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTokenService
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Unstable
public static Text getTokenService(Configuration conf, String address,
String defaultAddr, int defaultPort) {
if (HAUtil.isHAEnabled(conf)) {
// Build a list of service addresses to form the service name
ArrayList<String> services = new ArrayList<String>();
YarnConfiguration yarnConf = new YarnConfiguration(conf);
for (String rmId : HAUtil.getRMHAIds(conf)) {
// Set RM_ID to get the corresponding RM_ADDRESS
yarnConf.set(YarnConfiguration.RM_HA_ID, rmId);
services.add(SecurityUtil.buildTokenService(
yarnConf.getSocketAddr(address, defaultAddr, defaultPort))
.toString());
}
return new Text(Joiner.on(',').join(services));
}
// Non-HA case - no need to set RM_ID
return SecurityUtil.buildTokenService(conf.getSocketAddr(address,
defaultAddr, defaultPort));
}
示例2: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static ContainerReport newInstance(ContainerId containerId,
Resource allocatedResource, NodeId assignedNode, Priority priority,
long creationTime, long finishTime, String diagnosticInfo, String logUrl,
int containerExitStatus, ContainerState containerState,
String nodeHttpAddress) {
ContainerReport report = Records.newRecord(ContainerReport.class);
report.setContainerId(containerId);
report.setAllocatedResource(allocatedResource);
report.setAssignedNode(assignedNode);
report.setPriority(priority);
report.setCreationTime(creationTime);
report.setFinishTime(finishTime);
report.setDiagnosticsInfo(diagnosticInfo);
report.setLogUrl(logUrl);
report.setContainerExitStatus(containerExitStatus);
report.setContainerState(containerState);
report.setNodeHttpAddress(nodeHttpAddress);
return report;
}
示例3: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Public
@Unstable
public static ApplicationHistoryData newInstance(ApplicationId applicationId,
String applicationName, String applicationType, String queue,
String user, long submitTime, long startTime, long finishTime,
String diagnosticsInfo, FinalApplicationStatus finalApplicationStatus,
YarnApplicationState yarnApplicationState) {
ApplicationHistoryData appHD = new ApplicationHistoryData();
appHD.setApplicationId(applicationId);
appHD.setApplicationName(applicationName);
appHD.setApplicationType(applicationType);
appHD.setQueue(queue);
appHD.setUser(user);
appHD.setSubmitTime(submitTime);
appHD.setStartTime(startTime);
appHD.setFinishTime(finishTime);
appHD.setDiagnosticsInfo(diagnosticsInfo);
appHD.setFinalApplicationStatus(finalApplicationStatus);
appHD.setYarnApplicationState(yarnApplicationState);
return appHD;
}
示例4: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Public
@Unstable
public static ReservationRequest newInstance(Resource capability,
int numContainers, int concurrency, long duration) {
ReservationRequest request = Records.newRecord(ReservationRequest.class);
request.setCapability(capability);
request.setNumContainers(numContainers);
request.setConcurrency(concurrency);
request.setDuration(duration);
return request;
}
示例5: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static RefreshQueuesResponse newInstance() {
RefreshQueuesResponse response =
Records.newRecord(RefreshQueuesResponse.class);
return response;
}
示例6: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static RenewDelegationTokenRequest newInstance(Token dToken) {
RenewDelegationTokenRequest request =
Records.newRecord(RenewDelegationTokenRequest.class);
request.setDelegationToken(dToken);
return request;
}
示例7: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Public
@Unstable
public static LogAggregationContext newInstance(String includePattern,
String excludePattern) {
LogAggregationContext context = Records.newRecord(LogAggregationContext.class);
context.setIncludePattern(includePattern);
context.setExcludePattern(excludePattern);
return context;
}
示例8: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static ReservationSubmissionResponse newInstance(
ReservationId reservationId) {
ReservationSubmissionResponse response =
Records.newRecord(ReservationSubmissionResponse.class);
response.setReservationId(reservationId);
return response;
}
示例9: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static StrictPreemptionContract newInstance(Set<PreemptionContainer> containers) {
StrictPreemptionContract contract =
Records.newRecord(StrictPreemptionContract.class);
contract.setContainers(containers);
return contract;
}
示例10: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static GetQueueInfoResponse newInstance(QueueInfo queueInfo) {
GetQueueInfoResponse response = Records.newRecord(GetQueueInfoResponse.class);
response.setQueueInfo(queueInfo);
return response;
}
示例11: setDataWithRetries
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@VisibleForTesting
@Private
@Unstable
public void setDataWithRetries(final String path, final byte[] data,
final int version) throws Exception {
doStoreMultiWithRetries(Op.setData(path, data, version));
}
示例12: getDataWithRetries
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@VisibleForTesting
@Private
@Unstable
public byte[] getDataWithRetries(final String path, final boolean watch)
throws Exception {
return new ZKAction<byte[]>() {
@Override
public byte[] run() throws KeeperException, InterruptedException {
return zkClient.getData(path, watch, null);
}
}.runWithRetries();
}
示例13: newInstance
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public static ReservationUpdateResponse newInstance() {
ReservationUpdateResponse response =
Records.newRecord(ReservationUpdateResponse.class);
return response;
}
示例14: setQueueState
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public abstract void setQueueState(QueueState queueState);
示例15: setNMTokens
import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public abstract void setNMTokens(List<NMToken> nmTokens);