org.apache.oozie.executor.jpa
Class WorkflowActionsGetPendingJPAExecutor

java.lang.Object
  extended by org.apache.oozie.executor.jpa.WorkflowActionsGetPendingJPAExecutor
All Implemented Interfaces:
JPAExecutor<List<WorkflowActionBean>>

public class WorkflowActionsGetPendingJPAExecutor
extends Object
implements JPAExecutor<List<WorkflowActionBean>>


Constructor Summary
WorkflowActionsGetPendingJPAExecutor(long minimumPendingAgeSecs)
           
 
Method Summary
 List<WorkflowActionBean> execute(javax.persistence.EntityManager em)
          Load All the actions that are pending for more than given time.
 String getName()
          Return the name of the JPA executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowActionsGetPendingJPAExecutor

public WorkflowActionsGetPendingJPAExecutor(long minimumPendingAgeSecs)
Method Detail

getName

public String getName()
Description copied from interface: JPAExecutor
Return the name of the JPA executor. Used for logging and instrumentation.

Specified by:
getName in interface JPAExecutor<List<WorkflowActionBean>>
Returns:
the name of the JPA executor.

execute

public List<WorkflowActionBean> execute(javax.persistence.EntityManager em)
                                 throws JPAExecutorException
Load All the actions that are pending for more than given time.

Specified by:
execute in interface JPAExecutor<List<WorkflowActionBean>>
Parameters:
minimumPendingAgeSecs - Minimum Pending age in seconds
Returns:
List of action beans
Throws:
JPAExecutorException


Copyright © 2012 Apache Software Foundation. All Rights Reserved.