@Component public class ImportObjectsFromCamelTaskHandler extends Object implements TaskHandler, org.apache.camel.Processor
TaskHandler
Modifier and Type | Field and Description |
---|---|
static String |
HANDLER_URI |
Constructor and Description |
---|
ImportObjectsFromCamelTaskHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getCategoryName(Task task)
Returns a category name for a given task.
|
List<String> |
getCategoryNames()
Returns names of task categories provided by this handler.
|
Long |
heartbeat(Task task) |
void |
process(org.apache.camel.Exchange exchange) |
void |
refreshStatus(Task task) |
TaskRunResult |
run(Task task)
The body of the task.
|
public static final String HANDLER_URI
public TaskRunResult run(Task task)
run
in interface TaskHandler
public void process(org.apache.camel.Exchange exchange) throws Exception
process
in interface org.apache.camel.Processor
Exception
public Long heartbeat(Task task)
heartbeat
in interface TaskHandler
public void refreshStatus(Task task)
refreshStatus
in interface TaskHandler
public String getCategoryName(Task task)
TaskHandler
getCategoryName
in interface TaskHandler
task
- a task, whose category is to be determined; if getCategoryNames() returns null, this method
has to accept null value as this parameter, and return the (one) category name that it gives
to all taskspublic List<String> getCategoryNames()
TaskHandler
getCategoryNames
in interface TaskHandler
Copyright © 2013 evolveum. All rights reserved.