Package org.cyclos.impl.system
Class InlineScriptBackgroundTask
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractGlobalServerComponent
-
- org.cyclos.impl.utils.tasks.AbstractTask
-
- org.cyclos.impl.utils.tasks.AbstractBackgroundTask
-
- org.cyclos.impl.system.InlineScriptBackgroundTask
-
- All Implemented Interfaces:
BackgroundTask
- Direct Known Subclasses:
FileScriptBackgroundTask
public class InlineScriptBackgroundTask extends AbstractBackgroundTask
Background task that runs an inline script (the context is the script code)
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.utils.tasks.AbstractTask
errorLogService, invokerHandler, loggingHandler
-
Fields inherited from class org.cyclos.impl.AbstractGlobalServerComponent
rawEntityManagerHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description InlineScriptBackgroundTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longdoExecute(String context)Must be implemented to actually execute the task logic, returning the number of affected recordsStringgetName()Returns the name for this taskprotected StringgetScriptCode(String context)-
Methods inherited from class org.cyclos.impl.utils.tasks.AbstractBackgroundTask
execute
-
Methods inherited from class org.cyclos.impl.utils.tasks.AbstractTask
getLogConfiguration, logName, logTaskError, logTaskSuccess, shouldGenerateErrorLog, toString
-
Methods inherited from class org.cyclos.impl.AbstractGlobalServerComponent
getBaseEntityManagerHandler, getEntityManager
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:BackgroundTaskReturns the name for this task- Specified by:
getNamein interfaceBackgroundTask- Specified by:
getNamein classAbstractTask
-
doExecute
protected long doExecute(String context)
Description copied from class:AbstractBackgroundTaskMust be implemented to actually execute the task logic, returning the number of affected records- Specified by:
doExecutein classAbstractBackgroundTask
-
-