org.apache.maven.continuum.build.settings
Class DefaultSchedulesActivator

java.lang.Object
  extended by org.apache.maven.continuum.build.settings.DefaultSchedulesActivator
All Implemented Interfaces:
SchedulesActivator

public class DefaultSchedulesActivator
extends Object
implements SchedulesActivator

Version:
$Id: DefaultSchedulesActivator.java 1372260 2012-08-13 04:29:09Z brett $
Author:
Jason van Zyl

Field Summary
 
Fields inherited from interface org.apache.maven.continuum.build.settings.SchedulesActivator
ROLE
 
Constructor Summary
DefaultSchedulesActivator()
           
 
Method Summary
 void activateBuildSchedule(Schedule schedule, Continuum continuum)
          Activate schedule only for BuildDefinitions associated.
 void activatePurgeSchedule(Schedule schedule, Continuum continuum)
          Activate schedule only for PurgeConfiguration associated.
 void activateSchedule(Schedule schedule, Continuum continuum)
          Activate schedule by looking at the scheduling information contained within and submitting a Job to the scheduler.
 void activateSchedules(Continuum continuum)
          Grab all the stored Schedule objects and activate them by looking at the scheduling information contained within and submitting a Job to the scheduler.
protected  void schedule(Schedule schedule, Continuum continuum, Class jobClass, String group)
           
 void unactivateOrphanBuildSchedule(Schedule schedule)
          Unactivate schedule buildDefinitions if it is not in a buildDefinition.
 void unactivateOrphanPurgeSchedule(Schedule schedule)
          Unactivate schedule purgeConfigurations if it is not in a purgeConfiguration.
 void unactivateSchedule(Schedule schedule, Continuum continuum)
          Unactivate schedule by looking at the scheduling information contained within.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSchedulesActivator

public DefaultSchedulesActivator()
Method Detail

activateSchedules

public void activateSchedules(Continuum continuum)
                       throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Grab all the stored Schedule objects and activate them by looking at the scheduling information contained within and submitting a Job to the scheduler.

Specified by:
activateSchedules in interface SchedulesActivator
Throws:
SchedulesActivationException

activateSchedule

public void activateSchedule(Schedule schedule,
                             Continuum continuum)
                      throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Activate schedule by looking at the scheduling information contained within and submitting a Job to the scheduler.

Specified by:
activateSchedule in interface SchedulesActivator
Throws:
SchedulesActivationException

activateBuildSchedule

public void activateBuildSchedule(Schedule schedule,
                                  Continuum continuum)
                           throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Activate schedule only for BuildDefinitions associated.

Specified by:
activateBuildSchedule in interface SchedulesActivator
Throws:
SchedulesActivationException

activatePurgeSchedule

public void activatePurgeSchedule(Schedule schedule,
                                  Continuum continuum)
                           throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Activate schedule only for PurgeConfiguration associated.

Specified by:
activatePurgeSchedule in interface SchedulesActivator
Throws:
SchedulesActivationException

unactivateSchedule

public void unactivateSchedule(Schedule schedule,
                               Continuum continuum)
                        throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Unactivate schedule by looking at the scheduling information contained within.

Specified by:
unactivateSchedule in interface SchedulesActivator
Throws:
SchedulesActivationException

unactivateOrphanBuildSchedule

public void unactivateOrphanBuildSchedule(Schedule schedule)
                                   throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Unactivate schedule buildDefinitions if it is not in a buildDefinition.

Specified by:
unactivateOrphanBuildSchedule in interface SchedulesActivator
Throws:
SchedulesActivationException

unactivateOrphanPurgeSchedule

public void unactivateOrphanPurgeSchedule(Schedule schedule)
                                   throws SchedulesActivationException
Description copied from interface: SchedulesActivator
Unactivate schedule purgeConfigurations if it is not in a purgeConfiguration.

Specified by:
unactivateOrphanPurgeSchedule in interface SchedulesActivator
Throws:
SchedulesActivationException

schedule

protected void schedule(Schedule schedule,
                        Continuum continuum,
                        Class jobClass,
                        String group)
                 throws SchedulesActivationException
Throws:
SchedulesActivationException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.