Class GroovyJobActionService
- java.lang.Object
-
- com.avoka.fc.core.service.BaseService
-
- com.avoka.fc.core.service.CayenneService
-
- com.avoka.fc.core.service.job.impl.AbstractJobActionService
-
- com.avoka.fc.core.service.job.impl.GroovyJobActionService
-
- All Implemented Interfaces:
IServiceDefinitionAware
,IJobActionService
public class GroovyJobActionService extends AbstractJobActionService
Provides a Groovy Job Action Service.- Since:
- 4.0.0
-
-
Field Summary
-
Fields inherited from class com.avoka.fc.core.service.job.impl.AbstractJobActionService
jobEventLogService, maxErrorRetryAttempts, retryDelayMins, serviceDefinition
-
-
Constructor Summary
Constructors Constructor Description GroovyJobActionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResult
execute(ActionContext actionContext)
Execute the action and return the result.Integer
getExecutionTimeout()
Return the GroovyScript execution timeout in milliseconds.String
getGroovyScript()
Boolean
isGroovyDebugLogging()
Return true if GroovyLogger DEBUG level recording is enabled.boolean
isGroovyLoggingEnabled()
Return true if the Groovy Service logging is enabled.boolean
isGroovyTypeChecked()
Return true if the Groovy runtime should perform static type checking.void
setExecutionTimeout(Integer timeout)
Return the GroovyScript execution timeout in milliseconds.void
setGroovyDebugLogging(Boolean debugEnabled)
Set whether GroovyLogger DEBUG level recording is enabled.void
setGroovyLoggingEnabled(Boolean loggingEnabled)
Specify whether the Groovy Service logging is enabled.void
setGroovyScript(String script)
void
setGroovyTypeChecked(boolean typeChecked)
Specify whether the Groovy runtime should perform static type checking.-
Methods inherited from class com.avoka.fc.core.service.job.impl.AbstractJobActionService
getJobEventLogService, getMaxErrorRetryAttempts, getRetryDelayMins, getServiceDefinition, setMaxErrorRetryAttempts, setRetryDelayMins, setServiceDefinition, validateProperties
-
Methods inherited from class com.avoka.fc.core.service.CayenneService
commitChanges, deleteObject, deleteObjects, findObject, getDataContext, getDataDomain, getObjectForPK, getObjectStore, newObject, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, refetchEntity, refetchObject, registerNewObject, rollbackChanges, toMap, toMap
-
Methods inherited from class com.avoka.fc.core.service.BaseService
getLogger
-
-
-
-
Method Detail
-
execute
public ActionResult execute(ActionContext actionContext)
Description copied from interface:IJobActionService
Execute the action and return the result.- Parameters:
actionContext
- the job action execution context (required)- Returns:
- the action result
- See Also:
IJobActionService.execute(ActionContext)
-
getExecutionTimeout
public Integer getExecutionTimeout()
Return the GroovyScript execution timeout in milliseconds.- Returns:
- the GroovyScript execution timeout in milliseconds
-
setExecutionTimeout
public void setExecutionTimeout(Integer timeout)
Return the GroovyScript execution timeout in milliseconds.- Parameters:
timeout
- the GroovyScript execution timeout in milliseconds
-
isGroovyDebugLogging
public Boolean isGroovyDebugLogging()
Return true if GroovyLogger DEBUG level recording is enabled.- Returns:
- the groovyDebugLoggingEnabled
- Since:
- 4.3.4
-
setGroovyDebugLogging
public void setGroovyDebugLogging(Boolean debugEnabled)
Set whether GroovyLogger DEBUG level recording is enabled.- Parameters:
debugEnabled
- the groovyDebugLoggingEnabled to set- Since:
- 4.3.4
-
isGroovyLoggingEnabled
public boolean isGroovyLoggingEnabled()
Return true if the Groovy Service logging is enabled.- Returns:
- true if the Groovy Service logging is enabled.
- Since:
- 4.2.0
-
setGroovyLoggingEnabled
public void setGroovyLoggingEnabled(Boolean loggingEnabled)
Specify whether the Groovy Service logging is enabled.- Parameters:
loggingEnabled
- specify whether the Groovy Service logging is enabled- Since:
- 4.2.0
-
getGroovyScript
public String getGroovyScript()
- Returns:
- the Groovy Script content to execute
-
setGroovyScript
public void setGroovyScript(String script)
- Parameters:
script
- the Groovy Script content to execute
-
isGroovyTypeChecked
public boolean isGroovyTypeChecked()
Return true if the Groovy runtime should perform static type checking.- Returns:
- true if the Groovy runtime should perform static type checking
- Since:
- 4.0.0
-
setGroovyTypeChecked
public void setGroovyTypeChecked(boolean typeChecked)
Specify whether the Groovy runtime should perform static type checking.- Parameters:
typeChecked
- specify whether the Groovy runtime should perform static type checking- Since:
- 4.0.0
-
-