@Deprecated public class PollingBuildStrategy extends AbstractQuartzStrategy implements RepositoryAwareBuildStrategy
Modifier and Type | Class and Description |
---|---|
static class |
PollingBuildStrategy.PollingStrategy
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_POLLING_PERIOD
Deprecated.
|
BUILD_STRATEGY, REPOSITORY_CHANGE_JOB, scheduler, TRIGGER_CONDITIONS_CONFIGURATION, TRIGGER_ID, TRIGGERED_OBJECT_ID, TRIGGERING_REPOSITORIES
Constructor and Description |
---|
PollingBuildStrategy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Deprecated.
|
boolean |
canTrigger(Class<? extends Triggerable> type)
Deprecated.
Default implementation: trigger only works for Chains
|
String |
getDescription()
Deprecated.
|
String |
getKey()
Deprecated.
A lowercase string key to identify the build strategy
|
String |
getName()
Deprecated.
Returns the display name of the strategy type.
|
String |
getPollingCronExpression()
Deprecated.
|
int |
getPollingPeriod()
Deprecated.
|
String |
getPollingStrategy()
Deprecated.
|
protected Class<? extends org.quartz.Job> |
getStrategyJob()
Deprecated.
|
protected org.quartz.Trigger |
getTrigger(Triggerable triggerable)
Deprecated.
|
Set<Long> |
getTriggeringRepositories()
Deprecated.
Return a list of repository ids this trigger is configured for.
|
void |
populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
Deprecated.
Update the current object with data in the
HierarchicalConfiguration |
protected void |
populateFromConfigInternal(org.apache.commons.configuration.HierarchicalConfiguration config)
Deprecated.
|
void |
setPollingCronExpression(String pollingCronExpression)
Deprecated.
|
void |
setPollingPeriod(int pollingPeriod)
Deprecated.
|
void |
setPollingStrategy(String pollingStrategy)
Deprecated.
|
void |
setTriggeringRepositories(Set<Long> triggeringRepositories)
Deprecated.
Set list of repository ids this trigger is configured for.
|
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Deprecated.
Generate a
HierarchicalConfiguration from the current state of the object |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Deprecated.
Takes in a
BuildConfiguration and returns any errors possible |
createJobDetail, getScheduler, getUniqueId, init, initialiseJob, removeJob, setScheduler
getBuildStrategyManager, getId, getTextProvider, getTriggerConditionsConfiguration, getTriggerDetailsSummaryHtml, getUserDescription, setId, setUserDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTriggerConditionsConfiguration, getTriggerDetailsSummaryHtml, getUserDescription, init, setId, setUserDescription
getId
public static final int DEFAULT_POLLING_PERIOD
public String getKey()
BuildStrategy
getKey
in interface BuildStrategy
public String getName()
BuildStrategy
getName
in interface BuildStrategy
public String getDescription()
getDescription
in interface BuildStrategy
getDescription
in class AbstractBuildStrategy
public void addDefaultValues(BuildConfiguration buildConfiguration)
addDefaultValues
in interface BuildStrategy
addDefaultValues
in class AbstractBuildStrategy
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the objecttoConfiguration
in interface ConvertibleFromConfig
toConfiguration
in class AbstractBuildStrategy
HierarchicalConfiguration
. Never nullpublic void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
populateFromConfig
in class AbstractBuildStrategy
protected void populateFromConfigInternal(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
public ErrorCollection validate(BuildConfiguration buildConfiguration)
BuildStrategy
BuildConfiguration
and returns any errors possiblevalidate
in interface BuildStrategy
validate
in class AbstractBuildStrategy
buildConfiguration
- not nullErrorCollection
. must not be null@NotNull protected Class<? extends org.quartz.Job> getStrategyJob()
getStrategyJob
in class AbstractQuartzStrategy
@Nullable protected org.quartz.Trigger getTrigger(@NotNull Triggerable triggerable)
getTrigger
in class AbstractQuartzStrategy
public int getPollingPeriod()
public void setPollingPeriod(int pollingPeriod)
public String getPollingStrategy()
public void setPollingStrategy(String pollingStrategy)
public String getPollingCronExpression()
public void setPollingCronExpression(String pollingCronExpression)
public Set<Long> getTriggeringRepositories()
RepositoryAwareBuildStrategy
getTriggeringRepositories
in interface RepositoryAwareBuildStrategy
Set
of Long
public void setTriggeringRepositories(Set<Long> triggeringRepositories)
RepositoryAwareBuildStrategy
setTriggeringRepositories
in interface RepositoryAwareBuildStrategy
public boolean canTrigger(@NotNull Class<? extends Triggerable> type)
AbstractBuildStrategy
canTrigger
in interface BuildStrategy
canTrigger
in class AbstractQuartzStrategy
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.