public class JournalTaskMonitor<S extends ServerContext> extends RemoteTaskMonitor<S>
RemoteTaskMonitor
which stores all RemoteTaskEvent
s sent in a journalList.
In case the client disconnected and reconnects again, these events will be re-sent to the client such that the client
can re-attach to the remote task it had lost before.Constructor and Description |
---|
JournalTaskMonitor(JournalTask<S> journalTask) |
Modifier and Type | Method and Description |
---|---|
void |
attachAndPlayEventJournal(SessionId sessionId) |
int |
getEventCount() |
java.util.List<RemoteTaskEvent> |
getJournalEventList() |
protected void |
sendRemoteTaskEvent(RemoteTaskEvent event) |
void |
setIgnoreConsoleOutput(boolean doIgnore)
If set to true, then PROGRESS events caused by console output are ignored.
|
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
getServerContext, taskCancelled, taskChildFinished, taskChildStarted, taskChildSucceeded, taskFailed, taskFinished, taskProceeded, taskStarted, taskSucceeded
accept
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationContext
public JournalTaskMonitor(JournalTask<S> journalTask)
public void setIgnoreConsoleOutput(boolean doIgnore)
protected void sendRemoteTaskEvent(RemoteTaskEvent event)
sendRemoteTaskEvent
in class RemoteTaskMonitor<S extends ServerContext>
public void attachAndPlayEventJournal(SessionId sessionId)
public int getEventCount()
public java.util.List<RemoteTaskEvent> getJournalEventList()
public ToString toString(ToString s)
Dumpable
toString
in interface Dumpable
toString
in class DumpableObject
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
toDumpString
in class DumpableObject
Copyright © 2014 EsprIT-Systems. All Rights Reserved.