Class Execution
java.lang.Object
org.kie.kogito.trusty.storage.api.model.Execution
Base abstract class for Execution
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the executed model.Gets the execution id.Gets the execution date.org.kie.kogito.ModelDomainGets the execution type.Gets the executor name.Gets the source URL of the service where the execution happened.Gets the source URL of the Cloud Event where the execution happened.Gets the information of the operational success of the execution.voidsetExecutedModelName(String executedModelName) Sets the executed model name.voidsetExecutionId(String executionId) Sets the execution id.voidsetExecutionTimestamp(Long executionTimestamp) Sets the execution timestamp.voidsetExecutionType(org.kie.kogito.ModelDomain executionType) Sets the execution type.voidsetExecutorName(String executorName) Sets the executor name.voidsetServiceUrl(String serviceUrl) Sets the service URL of the service where the execution happened.voidsetSourceUrl(String sourceUrl) Sets the source URL of the Cloud Event where the execution happened.voidsetSuccess(Boolean hasSucceeded) Sets the success information.
-
Field Details
-
EXECUTION_ID_FIELD
- See Also:
-
SOURCE_URL_FIELD
- See Also:
-
SERVICE_URL_FIELD
- See Also:
-
EXECUTION_TIMESTAMP_FIELD
- See Also:
-
HAS_SUCCEEDED_FIELD
- See Also:
-
EXECUTOR_NAME_FIELD
- See Also:
-
EXECUTED_MODEL_NAME_FIELD
- See Also:
-
EXECUTED_MODEL_NAMESPACE_FIELD
- See Also:
-
EXECUTION_TYPE_FIELD
- See Also:
-
-
Constructor Details
-
Execution
public Execution() -
Execution
public Execution(org.kie.kogito.ModelDomain modelDomain) -
Execution
-
-
Method Details
-
getExecutionId
Gets the execution id.- Returns:
- The execution id.
-
setExecutionId
Sets the execution id.- Parameters:
executionId- The execution Id.
-
getSourceUrl
Gets the source URL of the Cloud Event where the execution happened.- Returns:
- The source URL.
-
setSourceUrl
Sets the source URL of the Cloud Event where the execution happened.- Parameters:
sourceUrl- The source URL.
-
getServiceUrl
Gets the source URL of the service where the execution happened.- Returns:
- The service URL.
-
setServiceUrl
Sets the service URL of the service where the execution happened.- Parameters:
serviceUrl- The service URL.
-
getExecutionTimestamp
Gets the execution date.- Returns:
- The execution date.
-
setExecutionTimestamp
Sets the execution timestamp.- Parameters:
executionTimestamp- The execution timestamp.
-
hasSucceeded
Gets the information of the operational success of the execution.- Returns:
- true if the execution was successful from an technical point of view, false otherwise.
-
getExecutorName
Gets the executor name.- Returns:
- The executor name.
-
setExecutorName
Sets the executor name.- Parameters:
executorName- The executor name.
-
getExecutedModelName
Gets the name of the executed model.- Returns:
- The name of the executed model.
-
setExecutedModelName
Sets the executed model name.- Parameters:
executedModelName- The executed model name.
-
getExecutionType
public org.kie.kogito.ModelDomain getExecutionType()Gets the execution type.- Returns:
- The execution type.
-
setExecutionType
public void setExecutionType(org.kie.kogito.ModelDomain executionType) Sets the execution type.- Parameters:
executionType- The execution type.
-
setSuccess
Sets the success information.- Parameters:
hasSucceeded- Success value.
-