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

The following examples show how to use org.apache.hadoop.classification.InterfaceAudience.Public. 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: ContainerHistoryData.java    From ambari-metrics with 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 File: ApplicationHistoryData.java    From ambari-metrics with 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 #3
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 6 votes vote down vote up
@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 #4
Source File: ApplicationAttemptFinishData.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
@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 File: ContainerFinishData.java    From ambari-metrics with 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 File: ApplicationFinishData.java    From ambari-metrics with 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 #7
Source File: ContainerStartData.java    From ambari-metrics with 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 #8
Source File: ApplicationStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract String getUser();
 
Example #9
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract String getDiagnosticsInfo();
 
Example #10
Source File: ApplicationAttemptFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setYarnApplicationAttemptState(
    YarnApplicationAttemptState yarnApplicationAttemptState);
 
Example #11
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public FinalApplicationStatus getFinalApplicationStatus() {
  return finalApplicationStatus;
}
 
Example #12
Source File: ContainerStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setContainerId(ContainerId containerId);
 
Example #13
Source File: ApplicationStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract String getQueue();
 
Example #14
Source File: ApplicationFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract FinalApplicationStatus getFinalApplicationStatus();
 
Example #15
Source File: ApplicationFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract String getDiagnosticsInfo();
 
Example #16
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setHost(String host) {
  this.host = host;
}
 
Example #17
Source File: ApplicationFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract YarnApplicationState getYarnApplicationState();
 
Example #18
Source File: ApplicationAttemptFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract ApplicationAttemptId getApplicationAttemptId();
 
Example #19
Source File: ApplicationAttemptFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setDiagnosticsInfo(String diagnosticsInfo);
 
Example #20
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract long getFinishTime();
 
Example #21
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setContainerExitStatus(int containerExitStatus);
 
Example #22
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract ContainerId getContainerId();
 
Example #23
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public YarnApplicationState getYarnApplicationState() {
  return this.yarnApplicationState;
}
 
Example #24
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setFinalApplicationStatus(
    FinalApplicationStatus finalApplicationStatus) {
  this.finalApplicationStatus = finalApplicationStatus;
}
 
Example #25
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public FinalApplicationStatus getFinalApplicationStatus() {
  return finalApplicationStatus;
}
 
Example #26
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setTrackingURL(String trackingURL) {
  this.trackingURL = trackingURL;
}
 
Example #27
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public String getDiagnosticsInfo() {
  return diagnosticsInfo;
}
 
Example #28
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setDiagnosticsInfo(String diagnosticsInfo) {
  this.diagnosticsInfo = diagnosticsInfo;
}
 
Example #29
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public String getTrackingURL() {
  return trackingURL;
}
 
Example #30
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setStartTime(long startTime) {
  this.startTime = startTime;
}