org.apache.oozie
Class WorkflowsInfo

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

public class WorkflowsInfo
extends Object

Bean that contains the result for a workflows query.


Constructor Summary
WorkflowsInfo(List<WorkflowJobBean> workflows, int start, int len, int total)
          Create a workflows info bean.
 
Method Summary
 int getLen()
          Return the number of the workflows being returned.
 int getStart()
          Return the offset of the workflows being returned.
 int getTotal()
          Return the total number of workflows.
 List<WorkflowJobBean> getWorkflows()
          Return the workflows being returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowsInfo

public WorkflowsInfo(List<WorkflowJobBean> workflows,
                     int start,
                     int len,
                     int total)
Create a workflows info bean.

Parameters:
workflows - workflows being returned.
start - workflows offset.
len - number of workflows.
total - total workflows.
Method Detail

getWorkflows

public List<WorkflowJobBean> getWorkflows()
Return the workflows being returned.

Returns:
the workflows being returned.

getStart

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

For pagination purposes.

Returns:
the offset of the workflows being returned.

getLen

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

For pagination purposes.

Returns:
the number of the workflows being returned.

getTotal

public int getTotal()
Return the total number of workflows.

For pagination purposes.

Returns:
the total number of workflows.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.