|
||||||||||
| 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<ConfigKey<?>,Object> |
getAllConfig()
|
|
|
getConfig(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. |
|
boolean |
isSuspended()
Whether the policy is suspended |
|
void |
resume()
Resume the policy |
|
|
setConfig(ConfigKey<T> key,
T val)
|
|
void |
suspend()
Suspend the policy |
|
| Methods inherited from interface brooklyn.policy.EntityAdjunct |
|---|
isDestroyed, isRunning |
| Methods inherited from interface brooklyn.entity.rebind.Rebindable |
|---|
getRebindSupport |
| Method Detail |
|---|
String getId()
getId in interface EntityAdjunctString getName()
getName in interface EntityAdjunct@Beta PolicyType getPolicyType()
void resume()
void suspend()
boolean isSuspended()
<T> T getConfig(ConfigKey<T> key)
<T> T setConfig(ConfigKey<T> key,
T val)
Map<ConfigKey<?>,Object> getAllConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||