Package org.cyclos.impl.system
Class FileScriptBackgroundTask
-
- All Implemented Interfaces:
BackgroundTask,HasMessageKey
@Component 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
clusterHandler, 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 MessageKeygetMessageKey()protected StringgetScriptCode(String context)-
Methods inherited from class org.cyclos.impl.system.InlineScriptBackgroundTask
doExecute, scheduling
-
Methods inherited from class org.cyclos.impl.utils.tasks.AbstractBackgroundTask
execute, isVerbose, logName, runInEntityNetwork, runInNetwork
-
Methods inherited from class org.cyclos.impl.utils.tasks.AbstractTask
getLogConfiguration, getName, logTaskError, logTaskSuccess, resolveName, shouldGenerateErrorLog
-
Methods inherited from class org.cyclos.impl.AbstractGlobalServerComponent
getBaseEntityManagerHandler, getEntityManager
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.utils.tasks.BackgroundTask
getName
-
-
-
-
Method Detail
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey- Overrides:
getMessageKeyin classInlineScriptBackgroundTask
-
getScriptCode
protected String getScriptCode(String context)
- Overrides:
getScriptCodein classInlineScriptBackgroundTask
-
-