Class TimelineWriteResponse.TimelineWriteError

java.lang.Object
org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse.TimelineWriteError
Enclosing class:
TimelineWriteResponse

@Public @Unstable public static class TimelineWriteResponse.TimelineWriteError extends Object
A class that holds the error code for one entity.
  • Field Details

    • IO_EXCEPTION

      public static final int IO_EXCEPTION
      Error code returned if an IOException is encountered when storing an entity.
      See Also:
  • Constructor Details

    • TimelineWriteError

      public TimelineWriteError()
  • Method Details

    • getEntityId

      public String getEntityId()
      Get the entity Id.
      Returns:
      the entity Id
    • setEntityId

      public void setEntityId(String id)
      Set the entity Id.
      Parameters:
      id - the entity Id.
    • getEntityType

      public String getEntityType()
      Get the entity type.
      Returns:
      the entity type
    • setEntityType

      public void setEntityType(String type)
      Set the entity type.
      Parameters:
      type - the entity type.
    • getErrorCode

      public int getErrorCode()
      Get the error code.
      Returns:
      an error code
    • setErrorCode

      public void setErrorCode(int code)
      Set the error code to the given error code.
      Parameters:
      code - an error code.