public final class AppLaunchTask extends AbstractAsyncTask<ApplicationContext>
AppDescriptor it launches a java- or a native process.
It also supports restarting processes with a changed launch-preference configuration
(i.e. with different memory requirements).| Modifier and Type | Class and Description |
|---|---|
class |
AppLaunchTask.MyNativeProcessTask |
childTaskRef, isTestMode, monitorController, resultRef, stateFlag| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Flags the task as being cancelled.
|
void |
executeAsync()
Must be overridden to perform the async part.
|
awaitFinished, awaitFinished, awaitStarted, createTaskId, deregisterTask, doOnFinish, doOnStart, doOnSuccess, executeChildTask, executeChildTask, getCurrentFuture, getMaxChildTasks, getPriority, getProcessingDuration, getStartTime, getStopWatch, handleFinish, handleStart, handleSuccess, isRegisterForCancel, isRunning, notifyProceeded, registerTask, releaseStart, run, setCurrentFuture, setMaxChildTasks, setPriority, setRegisterForCancel, setReleaseTimeout, submit, submit, submitInternal, toString, wasSucceededaddMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, hasError, hasMonitor, isCancellable, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelledgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckCancelled, checkForErrorAndRethrow, executeSubTask, getName, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, isCancellable, setCancellable, setName, setResult, setRunStateFlag, sleepCheckedgetApplicationContextexecuteaddMonitor, clearMonitors, getMonitorCount, getMonitors, hasMonitor, removeMonitorgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelwasCancelledgetTaskIdtoDumpString, toDumpString, toStringpublic void executeAsync()
throws java.lang.Exception
AbstractAsyncTaskAbstractAsyncTask.notifyProceeded(Object, int, int, String) in order to notify
about task progress. Note: the running task should periodically call
AbstractAsyncExecutable.checkCancelled() in order to detect cancellation.executeAsync in interface AsyncExecutable<ApplicationContext>executeAsync in class AbstractAsyncTask<ApplicationContext>java.lang.Exceptionfor synchronous executionpublic void cancel()
AbstractAsyncTaskAbstractAsyncExecutable.checkCancelled() will
result a CancellationException being thrown. As a result
AbstractAsyncExecutable.doOnCancel() is being called on the task.cancel in interface LocalCancellableTaskcancel in class AbstractAsyncTask<ApplicationContext>Copyright © 2014 EsprIT-Systems. All Rights Reserved.