public class ScheduledJobResult extends Object implements Serializable
ScheduledJobResult
can be provided by a ScheduledJob
. The ScheduledJobResult
contains some
information which will be stored by the scheduler application in the appNG database per job execution.Modifier and Type | Class and Description |
---|---|
static class |
ScheduledJobResult.ExecutionResult
simple enum reflecting the results a
ScheduledJob execution can have. |
Constructor and Description |
---|
ScheduledJobResult() |
Modifier and Type | Method and Description |
---|---|
String |
getCustomData()
a
ScheduledJob can provide some application specific custom information such as statistics or log
messages to be stored in the appNG Database. |
ScheduledJobResult.ExecutionResult |
getResult()
returns the general result of the job in a semantic manner.
|
void |
setCustomData(String customData)
sets the custom data of a
ScheduledJob execution |
void |
setResult(ScheduledJobResult.ExecutionResult result)
sets the general semantic result of the
ScheduledJob |
public ScheduledJobResult.ExecutionResult getResult()
enum
ScheduledJobResult.ExecutionResult
public String getCustomData()
ScheduledJob
can provide some application specific custom information such as statistics or log
messages to be stored in the appNG Database. Serialization and de-serialization has to be done by the
ScheduledJob
and any application that consumes the custom information. The size is limited to the size of
a TEXT field in the database type used by the running appNG instance. (~64kB on MySQL)String
public void setResult(ScheduledJobResult.ExecutionResult result)
ScheduledJob
result
- result
public void setCustomData(String customData)
ScheduledJob
executioncustomData
- customData
Copyright © 2011–2020 aiticon GmbH. All rights reserved.