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

The following examples show how to use org.apache.hadoop.classification.InterfaceStability.Unstable. 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: 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 #3
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 #4
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 #5
Source File: ApplicationAttemptHistoryData.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 #6
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 #7
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setDiagnosticsInfo(String diagnosticsInfo);
 
Example #8
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract int getContainerExitStatus();
 
Example #9
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void
    setApplicationAttemptId(ApplicationAttemptId applicationAttemptId) {
  this.applicationAttemptId = applicationAttemptId;
}
 
Example #10
Source File: ApplicationStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setSubmitTime(long submitTime);
 
Example #11
Source File: ApplicationStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setUser(String user);
 
Example #12
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 #13
Source File: ApplicationStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setQueue(String queue);
 
Example #14
Source File: ApplicationStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract long getSubmitTime();
 
Example #15
Source File: ContainerStartData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract long getStartTime();
 
Example #16
Source File: ApplicationAttemptFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setApplicationAttemptId(
    ApplicationAttemptId applicationAttemptId);
 
Example #17
Source File: ContainerFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setContainerState(ContainerState containerState);
 
Example #18
Source File: ApplicationAttemptFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract String getTrackingURL();
 
Example #19
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 #20
Source File: ApplicationAttemptHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setRPCPort(int rpcPort) {
  this.rpcPort = rpcPort;
}
 
Example #21
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 #22
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void
    setYarnApplicationState(YarnApplicationState yarnApplicationState) {
  this.yarnApplicationState = yarnApplicationState;
}
 
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 setYarnApplicationAttemptState(
    YarnApplicationAttemptState yarnApplicationAttemptState) {
  this.yarnApplicationAttemptState = yarnApplicationAttemptState;
}
 
Example #27
Source File: ApplicationFinishData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public abstract void setYarnApplicationState(
    YarnApplicationState yarnApplicationState);
 
Example #28
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public void setFinishTime(long finishTime) {
  this.finishTime = finishTime;
}
 
Example #29
Source File: ApplicationHistoryData.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Public
@Unstable
public long getFinishTime() {
  return finishTime;
}
 
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;
}