@ApplicationScoped public class DockerEnvironmentDriver extends Object implements org.jboss.pnc.spi.environment.EnvironmentDriver
| Constructor and Description |
|---|
DockerEnvironmentDriver()
Deprecated.
|
DockerEnvironmentDriver(org.jboss.pnc.common.Configuration configuration,
org.jboss.pnc.common.monitor.PullingMonitor pullingMonitor)
Loads configuration, prepares connection to Docker daemon
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.pnc.spi.environment.StartedEnvironment |
buildEnvironment(org.jboss.pnc.model.BuildType buildType,
org.jboss.pnc.spi.repositorymanager.model.RepositorySession repositorySession) |
boolean |
canBuildEnvironment(org.jboss.pnc.model.BuildType buildType) |
void |
destroyEnvironment(String containerId)
Destroys running container
|
@Deprecated public DockerEnvironmentDriver()
@Inject
public DockerEnvironmentDriver(org.jboss.pnc.common.Configuration configuration,
org.jboss.pnc.common.monitor.PullingMonitor pullingMonitor)
throws org.jboss.pnc.common.json.ConfigurationParseException
org.jboss.pnc.common.json.ConfigurationParseException - Thrown if configuration cannot be obtainedpublic org.jboss.pnc.spi.environment.StartedEnvironment buildEnvironment(org.jboss.pnc.model.BuildType buildType,
org.jboss.pnc.spi.repositorymanager.model.RepositorySession repositorySession)
throws org.jboss.pnc.spi.environment.exception.EnvironmentDriverException
buildEnvironment in interface org.jboss.pnc.spi.environment.EnvironmentDriverorg.jboss.pnc.spi.environment.exception.EnvironmentDriverExceptionpublic boolean canBuildEnvironment(org.jboss.pnc.model.BuildType buildType)
canBuildEnvironment in interface org.jboss.pnc.spi.environment.EnvironmentDriverpublic void destroyEnvironment(String containerId) throws org.jboss.pnc.spi.environment.exception.EnvironmentDriverException
containerId - ID of containerorg.jboss.pnc.spi.environment.exception.EnvironmentDriverException - Thrown if any error occurs during destroying running environmentCopyright © 2014–2016. All rights reserved.