@Service(value=io.fabric8.api.ContainerProvider.class) @Properties(value=@Property(name="fabric.container.protocol",value="ssh")) public class SshContainerProvider extends Object implements io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>
ContainerProvider that builds Containers via ssh.| Constructor and Description |
|---|
SshContainerProvider() |
| Modifier and Type | Method and Description |
|---|---|
CreateSshContainerMetadata |
create(CreateSshContainerOptions options,
io.fabric8.api.CreationStateListener listener)
Creates an
Container with the given name pointing to the specified zooKeeperUrl. |
void |
destroy(io.fabric8.api.Container container) |
Class<CreateSshContainerMetadata> |
getMetadataType() |
Class<CreateSshContainerOptions> |
getOptionsType() |
String |
getScheme() |
CreateSshContainerOptions.Builder |
newBuilder() |
protected void |
runScriptOnHost(CreateSshContainerOptions options,
String script) |
void |
start(io.fabric8.api.Container container) |
void |
stop(io.fabric8.api.Container container) |
public CreateSshContainerOptions.Builder newBuilder()
newBuilder in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public CreateSshContainerMetadata create(CreateSshContainerOptions options, io.fabric8.api.CreationStateListener listener)
Container with the given name pointing to the specified zooKeeperUrl.create in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public void start(io.fabric8.api.Container container)
start in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public void stop(io.fabric8.api.Container container)
stop in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public void destroy(io.fabric8.api.Container container)
destroy in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public String getScheme()
getScheme in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public Class<CreateSshContainerOptions> getOptionsType()
getOptionsType in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>public Class<CreateSshContainerMetadata> getMetadataType()
getMetadataType in interface io.fabric8.api.ContainerProvider<CreateSshContainerOptions,CreateSshContainerMetadata>protected void runScriptOnHost(CreateSshContainerOptions options, String script) throws Exception
ExceptionCopyright © 2011–2014 Red Hat. All rights reserved.