|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.chains.ChainExecutionManagerImpl
public class ChainExecutionManagerImpl
Constructor Summary | |
---|---|
ChainExecutionManagerImpl(PlanStatePersisterService planStatePersisterService,
JobExecutionManager buildContextExecutor,
ChainResultManager chainResultManager,
ChainStateFactory chainStateFactory,
BuildContextFactory buildContextFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
ChainPluginSupport chainPluginSupport,
ErrorUpdateHandler errorUpdateHandler,
AuthorCreatorService authorCreatorService,
ResultsSummaryManager resultsSummaryManager,
BuildNumberGeneratorService buildNumberGeneratorService,
BuildDirectoryManager buildDirectoryManager,
BranchIntegrationHelper branchIntegrationHelper,
CustomVariableContext customVariableContext,
PlanExecutionLockService planExecutionLockService,
PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
|
Method Summary | |
---|---|
ChainExecution |
getChainExecution(PlanResultKey planResultKey)
Get the state of the single ChainExecution |
java.util.List<ChainExecution> |
getExecutingChains(PlanKey planKey)
Get the Collection of the state of the ChainExecution or empty collection when no chain is executing |
java.lang.Class<? extends com.atlassian.event.Event>[] |
getHandledEventClasses()
|
BuildExecution |
getJobExecution(PlanResultKey planResultKey)
Get the state of a single Job being executed |
void |
handleEvent(com.atlassian.event.Event event)
|
void |
handleJobStarted(BuildContext buildContext,
TimingPoint timingPoint)
|
boolean |
isActive(PlanKey planKey)
Checks if the Chain represented by PlanKey has any executions |
boolean |
isExecuting(PlanKey planKey)
Checks if the Chain represented by PlanKey has any executions that are currently in progress |
boolean |
isExecuting(PlanResultKey planResultKey)
Checks of the Chain represented by PlanResultKey is executed |
int |
numberOfChainsExecuting()
|
int |
numberOfChainsExecuting(PlanKey planKey)
Determines the number of ChainExecution s are active for the given PlanKey |
ChainExecutionRequestResult |
start(ImmutableChain chain,
BuildDetectionAction buildDetectionAction)
Starts the Chain |
void |
stop(PlanKey planKey)
Stops all executing instances of the Chain represented by PlanKey |
void |
stop(PlanResultKey planResultKey)
Stops the executing instance of the Chain represented by PlanResultKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainExecutionManagerImpl(PlanStatePersisterService planStatePersisterService, JobExecutionManager buildContextExecutor, ChainResultManager chainResultManager, ChainStateFactory chainStateFactory, BuildContextFactory buildContextFactory, com.atlassian.event.api.EventPublisher eventPublisher, ChainPluginSupport chainPluginSupport, ErrorUpdateHandler errorUpdateHandler, AuthorCreatorService authorCreatorService, ResultsSummaryManager resultsSummaryManager, BuildNumberGeneratorService buildNumberGeneratorService, BuildDirectoryManager buildDirectoryManager, BranchIntegrationHelper branchIntegrationHelper, CustomVariableContext customVariableContext, PlanExecutionLockService planExecutionLockService, PlanVcsRevisionHistoryService planVcsRevisionHistoryService)
Method Detail |
---|
@NotNull public ChainExecutionRequestResult start(@NotNull ImmutableChain chain, @NotNull BuildDetectionAction buildDetectionAction)
ChainExecutionManager
start
in interface ChainExecutionManager
public void handleJobStarted(@NotNull BuildContext buildContext, @NotNull TimingPoint timingPoint)
handleJobStarted
in interface ChainExecutionUpdateManager
public void handleEvent(com.atlassian.event.Event event)
handleEvent
in interface HibernateEventListener
handleEvent
in interface com.atlassian.event.EventListener
public void stop(@NotNull PlanResultKey planResultKey)
ChainExecutionManager
Chain
represented by PlanResultKey
stop
in interface ChainExecutionManager
public void stop(@NotNull PlanKey planKey)
ChainExecutionManager
Chain
represented by PlanKey
stop
in interface ChainExecutionManager
public boolean isActive(@NotNull PlanKey planKey)
ChainExecutionManager
PlanKey
has any executions
isActive
in interface ChainExecutionManager
public boolean isExecuting(@NotNull PlanKey planKey)
ChainExecutionManager
PlanKey
has any executions that are currently in progress
isExecuting
in interface ChainExecutionManager
public boolean isExecuting(@NotNull PlanResultKey planResultKey)
ChainExecutionManager
Chain
represented by PlanResultKey
is executed
isExecuting
in interface ChainExecutionManager
@NotNull public java.util.List<ChainExecution> getExecutingChains(@NotNull PlanKey planKey)
ChainExecutionManager
getExecutingChains
in interface ChainExecutionManager
@Nullable public ChainExecution getChainExecution(@NotNull PlanResultKey planResultKey)
ChainExecutionManager
getChainExecution
in interface ChainExecutionManager
@Nullable public BuildExecution getJobExecution(@NotNull PlanResultKey planResultKey)
ChainExecutionManager
getJobExecution
in interface ChainExecutionManager
public int numberOfChainsExecuting(@NotNull PlanKey planKey)
ChainExecutionManager
ChainExecution
s are active for the given PlanKey
numberOfChainsExecuting
in interface ChainExecutionManager
public int numberOfChainsExecuting()
numberOfChainsExecuting
in interface ChainExecutionManager
public java.lang.Class<? extends com.atlassian.event.Event>[] getHandledEventClasses()
getHandledEventClasses
in interface HibernateEventListener
getHandledEventClasses
in interface com.atlassian.event.EventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |