Java Code Examples for org.apache.hadoop.classification.InterfaceStability.Unstable

The following examples show how to use org.apache.hadoop.classification.InterfaceStability.Unstable. These examples are extracted from open source projects. 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 Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 6 votes vote down vote up
@Public
@Unstable
public static ContainerHistoryData newInstance(ContainerId containerId,
    Resource allocatedResource, NodeId assignedNode, Priority priority,
    long startTime, long finishTime, String diagnosticsInfo,
    int containerExitCode, ContainerState containerState) {
  ContainerHistoryData containerHD = new ContainerHistoryData();
  containerHD.setContainerId(containerId);
  containerHD.setAllocatedResource(allocatedResource);
  containerHD.setAssignedNode(assignedNode);
  containerHD.setPriority(priority);
  containerHD.setStartTime(startTime);
  containerHD.setFinishTime(finishTime);
  containerHD.setDiagnosticsInfo(diagnosticsInfo);
  containerHD.setContainerExitStatus(containerExitCode);
  containerHD.setContainerState(containerState);
  return containerHD;
}
 
Example 2
Source Project: ambari-metrics   Source File: ApplicationFinishData.java    License: Apache License 2.0 5 votes vote down vote up
@Public
@Unstable
public static ApplicationFinishData newInstance(ApplicationId applicationId,
    long finishTime, String diagnosticsInfo,
    FinalApplicationStatus finalApplicationStatus,
    YarnApplicationState yarnApplicationState) {
  ApplicationFinishData appFD =
      Records.newRecord(ApplicationFinishData.class);
  appFD.setApplicationId(applicationId);
  appFD.setFinishTime(finishTime);
  appFD.setDiagnosticsInfo(diagnosticsInfo);
  appFD.setFinalApplicationStatus(finalApplicationStatus);
  appFD.setYarnApplicationState(yarnApplicationState);
  return appFD;
}
 
Example 3
Source Project: ambari-metrics   Source File: ContainerFinishData.java    License: Apache License 2.0 5 votes vote down vote up
@Public
@Unstable
public static ContainerFinishData newInstance(ContainerId containerId,
    long finishTime, String diagnosticsInfo, int containerExitCode,
    ContainerState containerState) {
  ContainerFinishData containerFD =
      Records.newRecord(ContainerFinishData.class);
  containerFD.setContainerId(containerId);
  containerFD.setFinishTime(finishTime);
  containerFD.setDiagnosticsInfo(diagnosticsInfo);
  containerFD.setContainerExitStatus(containerExitCode);
  containerFD.setContainerState(containerState);
  return containerFD;
}
 
Example 4
@Public
@Unstable
public static ApplicationAttemptFinishData newInstance(
    ApplicationAttemptId appAttemptId, String diagnosticsInfo,
    String trackingURL, FinalApplicationStatus finalApplicationStatus,
    YarnApplicationAttemptState yarnApplicationAttemptState) {
  ApplicationAttemptFinishData appAttemptFD =
      Records.newRecord(ApplicationAttemptFinishData.class);
  appAttemptFD.setApplicationAttemptId(appAttemptId);
  appAttemptFD.setDiagnosticsInfo(diagnosticsInfo);
  appAttemptFD.setTrackingURL(trackingURL);
  appAttemptFD.setFinalApplicationStatus(finalApplicationStatus);
  appAttemptFD.setYarnApplicationAttemptState(yarnApplicationAttemptState);
  return appAttemptFD;
}
 
Example 5
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public ContainerId getContainerId() {
  return containerId;
}
 
Example 6
Source Project: ambari-metrics   Source File: ContainerStartData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract ContainerId getContainerId();
 
Example 7
Source Project: ambari-metrics   Source File: ContainerStartData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setAssignedNode(NodeId nodeId);
 
Example 8
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setAllocatedResource(Resource resource) {
  this.allocatedResource = resource;
}
 
Example 9
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public NodeId getAssignedNode() {
  return assignedNode;
}
 
Example 10
@Public
@Unstable
public String getDiagnosticsInfo() {
  return diagnosticsInfo;
}
 
Example 11
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public Priority getPriority() {
  return priority;
}
 
Example 12
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setPriority(Priority priority) {
  this.priority = priority;
}
 
Example 13
Source Project: ambari-metrics   Source File: ApplicationFinishData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract String getDiagnosticsInfo();
 
Example 14
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setStartTime(long startTime) {
  this.startTime = startTime;
}
 
Example 15
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setFinishTime(long finishTime) {
  this.finishTime = finishTime;
}
 
Example 16
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public String getDiagnosticsInfo() {
  return diagnosticsInfo;
}
 
Example 17
Source Project: ambari-metrics   Source File: ContainerStartData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setPriority(Priority priority);
 
Example 18
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public int getContainerExitStatus() {
  return containerExitStatus;
}
 
Example 19
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setContainerExitStatus(int containerExitStatus) {
  this.containerExitStatus = containerExitStatus;
}
 
Example 20
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public ContainerState getContainerState() {
  return containerState;
}
 
Example 21
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setContainerState(ContainerState containerState) {
  this.containerState = containerState;
}
 
Example 22
Source Project: ambari-metrics   Source File: ApplicationFinishData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract long getFinishTime();
 
Example 23
@Public
@Unstable
public abstract ApplicationAttemptId getApplicationAttemptId();
 
Example 24
@Public
@Unstable
public abstract void setApplicationAttemptId(
    ApplicationAttemptId applicationAttemptId);
 
Example 25
Source Project: ambari-metrics   Source File: ContainerStartData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract NodeId getAssignedNode();
 
Example 26
@Public
@Unstable
public abstract void setHost(String host);
 
Example 27
Source Project: ambari-metrics   Source File: ApplicationFinishData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract FinalApplicationStatus getFinalApplicationStatus();
 
Example 28
@Public
@Unstable
public abstract void setRPCPort(int rpcPort);
 
Example 29
@Public
@Unstable
public abstract ContainerId getMasterContainerId();
 
Example 30
@Public
@Unstable
public abstract void setTrackingURL(String trackingURL);