| Package | Description |
|---|---|
| org.fenixedu.bennu.scheduler | |
| org.fenixedu.bennu.scheduler.api.json | |
| org.fenixedu.bennu.scheduler.custom | |
| org.fenixedu.bennu.scheduler.log |
| Modifier and Type | Field and Description |
|---|---|
protected ExecutionLog |
CronTask.log |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutionLog |
CronTask.createExecutionLog() |
| Modifier and Type | Method and Description |
|---|---|
com.google.gson.JsonElement |
SimpleExecutionLogJsonAdapter.view(ExecutionLog obj,
JsonBuilder ctx) |
com.google.gson.JsonElement |
ExecutionLogJsonAdapter.view(ExecutionLog obj,
JsonBuilder ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutionLog |
CustomTask.createExecutionLog() |
| Modifier and Type | Method and Description |
|---|---|
static ExecutionLog |
ExecutionLog.newCustomExecution(String taskName,
String code,
String user)
Creates a new execution log for the given custom task, taking note of the code that was run, and the user who ran it.
|
static ExecutionLog |
ExecutionLog.newExecutionFor(String taskName)
Creates a new execution log for the given task, automatically assigning it a randomly-generated unique identifier.
|
ExecutionLog |
ExecutionLog.withError(Throwable t)
Creates a new
ExecutionLog based on this one, marking it as failed, with the stack trace provided by the given
throwable. |
ExecutionLog |
ExecutionLog.withFile(String filename)
Creates a new
ExecutionLog based on this one, with the given filename added to the list of files generated by the
task. |
ExecutionLog |
ExecutionLog.withSuccess()
Creates a new
ExecutionLog based on this one, marking it as successful, ending in the moment of the method call. |
| Modifier and Type | Method and Description |
|---|---|
Stream<ExecutionLog> |
FileSystemLogRepository.executionsFor(String taskName,
Optional<String> start,
int max)
Returns a
Stream containing the execution logs for the given task, up to max elements. |
Stream<ExecutionLog> |
ExecutionLogRepository.executionsFor(String taskName,
Optional<String> startId,
int max)
Returns a
Stream containing the execution logs for the given task, up to max elements. |
Optional<ExecutionLog> |
FileSystemLogRepository.getLog(String taskName,
String id)
Returns the
ExecutionLog for the given task execution, by task name and execution id, if it exists in the
repository. |
Optional<ExecutionLog> |
ExecutionLogRepository.getLog(String taskName,
String id)
Returns the
ExecutionLog for the given task execution, by task name and execution id, if it exists in the
repository. |
Stream<ExecutionLog> |
FileSystemLogRepository.latest()
Returns the latest execution of every task that has been stored in this repository.
|
Stream<ExecutionLog> |
ExecutionLogRepository.latest()
Returns the latest execution of every task that has been stored in this repository.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FileSystemLogRepository.appendTaskLog(ExecutionLog log,
String text)
Appends the given text to the task log for the given execution.
|
void |
ExecutionLogRepository.appendTaskLog(ExecutionLog log,
String text)
Appends the given text to the task log for the given execution.
|
void |
FileSystemLogRepository.newExecution(ExecutionLog log)
Stores a new execution of a given task.
|
void |
ExecutionLogRepository.newExecution(ExecutionLog log)
Stores a new execution of a given task.
|
void |
FileSystemLogRepository.storeFile(ExecutionLog log,
String fileName,
byte[] contents,
boolean append)
Stores the given file to the task execution related to the given
ExecutionLog. |
void |
ExecutionLogRepository.storeFile(ExecutionLog log,
String fileName,
byte[] contents,
boolean append)
Stores the given file to the task execution related to the given
ExecutionLog. |
void |
FileSystemLogRepository.update(ExecutionLog log)
Stores the updated version of the task log for the given execution.
|
void |
ExecutionLogRepository.update(ExecutionLog log)
Stores the updated version of the task log for the given execution.
|
Copyright © 2018 FenixEdu. All rights reserved.