|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.chains.ChainExecutionManagerImpl
public class ChainExecutionManagerImpl
| Constructor Summary | |
|---|---|
ChainExecutionManagerImpl(PlanStatePersisterService planStatePersisterService,
JobExecutionManager buildContextExecutor,
ChainResultManager chainResultManager,
ChainStateFactory chainStateFactory,
BuildContextFactory buildContextFactory,
com.atlassian.event.EventManager eventManager,
com.atlassian.bamboo.chains.ChainPluginSupport chainPluginSupport,
ErrorUpdateHandler errorUpdateHandler,
AuthorCreatorService authorCreatorService)
|
|
| 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(PlanKey planKey)
Determines the number of ChainExecutions are active for the given PlanKey |
ChainExecutionRequestResult |
start(Chain 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.EventManager eventManager,
com.atlassian.bamboo.chains.ChainPluginSupport chainPluginSupport,
ErrorUpdateHandler errorUpdateHandler,
AuthorCreatorService authorCreatorService)
| Method Detail |
|---|
@NotNull
public ChainExecutionRequestResult start(@NotNull
Chain chain,
@NotNull
BuildDetectionAction buildDetectionAction)
ChainExecutionManager
start in interface ChainExecutionManager
public void handleJobStarted(@NotNull
BuildContext buildContext,
@NotNull
TimingPoint timingPoint)
handleJobStarted in interface ChainExecutionUpdateManagerpublic void handleEvent(com.atlassian.event.Event event)
handleEvent in interface HibernateEventListenerhandleEvent in interface com.atlassian.event.EventListener
public void stop(@NotNull
PlanResultKey planResultKey)
ChainExecutionManagerChain represented by PlanResultKey
stop in interface ChainExecutionManager
public void stop(@NotNull
PlanKey planKey)
ChainExecutionManagerChain represented by PlanKey
stop in interface ChainExecutionManager
public boolean isActive(@NotNull
PlanKey planKey)
ChainExecutionManagerPlanKey has any executions
isActive in interface ChainExecutionManager
public boolean isExecuting(@NotNull
PlanKey planKey)
ChainExecutionManagerPlanKey has any executions that are currently in progress
isExecuting in interface ChainExecutionManager
public boolean isExecuting(@NotNull
PlanResultKey planResultKey)
ChainExecutionManagerChain 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)
ChainExecutionManagerChainExecutions are active for the given PlanKey
numberOfChainsExecuting in interface ChainExecutionManagerpublic java.lang.Class<? extends com.atlassian.event.Event>[] getHandledEventClasses()
getHandledEventClasses in interface HibernateEventListenergetHandledEventClasses in interface com.atlassian.event.EventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||