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


Java Unstable类代码示例

本文整理汇总了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));
}
 
开发者ID:naver,项目名称:hadoop,代码行数:22,代码来源:ClientRMProxy.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:22,代码来源:ContainerReport.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:22,代码来源:ApplicationHistoryData.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:ReservationRequest.java

示例5: newInstance

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

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:RenewDelegationTokenRequest.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:LogAggregationContext.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:10,代码来源:ReservationSubmissionResponse.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:9,代码来源:StrictPreemptionContract.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:GetQueueInfoResponse.java

示例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));
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:ZKRMStateStore.java

示例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();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ZKRMStateStore.java

示例13: newInstance

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

示例14: setQueueState

import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public abstract void setQueueState(QueueState queueState);
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:QueueInfo.java

示例15: setNMTokens

import org.apache.hadoop.classification.InterfaceStability.Unstable; //导入依赖的package包/类
@Private
@Unstable
public abstract void setNMTokens(List<NMToken> nmTokens);
 
开发者ID:naver,项目名称:hadoop,代码行数:4,代码来源:AllocateResponse.java


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