com.atlassian.bamboo.repository
Class QuietPeriodHelper

java.lang.Object
  extended by com.atlassian.bamboo.repository.QuietPeriodHelper
All Implemented Interfaces:
java.io.Serializable

public class QuietPeriodHelper
extends java.lang.Object
implements java.io.Serializable

Allows you to easily add commit quite time to your repository

See Also:
Serialized Form

Field Summary
static int DEFAULT_MAX_RETRIES
           
static int DEFAULT_QUIET_PERIOD
           
 
Constructor Summary
QuietPeriodHelper(java.lang.String repoPrefix)
           
QuietPeriodHelper(java.lang.String repoPrefix, int defaultQuietPeriod, int defaultMaxRetries)
           
 
Method Summary
 void addDefaultValues(BuildConfiguration buildConfiguration)
           
 void clearFromBuildConfiguration(BuildConfiguration buildConfiguration)
           
 boolean isEnabled(BuildConfiguration buildConfiguration)
           
 void populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config, MutableQuietPeriodAwareRepository repository)
           
 void toConfiguration(org.apache.commons.configuration.HierarchicalConfiguration configuration, QuietPeriodAwareRepository repository)
           
 void validate(BuildConfiguration buildConfiguration, ErrorCollection errorCollection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_QUIET_PERIOD

public static final int DEFAULT_QUIET_PERIOD
See Also:
Constant Field Values

DEFAULT_MAX_RETRIES

public static final int DEFAULT_MAX_RETRIES
See Also:
Constant Field Values
Constructor Detail

QuietPeriodHelper

public QuietPeriodHelper(java.lang.String repoPrefix,
                         int defaultQuietPeriod,
                         int defaultMaxRetries)

QuietPeriodHelper

public QuietPeriodHelper(java.lang.String repoPrefix)
Method Detail

addDefaultValues

public void addDefaultValues(@NotNull
                             BuildConfiguration buildConfiguration)

validate

public void validate(BuildConfiguration buildConfiguration,
                     ErrorCollection errorCollection)

clearFromBuildConfiguration

public void clearFromBuildConfiguration(BuildConfiguration buildConfiguration)

populateFromConfig

public void populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config,
                               MutableQuietPeriodAwareRepository repository)

toConfiguration

public void toConfiguration(org.apache.commons.configuration.HierarchicalConfiguration configuration,
                            QuietPeriodAwareRepository repository)

isEnabled

public boolean isEnabled(BuildConfiguration buildConfiguration)


Copyright © 2010 Atlassian. All Rights Reserved.