org.apache.oozie.executor.jpa
Class WorkflowActionsGetPendingJPAExecutor
java.lang.Object
org.apache.oozie.executor.jpa.WorkflowActionsGetPendingJPAExecutor
- All Implemented Interfaces:
- JPAExecutor<List<WorkflowActionBean>>
public class WorkflowActionsGetPendingJPAExecutor
- extends Object
- implements JPAExecutor<List<WorkflowActionBean>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowActionsGetPendingJPAExecutor
public WorkflowActionsGetPendingJPAExecutor(long minimumPendingAgeSecs)
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 © 2013 Apache Software Foundation. All Rights Reserved.