@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>, io.fabric8.api.ContainerAutoScalerFactory
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. |
io.fabric8.api.ContainerAutoScaler |
createAutoScaler(io.fabric8.api.FabricRequirements requirements,
io.fabric8.api.ProfileRequirements profileRequirements) |
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>
public io.fabric8.api.ContainerAutoScaler createAutoScaler(io.fabric8.api.FabricRequirements requirements, io.fabric8.api.ProfileRequirements profileRequirements)
createAutoScaler
in interface io.fabric8.api.ContainerAutoScalerFactory
protected void runScriptOnHost(CreateSshContainerOptions options, String script) throws Exception
Exception
Copyright © 2011–2014 Red Hat. All rights reserved.