org.jvnet.hudson.plugins.thinbackup.hudson.model

Class AsyncPeriodicWork

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface hudson.ExtensionPoint

        hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      String name
      Name of the work.
      • Fields inherited from class hudson.model.PeriodicWork

        DAY, HOUR, logger, MIN
    • Field Detail

      • name

        public final String name
        Name of the work.
    • Constructor Detail

      • AsyncPeriodicWork

        protected AsyncPeriodicWork(String name)
    • Method Detail

      • doRun

        public final void doRun()
        Schedules this periodic work now in a new thread, if one isn't already running.
        Specified by:
        doRun in class hudson.triggers.SafeTimerTask
      • createListener

        protected hudson.util.StreamTaskListener createListener()
      • getLogFile

        protected File getLogFile()
        Determines the log file that records the result of this task.
      • execute

        protected abstract void execute(hudson.model.TaskListener listener)
                                 throws IOException,
                                        InterruptedException
        Executes the task. Subclasses implement this method and can carry out a long-running task.
        Parameters:
        listener - Output sent will be reported to the users. (this work is TBD.)
        Throws:
        InterruptedException - The caller will record the exception and moves on.
        IOException - The caller will record the exception and moves on.

Copyright © 2004-2016. All Rights Reserved.