org.apache.oozie
Class BulkResponseInfo

java.lang.Object
  extended by org.apache.oozie.BulkResponseInfo

public class BulkResponseInfo
extends Object

Class that stores the entire retrieved info from the bulk request command along with params for pagination of the results Query execution in BulkJPAExecutor returns an object of BulkResponseInfo class


Constructor Summary
BulkResponseInfo(List<BulkResponseImpl> responses, int start, int len, long total)
          Create a bulk response info bean.
 
Method Summary
 int getLen()
          Return the number of the bulk entries being returned.
 List<BulkResponseImpl> getResponses()
          Return the coordinator actions being returned.
 int getStart()
          Return the offset of the bulk entries being returned.
 long getTotal()
          Return the total number of bulk entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkResponseInfo

public BulkResponseInfo(List<BulkResponseImpl> responses,
                        int start,
                        int len,
                        long total)
Create a bulk response info bean.

Parameters:
bundle - job being returned.
start - bulk entries offset.
len - number of bulk entries.
total - total bulk entries.
Method Detail

getResponses

public List<BulkResponseImpl> getResponses()
Return the coordinator actions being returned.

Returns:
the coordinator actions being returned.

getStart

public int getStart()
Return the offset of the bulk entries being returned.

For pagination purposes.

Returns:
the offset of the bulk entries being returned.

getLen

public int getLen()
Return the number of the bulk entries being returned.

For pagination purposes.

Returns:
the number of the bulk entries being returned.

getTotal

public long getTotal()
Return the total number of bulk entries.

For pagination purposes.

Returns:
the total number of bulk entries.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.