public class OpenShiftAutoScaler extends Object implements io.fabric8.api.ContainerAutoScaler
Constructor and Description |
---|
OpenShiftAutoScaler(OpenshiftContainerProvider containerProvider) |
Modifier and Type | Method and Description |
---|---|
protected CreateOpenshiftContainerOptions.Builder |
createAutoScaleOptions(io.fabric8.api.FabricService fabricService) |
void |
createContainers(io.fabric8.api.AutoScaleRequest request) |
void |
destroyContainers(String profile,
int count,
List<io.fabric8.api.Container> containers) |
int |
getWeight() |
protected String |
validateProperty(Map<String,?> properties,
String name,
String propertyName,
String envVarName,
String defaultValue) |
public OpenShiftAutoScaler(OpenshiftContainerProvider 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 CreateOpenshiftContainerOptions.Builder createAutoScaleOptions(io.fabric8.api.FabricService fabricService)
protected String validateProperty(Map<String,?> properties, String name, String propertyName, String envVarName, String defaultValue)
Copyright © 2011–2014 Red Hat. All rights reserved.