org.apache.hadoop.classification.InterfaceStability.Evolving Java Examples

The following examples show how to use org.apache.hadoop.classification.InterfaceStability.Evolving. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UpdateNodeResourceRequest.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Public
@Evolving
public static UpdateNodeResourceRequest newInstance(
    Map<NodeId, ResourceOption> nodeResourceMap) {
  UpdateNodeResourceRequest request =
      Records.newRecord(UpdateNodeResourceRequest.class);
  request.setNodeResourceMap(nodeResourceMap);
  return request;
}
 
Example #2
Source File: GetLabelsToNodesResponsePBImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
@Public
@Evolving
public void setLabelsToNodes(Map<String, Set<NodeId>> map) {
  initLabelsToNodes();
  labelsToNodes.clear();
  labelsToNodes.putAll(map);
}
 
Example #3
Source File: UpdateNodeResourceRequest.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Public
@Evolving
public static UpdateNodeResourceRequest newInstance(
    Map<NodeId, ResourceOption> nodeResourceMap) {
  UpdateNodeResourceRequest request =
      Records.newRecord(UpdateNodeResourceRequest.class);
  request.setNodeResourceMap(nodeResourceMap);
  return request;
}
 
Example #4
Source File: GetLabelsToNodesResponsePBImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
@Public
@Evolving
public void setLabelsToNodes(Map<String, Set<NodeId>> map) {
  initLabelsToNodes();
  labelsToNodes.clear();
  labelsToNodes.putAll(map);
}
 
Example #5
Source File: PreemptionMessage.java    From hadoop with Apache License 2.0 4 votes vote down vote up
/**
 * @return Contract describing resources to return to the cluster.
 */
@Public
@Evolving
public abstract PreemptionContract getContract();
 
Example #6
Source File: ResourceManagerAdministrationProtocol.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
@Idempotent
public AddToClusterNodeLabelsResponse addToClusterNodeLabels(AddToClusterNodeLabelsRequest request)
    throws YarnException, IOException;
 
Example #7
Source File: ResourceOption.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Private
@Evolving
protected abstract void setOverCommitTimeout(int overCommitTimeout);
 
Example #8
Source File: ResourceOption.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Private
@Evolving
protected abstract void setOverCommitTimeout(int overCommitTimeout);
 
Example #9
Source File: Resource.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract int getGpuCores();
 
Example #10
Source File: Resource.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract void setGpuCores(int gCores);
 
Example #11
Source File: AddToClusterNodeLabelsRequest.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Set<String> getNodeLabels();
 
Example #12
Source File: ResourceManagerAdministrationProtocol.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
@Idempotent
public RemoveFromClusterNodeLabelsResponse removeFromClusterNodeLabels(
    RemoveFromClusterNodeLabelsRequest request) throws YarnException, IOException;
 
Example #13
Source File: ResourceManagerAdministrationProtocol.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
@Idempotent
public ReplaceLabelsOnNodeResponse replaceLabelsOnNode(
    ReplaceLabelsOnNodeRequest request) throws YarnException, IOException;
 
Example #14
Source File: RemoveFromClusterNodeLabelsRequest.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Set<String> getNodeLabels();
 
Example #15
Source File: AddToClusterNodeLabelsRequest.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract void setNodeLabels(Set<String> labels);
 
Example #16
Source File: AddToClusterNodeLabelsRequest.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Set<String> getNodeLabels();
 
Example #17
Source File: ReplaceLabelsOnNodeRequest.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract void setNodeToLabels(Map<NodeId, Set<String>> map);
 
Example #18
Source File: ReplaceLabelsOnNodeRequest.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Map<NodeId, Set<String>> getNodeToLabels();
 
Example #19
Source File: FileSplit.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Override
@Evolving
public SplitLocationInfo[] getLocationInfo() throws IOException {
  return fs.getLocationInfo();
}
 
Example #20
Source File: FileSplit.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Override
@Evolving
public SplitLocationInfo[] getLocationInfo() throws IOException {
  return hostInfos;
}
 
Example #21
Source File: YarnScheduler.java    From big-c with Apache License 2.0 4 votes vote down vote up
@LimitedPrivate("yarn")
@Evolving
ResourceCalculator getResourceCalculator();
 
Example #22
Source File: FileSplit.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Override
@Evolving
public SplitLocationInfo[] getLocationInfo() throws IOException {
  return fs.getLocationInfo();
}
 
Example #23
Source File: NMTokenCache.java    From big-c with Apache License 2.0 4 votes vote down vote up
/**
 * 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);
}
 
Example #24
Source File: GetLabelsToNodesResponse.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract void setLabelsToNodes(Map<String, Set<NodeId>> map);
 
Example #25
Source File: GetLabelsToNodesResponse.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Map<String, Set<NodeId>> getLabelsToNodes();
 
Example #26
Source File: GetNodesToLabelsResponse.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract void setNodeToLabels(Map<NodeId, Set<String>> map);
 
Example #27
Source File: GetNodesToLabelsResponse.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Map<NodeId, Set<String>> getNodeToLabels();
 
Example #28
Source File: GetClusterNodeLabelsResponse.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Public
@Evolving
public abstract Set<String> getNodeLabels();
 
Example #29
Source File: PreemptionMessage.java    From big-c with Apache License 2.0 4 votes vote down vote up
/**
 * @return Contract describing resources to return to the cluster.
 */
@Public
@Evolving
public abstract PreemptionContract getContract();
 
Example #30
Source File: PreemptionContainer.java    From big-c with Apache License 2.0 4 votes vote down vote up
/**
 * @return Container referenced by this handle.
 */
@Public
@Evolving
public abstract ContainerId getId();