Class TimelinePutResponse.TimelinePutError
java.lang.Object
org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse.TimelinePutError
- Enclosing class:
- TimelinePutResponse
A class that holds the error code for one entity.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError code returned if the user is denied to access the timeline datastatic final intError code returned if the entity start time is before the eviction period of old data.static final intError code returned if the user is denied to relate the entity to another one in different domainstatic final intError code returned if an IOException is encountered when putting an entity.static final intError code returned if the entity doesn't have an valid domain IDstatic final intError code returned when no start time can be found when putting an entity.static final intError code returned if the user specifies the timeline system reserved filter key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the entity IdGet the entity typeintGet the error codevoidsetEntityId(String entityId) Set the entity IdvoidsetEntityType(String entityType) Set the entity typevoidsetErrorCode(int errorCode) Set the error code to the given error code
-
Field Details
-
NO_START_TIME
public static final int NO_START_TIMEError code returned when no start time can be found when putting an entity. This occurs when the entity does not already exist in the store and it is put with no start time or events specified.- See Also:
-
IO_EXCEPTION
public static final int IO_EXCEPTIONError code returned if an IOException is encountered when putting an entity.- See Also:
-
SYSTEM_FILTER_CONFLICT
public static final int SYSTEM_FILTER_CONFLICTError code returned if the user specifies the timeline system reserved filter key- See Also:
-
ACCESS_DENIED
public static final int ACCESS_DENIEDError code returned if the user is denied to access the timeline data- See Also:
-
NO_DOMAIN
public static final int NO_DOMAINError code returned if the entity doesn't have an valid domain ID- See Also:
-
FORBIDDEN_RELATION
public static final int FORBIDDEN_RELATIONError code returned if the user is denied to relate the entity to another one in different domain- See Also:
-
EXPIRED_ENTITY
public static final int EXPIRED_ENTITYError code returned if the entity start time is before the eviction period of old data.- See Also:
-
-
Constructor Details
-
TimelinePutError
public TimelinePutError()
-
-
Method Details
-
getEntityId
Get the entity Id- Returns:
- the entity Id
-
setEntityId
Set the entity Id- Parameters:
entityId- the entity Id
-
getEntityType
Get the entity type- Returns:
- the entity type
-
setEntityType
Set the entity type- Parameters:
entityType- the entity type
-
getErrorCode
public int getErrorCode()Get the error code- Returns:
- an error code
-
setErrorCode
public void setErrorCode(int errorCode) Set the error code to the given error code- Parameters:
errorCode- an error code
-