| Package | Description |
|---|---|
| org.lsst.ccs.services |
| Modifier and Type | Method and Description |
|---|---|
AgentExecutionService.Task<T> |
AgentExecutionService.Task.setExceptionHandler(AgentExecutionService.ExceptionHandler exceptionHandler)
Sets the exception handler for this task.
|
AgentExecutionService.Task<T> |
AgentExecutionService.Task.setLogger(Logger logger)
Sets the logger for this task.
|
AgentExecutionService.Task<T> |
AgentExecutionService.Task.setLogLevel(Level level)
Sets the logging level for this task.
|
AgentExecutionService.Task<T> |
AgentExecutionService.Task.setName(String name)
Sets the name of this task.
|
AgentExecutionService.Task<T> |
AgentExecutionService.Task.setRestart(int maxAttempts,
long time,
TimeUnit unit)
Sets the restart policy for this task.
|
AgentExecutionService.Task<T> |
AgentExecutionService.Task.start()
Starts the task execution.
|
<T> AgentExecutionService.Task |
AgentExecutionService.task(Callable<T> callable)
Creates a task that will execute the provided
Callable and return its result when started. |
AgentExecutionService.Task |
AgentExecutionService.task(Runnable runnable)
Creates a task that will execute the provided command when started.
|
<T> AgentExecutionService.Task<T> |
AgentExecutionService.task(Runnable runnable,
T result)
Creates a task that will execute the provided command and return the provided result when started.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
AgentExecutionService.ExceptionHandler.process(AgentExecutionService.Task task,
Throwable throwable,
boolean willRestart)
Handles an exception thrown by AgentExecutionService task.
|
Copyright © 2022 LSST. All rights reserved.