public interface PolicyApi extends Closeable
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.FluentIterable<ScalingPolicy> |
create(List<CreateScalingPolicy> scalingPolicies)
Create a scaling policy.
|
boolean |
delete(String scalingPolicyId)
This operation deletes a specific scaling policy.
|
boolean |
execute(String scalingPolicyId)
This operation executes a specific scaling policy.
|
ScalingPolicy |
get(String scalingPolicyId)
This operation returns the details for a single scaling policy.
|
com.google.common.collect.FluentIterable<ScalingPolicy> |
list()
This operation lists all scaling policies.
|
boolean |
update(String scalingPolicyId,
CreateScalingPolicy scalingPolicy)
This operation updates a specific scaling policy.
|
@Named(value="policy:create") com.google.common.collect.FluentIterable<ScalingPolicy> create(List<CreateScalingPolicy> scalingPolicies)
scalingPolicies
- The list of scaling policies.CreateScalingPolicy
,
ScalingPolicy
@Named(value="policy:list") com.google.common.collect.FluentIterable<ScalingPolicy> list()
ScalingPolicy
@Named(value="policy:get") @Nullable ScalingPolicy get(String scalingPolicyId)
ScalingPolicy
@Named(value="policy:update") boolean update(String scalingPolicyId, CreateScalingPolicy scalingPolicy)
CreateScalingPolicy
@Named(value="policy:delete") boolean delete(String scalingPolicyId)
CreateScalingPolicy
@Named(value="policy:execute") boolean execute(String scalingPolicyId)
CreateScalingPolicy
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.