|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Policy
Policies implement actions and thus must be suspendable; policies should continue to evaluate their sensors and indicate their desired planned action even if they aren't invoking them
| Method Summary | ||
|---|---|---|
Map<brooklyn.config.ConfigKey<?>,Object> |
getAllConfig()
|
|
|
getConfig(brooklyn.config.ConfigKey<T> key)
|
|
String |
getId()
A unique id for this policy. |
|
String |
getName()
Get the name assigned to this policy. |
|
PolicyType |
getPolicyType()
Information about the type of this entity; analogous to Java's object.getClass. |
|
RebindSupport<PolicyMemento> |
getRebindSupport()
|
|
boolean |
isSuspended()
Whether the policy is suspended |
|
void |
resume()
Resume the policy |
|
|
setConfig(brooklyn.config.ConfigKey<T> key,
T val)
|
|
void |
suspend()
Suspend the policy |
|
| Methods inherited from interface brooklyn.policy.EntityAdjunct |
|---|
isDestroyed, isRunning |
| Method Detail |
|---|
String getId()
getId in interface EntityAdjunctgetId in interface IdentifiableString getName()
getName in interface EntityAdjunct@Beta PolicyType getPolicyType()
void resume()
void suspend()
boolean isSuspended()
<T> T getConfig(brooklyn.config.ConfigKey<T> key)
<T> T setConfig(brooklyn.config.ConfigKey<T> key,
T val)
Map<brooklyn.config.ConfigKey<?>,Object> getAllConfig()
RebindSupport<PolicyMemento> getRebindSupport()
getRebindSupport in interface Rebindable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||