public class CoServerBindTask<S extends ServerContext> extends AbstractRemoteTask<S>
RemoteTaskEvent
s to the originating client.
RemoteTaskStartAgent
to start the actual desired remote task
on the co-server. After having started it, it receives the incoming RemoteTaskEvent
s 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
RemoteTaskEvent
s. 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, submit
executeSubTask, getServerContext
awaitFinished, 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, wasSucceeded
checkCancelled, 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, wasCancelled
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
awaitFinished, awaitFinished, awaitStarted, executeChildTask, executeChildTask, getError, getProcessingDuration, hasError, isRegisterForCancel, isRunning, releaseStart, setName, setReleaseTimeout
checkCancelled, checkForErrorAndRethrow, executeSubTask, getName, getResult, getType, handleCancellation, handleFailure, isCancellable, notifyProceeded, setCancellable, setName, setResult, setRunStateFlag, sleepChecked
getApplicationContext
execute
clearMonitors, getMonitorCount, getMonitors, hasMonitor, removeMonitor
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
cancel
wasCancelled
toDumpString, toDumpString, toString, toString
getServerContext
public CoServerBindTask(S serverCtx, java.lang.String coServerName, RemoteTaskCreator coSrvTaskCreator, SessionId sessionId)
public final void executeAsync() throws java.lang.Exception
AbstractAsyncTask
AbstractAsyncTask.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.Exception
for synchronous execution
protected AbstractClientEDT createEventDrivenTask(CoClientContext coClientCtx)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.