|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.jaxrs.JaxrsCollection
ccc.api.jaxrs.ActionsImpl
public class ActionsImpl
Implementation of the Actions
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Actions |
---|
NAME |
Constructor Summary | |
---|---|
ActionsImpl(Actions actions)
Constructor. |
Method Summary | |
---|---|
void |
cancel(java.util.UUID actionId)
Cancel a scheduled action. |
ActionSummary |
create(Action action)
Create a new scheduled action. |
void |
executeAll()
Executes all available actions whose 'execute after' date is in the past. |
boolean |
isRunning()
Query whether the scheduler is running. |
PagedCollection<ActionSummary> |
listCompletedActions(java.lang.String sort,
SortOrder sortOrder,
int pageNo,
int pageSize)
List all CCC actions that have been executed. |
PagedCollection<ActionSummary> |
listPendingActions(java.lang.String sort,
SortOrder sortOrder,
int pageNo,
int pageSize)
List all CCC actions that haven't yet been executed. |
ActionSummary |
retrieve(java.util.UUID actionId)
Find the action with the specified ID. |
void |
start()
Start the scheduler running. |
void |
stop()
Stop the scheduler running. |
Methods inherited from class ccc.api.jaxrs.JaxrsCollection |
---|
convertException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionsImpl(Actions actions)
actions
- The actions delegate.Method Detail |
---|
public PagedCollection<ActionSummary> listCompletedActions(java.lang.String sort, SortOrder sortOrder, int pageNo, int pageSize)
listCompletedActions
in interface Actions
sort
- The field to sort on.sortOrder
- The order results be sorted in.pageNo
- The page of results to return.pageSize
- The number of results in a page.
public PagedCollection<ActionSummary> listPendingActions(java.lang.String sort, SortOrder sortOrder, int pageNo, int pageSize)
listPendingActions
in interface Actions
sort
- The field to sort on.sortOrder
- The order results be sorted in.pageNo
- The page of results to return.pageSize
- The number of results in a page.
public ActionSummary create(Action action)
create
in interface Actions
action
- The action to create.
public void cancel(java.util.UUID actionId)
cancel
in interface Actions
actionId
- The id of the action to cancel.public void executeAll()
executeAll
in interface Actions
public ActionSummary retrieve(java.util.UUID actionId)
retrieve
in interface Actions
actionId
- The action's ID.
public boolean isRunning()
isRunning
in interface Scheduler
public void start()
start
in interface Scheduler
public void stop()
stop
in interface Scheduler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |