public class SshAutoScaler extends Object implements io.fabric8.api.ContainerAutoScaler
Constructor and Description |
---|
SshAutoScaler(SshContainerProvider containerProvider) |
Modifier and Type | Method and Description |
---|---|
protected CreateSshContainerOptions.Builder |
createAutoScaleOptions(io.fabric8.api.AutoScaleRequest request,
io.fabric8.api.FabricService fabricService,
String containerName) |
void |
createContainers(io.fabric8.api.AutoScaleRequest request) |
void |
destroyContainers(String profile,
int count,
List<io.fabric8.api.Container> containers) |
protected List<io.fabric8.api.SshHostConfiguration> |
filterHosts(io.fabric8.api.FabricRequirements requirements,
io.fabric8.api.SshScalingRequirements sshScalingRequirements)
Filters the available host configurations
|
int |
getWeight() |
public SshAutoScaler(SshContainerProvider containerProvider)
public int getWeight()
getWeight
in interface io.fabric8.api.ContainerAutoScaler
public void createContainers(io.fabric8.api.AutoScaleRequest request) throws Exception
createContainers
in interface io.fabric8.api.ContainerAutoScaler
Exception
protected CreateSshContainerOptions.Builder createAutoScaleOptions(io.fabric8.api.AutoScaleRequest request, io.fabric8.api.FabricService fabricService, String containerName)
protected List<io.fabric8.api.SshHostConfiguration> filterHosts(io.fabric8.api.FabricRequirements requirements, io.fabric8.api.SshScalingRequirements sshScalingRequirements)
Copyright © 2011–2014 Red Hat. All rights reserved.