Class TimelinePutResponse
java.lang.Object
org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse
A class that holds a list of put errors. This is the response returned when a
list of
TimelineEntity objects is added to the timeline. If there are errors
in storing individual entity objects, they will be indicated in the list of
errors.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class that holds the error code for one entity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a singleTimelinePutResponse.TimelinePutErrorinstance into the existing listvoidAdd a list ofTimelinePutResponse.TimelinePutErrorinstances into the existing listGet a list ofTimelinePutResponse.TimelinePutErrorinstancesvoidSet the list to the given list ofTimelinePutResponse.TimelinePutErrorinstances
-
Constructor Details
-
TimelinePutResponse
public TimelinePutResponse()
-
-
Method Details
-
getErrors
Get a list ofTimelinePutResponse.TimelinePutErrorinstances- Returns:
- a list of
TimelinePutResponse.TimelinePutErrorinstances
-
addError
Add a singleTimelinePutResponse.TimelinePutErrorinstance into the existing list- Parameters:
error- a singleTimelinePutResponse.TimelinePutErrorinstance
-
addErrors
Add a list ofTimelinePutResponse.TimelinePutErrorinstances into the existing list- Parameters:
errors- a list ofTimelinePutResponse.TimelinePutErrorinstances
-
setErrors
Set the list to the given list ofTimelinePutResponse.TimelinePutErrorinstances- Parameters:
errors- a list ofTimelinePutResponse.TimelinePutErrorinstances
-