org.jenkinsci.lib.xtrigger
Class AbstractTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.BuildableItem>
      extended by org.jenkinsci.lib.xtrigger.AbstractTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>, Serializable

public abstract class AbstractTrigger
extends hudson.triggers.Trigger<hudson.model.BuildableItem>
implements Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Nested Class Summary
protected  class AbstractTrigger.Runner
          Asynchronous task
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
hudson.triggers.Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
AbstractTrigger(String cronTabSpec)
          Builds a trigger object Calls an implementation trigger
 
Method Summary
protected abstract  boolean checkIfModified(XTriggerLog log)
          Checks if the new folder content has been modified The date time and the content file are used.
abstract  String getCause()
          Gets the trigger cause
protected abstract  File getLogFile()
          Gets the triggering log file
 
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, init, readResolve, run, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTrigger

public AbstractTrigger(String cronTabSpec)
                throws antlr.ANTLRException
Builds a trigger object Calls an implementation trigger

Parameters:
cronTabSpec - the scheduler value
Throws:
antlr.ANTLRException
Method Detail

getLogFile

protected abstract File getLogFile()
Gets the triggering log file

Returns:
the trigger log

checkIfModified

protected abstract boolean checkIfModified(XTriggerLog log)
                                    throws XTriggerException
Checks if the new folder content has been modified The date time and the content file are used.

Returns:
true if the new folder content has been modified
Throws:
XTriggerException

getCause

public abstract String getCause()
Gets the trigger cause

Returns:
the trigger cause


Copyright © 2004-2011. All Rights Reserved.