Package org.appng.api
Class ScheduledJobResult
- java.lang.Object
-
- org.appng.api.ScheduledJobResult
-
- All Implemented Interfaces:
Serializable
public class ScheduledJobResult extends Object implements Serializable
AScheduledJobResultcan be provided by aScheduledJob. TheScheduledJobResultcontains some information which will be stored by the scheduler application in the appNG database per job execution.- Author:
- Claus Stümke
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScheduledJobResult.ExecutionResultsimple enum reflecting the results aScheduledJobexecution can have.
-
Constructor Summary
Constructors Constructor Description ScheduledJobResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCustomData()aScheduledJobcan provide some application specific custom information such as statistics or log messages to be stored in the appNG Database.ScheduledJobResult.ExecutionResultgetResult()returns the general result of the job in a semantic manner.voidsetCustomData(String customData)sets the custom data of aScheduledJobexecutionvoidsetResult(ScheduledJobResult.ExecutionResult result)sets the general semantic result of theScheduledJob
-
-
-
Method Detail
-
getResult
public ScheduledJobResult.ExecutionResult getResult()
returns the general result of the job in a semantic manner. Job abortions, because of thrown Exceptions, are handles another way.- Returns:
- execution result as
enumScheduledJobResult.ExecutionResult
-
getCustomData
public String getCustomData()
aScheduledJobcan 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 theScheduledJoband 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)- Returns:
- customData as
String
-
setResult
public void setResult(ScheduledJobResult.ExecutionResult result)
sets the general semantic result of theScheduledJob- Parameters:
result-result
-
setCustomData
public void setCustomData(String customData)
sets the custom data of aScheduledJobexecution- Parameters:
customData-customData
-
-