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") 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-2014 The Apache Software Foundation. All Rights Reserved.