Java Code Examples for org.apache.hadoop.classification.InterfaceAudience.Public

The following examples show how to use org.apache.hadoop.classification.InterfaceAudience.Public. 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
@Public
@Unstable
public static ApplicationAttemptHistoryData newInstance(
    ApplicationAttemptId appAttemptId, String host, int rpcPort,
    ContainerId masterContainerId, String diagnosticsInfo,
    String trackingURL, FinalApplicationStatus finalApplicationStatus,
    YarnApplicationAttemptState yarnApplicationAttemptState) {
  ApplicationAttemptHistoryData appAttemptHD =
      new ApplicationAttemptHistoryData();
  appAttemptHD.setApplicationAttemptId(appAttemptId);
  appAttemptHD.setHost(host);
  appAttemptHD.setRPCPort(rpcPort);
  appAttemptHD.setMasterContainerId(masterContainerId);
  appAttemptHD.setDiagnosticsInfo(diagnosticsInfo);
  appAttemptHD.setTrackingURL(trackingURL);
  appAttemptHD.setFinalApplicationStatus(finalApplicationStatus);
  appAttemptHD.setYarnApplicationAttemptState(yarnApplicationAttemptState);
  return appAttemptHD;
}
 
Example 3
Source Project: ambari-metrics   Source File: ApplicationHistoryData.java    License: Apache License 2.0 6 votes vote down vote up
@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;
}
 
Example 4
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 5
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 6
Source Project: ambari-metrics   Source File: ContainerStartData.java    License: Apache License 2.0 5 votes vote down vote up
@Public
@Unstable
public static ContainerStartData newInstance(ContainerId containerId,
    Resource allocatedResource, NodeId assignedNode, Priority priority,
    long startTime) {
  ContainerStartData containerSD =
      Records.newRecord(ContainerStartData.class);
  containerSD.setContainerId(containerId);
  containerSD.setAllocatedResource(allocatedResource);
  containerSD.setAssignedNode(assignedNode);
  containerSD.setPriority(priority);
  containerSD.setStartTime(startTime);
  return containerSD;
}
 
Example 7
@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 8
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 9
@Public
@Unstable
public String getHost() {
  return host;
}
 
Example 10
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public Resource getAllocatedResource() {
  return allocatedResource;
}
 
Example 11
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 12
@Public
@Unstable
public abstract FinalApplicationStatus getFinalApplicationStatus();
 
Example 13
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setAssignedNode(NodeId nodeId) {
  this.assignedNode = nodeId;
}
 
Example 14
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 15
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 16
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public long getStartTime() {
  return startTime;
}
 
Example 17
@Public
@Unstable
public void setRPCPort(int rpcPort) {
  this.rpcPort = rpcPort;
}
 
Example 18
@Public
@Unstable
public String getDiagnosticsInfo() {
  return diagnosticsInfo;
}
 
Example 19
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 20
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 21
Source Project: ambari-metrics   Source File: ContainerHistoryData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setDiagnosticsInfo(String diagnosticsInfo) {
  this.diagnosticsInfo = diagnosticsInfo;
}
 
Example 22
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 23
@Public
@Unstable
public abstract String getDiagnosticsInfo();
 
Example 24
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 25
@Public
@Unstable
public void
    setApplicationAttemptId(ApplicationAttemptId applicationAttemptId) {
  this.applicationAttemptId = applicationAttemptId;
}
 
Example 26
@Public
@Unstable
public int getRPCPort() {
  return rpcPort;
}
 
Example 27
@Public
@Unstable
public abstract ApplicationAttemptId getApplicationAttemptId();
 
Example 28
Source Project: ambari-metrics   Source File: ContainerStartData.java    License: Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract Priority getPriority();
 
Example 29
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 30
@Public
@Unstable
public abstract void setHost(String host);