Class TimelineWriteResponse.TimelineWriteError
java.lang.Object
org.apache.hadoop.yarn.api.records.timelineservice.TimelineWriteResponse.TimelineWriteError
- Enclosing class:
- TimelineWriteResponse
A class that holds the error code for one entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError code returned if an IOException is encountered when storing an entity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the entity Id.Get the entity type.intGet the error code.voidsetEntityId(String id) Set the entity Id.voidsetEntityType(String type) Set the entity type.voidsetErrorCode(int code) Set the error code to the given error code.
-
Field Details
-
IO_EXCEPTION
public static final int IO_EXCEPTIONError code returned if an IOException is encountered when storing an entity.- See Also:
-
-
Constructor Details
-
TimelineWriteError
public TimelineWriteError()
-
-
Method Details
-
getEntityId
Get the entity Id.- Returns:
- the entity Id
-
setEntityId
Set the entity Id.- Parameters:
id- the entity Id.
-
getEntityType
Get the entity type.- Returns:
- the entity type
-
setEntityType
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.
-