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() |
boolean |
isValidProvider()
Tells if this provider is valid in current environment.
|
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.Exception
void start(Container container)
container
- java.lang.Exception
void stop(Container container)
container
- java.lang.Exception
void destroy(Container container)
container
- java.lang.Exception
java.lang.String getScheme()
java.lang.Class<O> getOptionsType()
java.lang.Class<M> getMetadataType()
CreateContainerBasicOptions.Builder newBuilder()
boolean isValidProvider()
Tells if this provider is valid in current environment.
It provides better explanation than plain "provider not found"
Copyright © 2016 Red Hat. All Rights Reserved.