本文整理汇总了Java中org.apache.hadoop.classification.InterfaceStability.Evolving类的典型用法代码示例。如果您正苦于以下问题:Java Evolving类的具体用法?Java Evolving怎么用?Java Evolving使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Evolving类属于org.apache.hadoop.classification.InterfaceStability包,在下文中一共展示了Evolving类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setLabelsToNodes
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Override
@Public
@Evolving
public void setLabelsToNodes(Map<String, Set<NodeId>> map) {
initLabelsToNodes();
labelsToNodes.clear();
labelsToNodes.putAll(map);
}
示例2: getLabelsToNodes
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Override
@Public
@Evolving
public Map<String, Set<NodeId>> getLabelsToNodes() {
initLabelsToNodes();
return this.labelsToNodes;
}
示例3: newInstance
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public static UpdateNodeResourceRequest newInstance(
Map<NodeId, ResourceOption> nodeResourceMap) {
UpdateNodeResourceRequest request =
Records.newRecord(UpdateNodeResourceRequest.class);
request.setNodeResourceMap(nodeResourceMap);
return request;
}
示例4: setLabelsToNodes
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Override
@Public
@Evolving
public void setLabelsToNodes(Map<NodeLabel, Set<NodeId>> map) {
initLabelsToNodes();
labelsToNodes.clear();
labelsToNodes.putAll(map);
}
示例5: getLabelsToNodes
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Override
@Public
@Evolving
public Map<NodeLabel, Set<NodeId>> getLabelsToNodes() {
initLabelsToNodes();
return this.labelsToNodes;
}
示例6: newInstance
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public static RefreshNodesResourcesRequest newInstance() {
RefreshNodesResourcesRequest request =
Records.newRecord(RefreshNodesResourcesRequest.class);
return request;
}
示例7: getResourceCalculator
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@LimitedPrivate("yarn")
@Evolving
ResourceCalculator getResourceCalculator();
示例8: setToken
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
/**
* Sets the NMToken for node address
* @param nodeAddr node address (host:port)
* @param token NMToken
*/
@Public
@Evolving
public void setToken(String nodeAddr, Token token) {
nmTokens.put(nodeAddr, token);
}
示例9: setLabelsToNodes
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public abstract void setLabelsToNodes(Map<String, Set<NodeId>> map);
示例10: getLabelsToNodes
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public abstract Map<String, Set<NodeId>> getLabelsToNodes();
示例11: setNodeToLabels
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public abstract void setNodeToLabels(Map<NodeId, Set<String>> map);
示例12: getNodeToLabels
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public abstract Map<NodeId, Set<String>> getNodeToLabels();
示例13: setNodeLabels
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public abstract void setNodeLabels(Set<String> labels);
示例14: getNodeLabels
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
@Public
@Evolving
public abstract Set<String> getNodeLabels();
示例15: getContract
import org.apache.hadoop.classification.InterfaceStability.Evolving; //导入依赖的package包/类
/**
* @return Contract describing resources to return to the cluster.
*/
@Public
@Evolving
public abstract PreemptionContract getContract();