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