Package org.cyclos.impl.system
Class FileScriptBackgroundTask
-
- All Implemented Interfaces:
BackgroundTask
public class FileScriptBackgroundTask extends InlineScriptBackgroundTask
Background task that runs a script from a file (the context is the script file path)
-
-
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 FileScriptBackgroundTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name for this taskprotected StringgetScriptCode(String context)-
Methods inherited from class org.cyclos.impl.system.InlineScriptBackgroundTask
doExecute
-
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- Overrides:
getNamein classInlineScriptBackgroundTask
-
getScriptCode
protected String getScriptCode(String context)
- Overrides:
getScriptCodein classInlineScriptBackgroundTask
-
-