public interface ContainerProvider<O extends CreateContainerOptions,M extends CreateContainerMetadata>
Container.| Modifier and Type | Method and Description |
|---|---|
M |
create(O options,
CreationStateListener listener)
Creates a container using a set of arguments
|
void |
destroy(Container container)
Destroy the container
|
java.lang.Class<M> |
getMetadataType() |
java.lang.Class<O> |
getOptionsType()
Returns the options
|
java.lang.String |
getScheme() |
CreateContainerBasicOptions.Builder |
newBuilder()
Helper method to create a new builder object
|
void |
start(Container container)
Start the container
|
void |
stop(Container container)
Stop the container
|
M create(O options, CreationStateListener listener) throws java.lang.Exception
options - The CreateContainerOptions that will be used to build the container.CreateContainerMetadata, which contains information about the created container.java.lang.Exceptionvoid start(Container container)
container - java.lang.Exceptionvoid stop(Container container)
container - java.lang.Exceptionvoid destroy(Container container)
container - java.lang.Exceptionjava.lang.String getScheme()
java.lang.Class<O> getOptionsType()
java.lang.Class<M> getMetadataType()
CreateContainerBasicOptions.Builder newBuilder()
Copyright © 2011-2014 Red Hat. All Rights Reserved.