|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse
@InterfaceAudience.Public @InterfaceStability.Unstable public class 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 | |
---|---|
static class |
TimelinePutResponse.TimelinePutError
A class that holds the error code for one entity. |
Constructor Summary | |
---|---|
TimelinePutResponse()
|
Method Summary | |
---|---|
void |
addError(TimelinePutResponse.TimelinePutError error)
Add a single TimelinePutResponse.TimelinePutError instance into the existing list |
void |
addErrors(List<TimelinePutResponse.TimelinePutError> errors)
Add a list of TimelinePutResponse.TimelinePutError instances into the existing list |
List<TimelinePutResponse.TimelinePutError> |
getErrors()
Get a list of TimelinePutResponse.TimelinePutError instances |
void |
setErrors(List<TimelinePutResponse.TimelinePutError> errors)
Set the list to the given list of TimelinePutResponse.TimelinePutError instances |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimelinePutResponse()
Method Detail |
---|
public List<TimelinePutResponse.TimelinePutError> getErrors()
TimelinePutResponse.TimelinePutError
instances
TimelinePutResponse.TimelinePutError
instancespublic void addError(TimelinePutResponse.TimelinePutError error)
TimelinePutResponse.TimelinePutError
instance into the existing list
error
- a single TimelinePutResponse.TimelinePutError
instancepublic void addErrors(List<TimelinePutResponse.TimelinePutError> errors)
TimelinePutResponse.TimelinePutError
instances into the existing list
errors
- a list of TimelinePutResponse.TimelinePutError
instancespublic void setErrors(List<TimelinePutResponse.TimelinePutError> errors)
TimelinePutResponse.TimelinePutError
instances
errors
- a list of TimelinePutResponse.TimelinePutError
instances
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |