@ApplicationScoped public class BuildExecutorMock extends Object implements org.jboss.pnc.spi.executor.BuildExecutor
| Constructor and Description |
|---|
BuildExecutorMock() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(Integer executionConfigurationId) |
org.jboss.pnc.spi.executor.BuildExecutionSession |
getRunningExecution(int buildExecutionTaskId) |
void |
shutdown() |
org.jboss.pnc.spi.executor.BuildExecutionSession |
startBuilding(org.jboss.pnc.spi.executor.BuildExecutionConfiguration buildExecutionConfiguration,
Consumer<org.jboss.pnc.spi.events.BuildExecutionStatusChangedEvent> onBuildExecutionStatusChangedEvent,
String accessToken) |
public org.jboss.pnc.spi.executor.BuildExecutionSession startBuilding(org.jboss.pnc.spi.executor.BuildExecutionConfiguration buildExecutionConfiguration,
Consumer<org.jboss.pnc.spi.events.BuildExecutionStatusChangedEvent> onBuildExecutionStatusChangedEvent,
String accessToken)
throws org.jboss.pnc.spi.executor.exceptions.ExecutorException
startBuilding in interface org.jboss.pnc.spi.executor.BuildExecutororg.jboss.pnc.spi.executor.exceptions.ExecutorExceptionpublic org.jboss.pnc.spi.executor.BuildExecutionSession getRunningExecution(int buildExecutionTaskId)
getRunningExecution in interface org.jboss.pnc.spi.executor.BuildExecutorpublic void shutdown()
shutdown in interface org.jboss.pnc.spi.executor.BuildExecutorpublic void cancel(Integer executionConfigurationId) throws org.jboss.pnc.spi.executor.exceptions.ExecutorException
cancel in interface org.jboss.pnc.spi.executor.BuildExecutororg.jboss.pnc.spi.executor.exceptions.ExecutorExceptionCopyright © 2014–2020 JBoss by Red Hat. All rights reserved.