de.esprit.netsuite.server.hist

## Class RemoteTaskHistoryMonitor<S extends ServerContext>

- java.lang.Object
- - de.esprit.common.util.DumpableObject
  - - de.esprit.appsuite.launch.AbstractApplicationObject<C>
    - - de.esprit.appsuite.task.monitor.AbstractTaskMonitor<C>
      - - de.esprit.appsuite.task.DefaultTaskMonitor<S>
        - - de.esprit.netsuite.server.hist.RemoteTaskHistoryMonitor<S>

- All Implemented Interfaces:
    ApplicationObject<S>, TaskMonitor<S>, SimpleLogSupport, Dumpable, ServerObject<S>

      public class RemoteTaskHistoryMonitor<S extends ServerContext>
      extends DefaultTaskMonitor<S>
      implements ServerObject<S>

  This `TaskMonitor` writes a history record for a `RemoteTask` when the task has finished.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RemoteTaskHistoryMonitor(S serverCtx)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `S` | `getServerContext()` Returns the server runtime environment
    `void` | `taskFinished(RunStateFlag stateFlag)` Called when the async task finished

    - ### Methods inherited from class de.esprit.appsuite.task.DefaultTaskMonitor

      `taskCancelled, taskChildFinished, taskChildStarted, taskChildSucceeded, taskFailed, taskProceeded, taskStarted, taskSucceeded`

    - ### Methods inherited from class de.esprit.appsuite.task.monitor.AbstractTaskMonitor

      `accept`

    - ### Methods inherited from class de.esprit.appsuite.launch.AbstractApplicationObject

      `getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel`

    - ### Methods inherited from class de.esprit.common.util.DumpableObject

      `configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface de.esprit.appsuite.launch.ApplicationObject

      `getApplicationContext`

- - ### Constructor Detail

    - #### RemoteTaskHistoryMonitor

          public RemoteTaskHistoryMonitor(S serverCtx)

  - ### Method Detail

    - #### taskFinished

          public void taskFinished(RunStateFlag stateFlag)

      Description copied from interface: `TaskMonitor`
      Called when the async task finished
      Specified by:
        `taskFinished` in interface `TaskMonitor<S extends ServerContext>`
      Overrides:
        `taskFinished` in class `DefaultTaskMonitor<S extends ServerContext>`

    - #### getServerContext

          public final S getServerContext()

      Description copied from interface: `ServerObject`
      Returns the server runtime environment
      Specified by:
        `getServerContext` in interface `ServerObject<S extends ServerContext>`

Copyright © 2014 EsprIT-Systems. All Rights Reserved.