public class SimpleResourceManagementStrategy extends Object implements ResourceManagementStrategy
Constructor and Description |
---|
SimpleResourceManagementStrategy(SimpleResourceManagementConfig config,
com.google.common.base.Supplier<WorkerBehaviorConfig> workerConfigRef) |
Modifier and Type | Method and Description |
---|---|
boolean |
doProvision(RemoteTaskRunner runner) |
boolean |
doTerminate(RemoteTaskRunner runner) |
ScalingStats |
getStats() |
@Inject public SimpleResourceManagementStrategy(SimpleResourceManagementConfig config, com.google.common.base.Supplier<WorkerBehaviorConfig> workerConfigRef)
public boolean doProvision(RemoteTaskRunner runner)
doProvision
in interface ResourceManagementStrategy
public boolean doTerminate(RemoteTaskRunner runner)
doTerminate
in interface ResourceManagementStrategy
public ScalingStats getStats()
getStats
in interface ResourceManagementStrategy
Copyright © 2011–2015. All rights reserved.