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, toString
checkPermission, getServerConfig, getServerContext, getStatisticManager
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
public static final java.lang.String LOG_CLEANUP_TASK
public static final java.lang.String TEST_PROC_TASK
public BatchTaskManager(ServerContext serverCtx)
public PermissionDefinition getPermissionDefinition()
PermissionControlled
PermissionControlled
object with a unique name
and provides a list of supported assignable permissions.getPermissionDefinition
in interface PermissionControlled
public void init() throws java.lang.Exception
Initializable
init
in interface Initializable
java.lang.Exception
public void close()
close
in interface java.lang.AutoCloseable
public void scheduleTask(BatchTaskConfigEntry procCfg) throws java.lang.Exception
java.lang.Exception
public AbstractBatchTask startBatchTask(SessionId sessionId, java.lang.String taskName) throws java.lang.Exception
java.lang.Exception
public void cancelCurrentProcess(SessionId sessionId) throws java.lang.Exception
java.lang.Exception
public BatchTaskConfigEntry[] getTaskConfigEntries()
public BatchTaskConfigEntry fetchTaskConfigByName(java.lang.String procName) throws java.lang.Exception
java.lang.Exception
public AbstractBatchTask fetchTaskByName(java.lang.String procName) throws java.lang.Exception
java.lang.Exception
public void saveConfig(SessionId sessionId, BatchTaskConfigEntry procCfg) throws java.lang.Exception
java.lang.Exception
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.