Package hudson.model

Class ViewJob<JobT extends ViewJob<JobT,RunT>,RunT extends Run<JobT,RunT>>

All Implemented Interfaces:
ExtensionPoint, DescriptorByNameOwner, Item, ModelObject, PersistenceRoot, Saveable, SearchableModelObject, SearchItem, AccessControlled, Loadable, ModelObjectWithChildren, ModelObjectWithContextMenu, OnMaster, HasWidgets, org.kohsuke.stapler.HttpDeletable, org.kohsuke.stapler.StaplerOverridable, org.kohsuke.stapler.StaplerProxy

public abstract class ViewJob<JobT extends ViewJob<JobT,RunT>,RunT extends Run<JobT,RunT>> extends Job<JobT,RunT>
Job that monitors activities that happen outside Hudson, which requires occasional batch reload activity to obtain the up-to-date information.

This can be used as a base class to derive custom Job type.

Author:
Kohsuke Kawaguchi
  • Field Details

    • runs

      protected transient volatile RunMap<RunT extends Run<JobT,RunT>> runs
      All Runs. Copy-on-write semantics.
    • reloadPeriodically

      public static boolean reloadPeriodically
      In the very old version of Hudson, an external job submission was just creating files on the file system, so we needed to periodically reload the jobs from a file system to pick up new records.

      We then switched to submission via HTTP, so this reloading is no longer necessary, so only do this when explicitly requested.

  • Constructor Details

  • Method Details