hudson.triggers
Class TimerTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<BuildableItem>
      extended by hudson.triggers.TimerTrigger
All Implemented Interfaces:
ExtensionPoint, Describable<Trigger<?>>

public class TimerTrigger
extends Trigger<BuildableItem>

Trigger that runs a job periodically.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class TimerTrigger.DescriptorImpl
           
static class TimerTrigger.TimerTriggerCause
           
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
TimerTrigger(String spec)
           
 
Method Summary
 void run()
          Executes the triggered task.
 
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, init, readResolve, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerTrigger

@DataBoundConstructor
public TimerTrigger(String spec)
             throws antlr.ANTLRException
Throws:
antlr.ANTLRException
Method Detail

run

public void run()
Description copied from class: Trigger
Executes the triggered task. This method is invoked when Trigger.Trigger(String) is used to create an instance, and the crontab matches the current time.

Overrides:
run in class Trigger<BuildableItem>


Copyright © 2004-2013. All Rights Reserved.