org.apache.hadoop.yarn.api.records.timeline
Class TimelinePutResponse

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse

@InterfaceAudience.Public
@InterfaceStability.Unstable
public class TimelinePutResponse
extends Object

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

TimelinePutResponse

public TimelinePutResponse()
Method Detail

getErrors

public List<TimelinePutResponse.TimelinePutError> getErrors()
Get a list of TimelinePutResponse.TimelinePutError instances

Returns:
a list of TimelinePutResponse.TimelinePutError instances

addError

public void addError(TimelinePutResponse.TimelinePutError error)
Add a single TimelinePutResponse.TimelinePutError instance into the existing list

Parameters:
error - a single TimelinePutResponse.TimelinePutError instance

addErrors

public void addErrors(List<TimelinePutResponse.TimelinePutError> errors)
Add a list of TimelinePutResponse.TimelinePutError instances into the existing list

Parameters:
errors - a list of TimelinePutResponse.TimelinePutError instances

setErrors

public void setErrors(List<TimelinePutResponse.TimelinePutError> errors)
Set the list to the given list of TimelinePutResponse.TimelinePutError instances

Parameters:
errors - a list of TimelinePutResponse.TimelinePutError instances


Copyright © 2014 Apache Software Foundation. All Rights Reserved.