public class BatchTaskManager extends AbstractInitializableServerObject<ServerContext> implements CloseableComponent, PermissionControlled
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOG_CLEANUP_TASK |
static java.lang.String |
TEST_PROC_TASK |
| Constructor and Description |
|---|
BatchTaskManager(ServerContext serverCtx) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCurrentProcess(SessionId sessionId)
Stops the process if it is currently running.
|
void |
close() |
AbstractBatchTask |
fetchTaskByName(java.lang.String procName) |
BatchTaskConfigEntry |
fetchTaskConfigByName(java.lang.String procName) |
PermissionDefinition |
getPermissionDefinition()
Returns an object that identifies a
PermissionControlled object with a unique name
and provides a list of supported assignable permissions. |
BatchTaskConfigEntry[] |
getTaskConfigEntries() |
void |
init()
Performs the initialization of this class.
|
void |
saveConfig(SessionId sessionId,
BatchTaskConfigEntry procCfg) |
void |
scheduleTask(BatchTaskConfigEntry procCfg) |
AbstractBatchTask |
startBatchTask(SessionId sessionId,
java.lang.String taskName)
Runs the process directly, no matter whether it is enabled or not
|
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
checkInitialized, isInitialized, setInitialized, toStringcheckPermission, getServerConfig, getServerContext, getStatisticManagergetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toStringpublic static final java.lang.String LOG_CLEANUP_TASK
public static final java.lang.String TEST_PROC_TASK
public BatchTaskManager(ServerContext serverCtx)
public PermissionDefinition getPermissionDefinition()
PermissionControlledPermissionControlled object with a unique name
and provides a list of supported assignable permissions.getPermissionDefinition in interface PermissionControlledpublic void init()
throws java.lang.Exception
Initializableinit in interface Initializablejava.lang.Exceptionpublic void close()
close in interface java.lang.AutoCloseablepublic void scheduleTask(BatchTaskConfigEntry procCfg) throws java.lang.Exception
java.lang.Exceptionpublic AbstractBatchTask startBatchTask(SessionId sessionId, java.lang.String taskName) throws java.lang.Exception
java.lang.Exceptionpublic void cancelCurrentProcess(SessionId sessionId) throws java.lang.Exception
java.lang.Exceptionpublic BatchTaskConfigEntry[] getTaskConfigEntries()
public BatchTaskConfigEntry fetchTaskConfigByName(java.lang.String procName) throws java.lang.Exception
java.lang.Exceptionpublic AbstractBatchTask fetchTaskByName(java.lang.String procName) throws java.lang.Exception
java.lang.Exceptionpublic void saveConfig(SessionId sessionId, BatchTaskConfigEntry procCfg) throws java.lang.Exception
java.lang.Exceptionpublic DumpString toDumpString(DumpString s)
DumpabletoDumpString in interface DumpabletoDumpString in class DumpableObjectCopyright © 2014 EsprIT-Systems. All Rights Reserved.