Class ResultContainer
java.lang.Object
com.inet.taskplanner.server.api.job.JobResultContainer
com.inet.taskplanner.server.api.job.ResultContainer
-
Constructor Summary
ConstructorsConstructorDescriptionResultContainer(@Nonnull List<Result> results) Creates a new ResultContainer instance.Creates a new ResultContainer instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()When result handling is finished, this method is called to release resources held by the results, such as closing streams or deleting temporary files as appropriate.Returns the flavors supported by this containerReturns the additional metadata properties for the job execution.getResults(ResultFlavor flavor) Returns all results for a certain flavorMethods inherited from class JobResultContainer
areResultsProcessable, setAreResultsProcessable
-
Constructor Details
-
ResultContainer
-
ResultContainer
Creates a new ResultContainer instance.- Parameters:
results- the results from the job execution, can be emptymetaProperties- additional meta properties to be used for placeholder replacement- Since:
- taskplanner 3.0
-
-
Method Details
-
getFlavors
Returns the flavors supported by this container- Specified by:
getFlavorsin classJobResultContainer- Returns:
- the flavors supported by this container
-
getResults
Returns all results for a certain flavor- Specified by:
getResultsin classJobResultContainer- Parameters:
flavor- the flavor for which to get results; should be one of the flavors returned byJobResultContainer.getFlavors()- Returns:
- a list of all results that support the requested flavor; can be empty but is never
null
-
getMetaProperties
Returns the additional metadata properties for the job execution. These properties can be used to replace placeholders in textual output formats such as email or messengers.- Specified by:
getMetaPropertiesin classJobResultContainer- Returns:
- the meta properties map, not
null
-
cleanup
public void cleanup()When result handling is finished, this method is called to release resources held by the results, such as closing streams or deleting temporary files as appropriate.This is also called if no appropriate
ResultActionhandled this result.- Specified by:
cleanupin classJobResultContainer
-