public class CoServerBindTask<S extends ServerContext> extends AbstractRemoteTask<S>
RemoteTaskEvents to the originating client.
RemoteTaskStartAgent to start the actual desired remote task
on the co-server. After having started it, it receives the incoming RemoteTaskEvents and
forwards them to its parent main-task. The main-task forwards them further to the waiting client.
Note that there is another task running on the client (ClientEDT) which awaits the back coming
RemoteTaskEvents. If this client-task is cancelled then the cancel-request is actually
forwarded via the server to the remote task running on the co-server.childTaskRef, isTestMode, monitorController, resultRef, stateFlag| Constructor and Description |
|---|
CoServerBindTask(S serverCtx,
java.lang.String coServerName,
RemoteTaskCreator coSrvTaskCreator,
SessionId sessionId) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractClientEDT |
createEventDrivenTask(CoClientContext coClientCtx) |
void |
executeAsync()
Must be overridden to perform the async part.
|
addMonitor, cancel, createRunStateFlag, createTaskId, createTaskMonitor, getKillerSessionId, getOwnerSessionId, getRunStateFlag, getSessionId, getTaskId, setSessionId, submit, submitexecuteSubTask, getServerContextawaitFinished, awaitFinished, awaitStarted, cancel, 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, submitInternal, toString, wasSucceededcheckCancelled, checkForErrorAndRethrow, clearMonitors, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, 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, waitawaitFinished, awaitFinished, awaitStarted, executeChildTask, executeChildTask, getError, getProcessingDuration, hasError, isRegisterForCancel, isRunning, releaseStart, setName, setReleaseTimeoutcheckCancelled, checkForErrorAndRethrow, executeSubTask, getName, getResult, getType, handleCancellation, handleFailure, isCancellable, notifyProceeded, setCancellable, setName, setResult, setRunStateFlag, sleepCheckedgetApplicationContextexecuteclearMonitors, getMonitorCount, getMonitors, hasMonitor, removeMonitorgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelcancelwasCancelledtoDumpString, toDumpString, toString, toStringgetServerContextpublic CoServerBindTask(S serverCtx, java.lang.String coServerName, RemoteTaskCreator coSrvTaskCreator, SessionId sessionId)
public final 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<S extends ServerContext>executeAsync in class AbstractAsyncTask<S extends ServerContext>java.lang.Exceptionfor synchronous executionprotected AbstractClientEDT createEventDrivenTask(CoClientContext coClientCtx)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.