Class Job.ProgressReporterImpl

java.lang.Object
net.sf.basedb.core.Job.ProgressReporterImpl
All Implemented Interfaces:
ProgressReporter
Enclosing class:
Job

static class Job.ProgressReporterImpl extends Object implements ProgressReporter
Implements the ProgressReporter interface and stores the percentage completed for the current job.
  • Field Details

    • UPDATE_INTERVAL

      private static final long UPDATE_INTERVAL
      Number of miliseconds between updates to the database.
      See Also:
    • UPDATE_PERCENT

      private static final int UPDATE_PERCENT
      Min percentage difference between updates to the database.
      See Also:
    • sc

      private final SessionControl sc
    • jobId

      private final int jobId
    • server

      private final String server
    • node

      private final String node
    • job

      private final Job job
    • agent

      private final JobAgent agent
    • chained

      private final ProgressReporter chained
    • lastUpdate

      private long lastUpdate
    • lastValue

      private int lastValue
    • offset

      private int offset
  • Constructor Details

  • Method Details

    • display

      public void display(int percent, String message)
      Description copied from interface: ProgressReporter
      Display a progress message.
      Specified by:
      display in interface ProgressReporter
      Parameters:
      percent - How many percent of the task that is completed or -1 if not known
      message - A message, or null
    • append

      public void append(String message)
      Description copied from interface: ProgressReporter
      Append a message to the previous one.
      Specified by:
      append in interface ProgressReporter
      Parameters:
      message - The message
    • updateProgress

      private void updateProgress(Session session, int percent, String statusMessage)
    • appendProgress

      private void appendProgress(Session session, String statusMessage)
    • setConfigured

      void setConfigured(PluginResponse response)
    • setStarted

      void setStarted(Class<? extends SignalTransporter> signalTransporter, String signalId)
    • setEnded

      void setEnded(PluginResponse response, boolean isShuttingDown)