public interface InstanceManager
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(InstanceProvider instanceProvider) |
void |
addProvider(InstanceProvider instanceProvider,
int priority) |
Instance |
getInstance(String instanceID) |
Collection<InstanceProvider> |
getInstanceProviders() |
Instance |
restartInstance(String instanceId) |
void |
setStrategy(InstanceProviderSelectionStrategy strategy) |
Instance |
startInstance(String imageName,
List<String> options,
List<String> args)
Start a new instance
|
Instance |
startInstance(String imageName,
List<String> options,
List<String> args,
int ttl)
Start a new instance with a specific time-to-live (in minutes).
|
void |
stopInstance(String instanceId) |
void addProvider(InstanceProvider instanceProvider, int priority)
void addProvider(InstanceProvider instanceProvider)
Instance startInstance(String imageName, List<String> options, List<String> args)
imageName - the image name identifieroptions - the list of startup optionsargs - the list of arguments to be passed to the imageInstance startInstance(String imageName, List<String> options, List<String> args, int ttl)
imageName - the image name identifieroptions - the list of startup optionsargs - the list of arguments to be passed to the imagettl - the instance's time-to-live in minutes. After the TTL is expired, the instance will be killed.void stopInstance(String instanceId)
Collection<InstanceProvider> getInstanceProviders()
void setStrategy(InstanceProviderSelectionStrategy strategy)
Copyright © 2015. All rights reserved.