public interface Policy extends EntityAdjunct, Rebindable, Configurable
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
<T> T |
getConfig(ConfigKey<T> key)
Convenience method for
config().get(key) |
java.lang.String |
getId()
A unique id for this policy.
|
PolicyType |
getPolicyType()
Information about the type of this entity; analogous to Java's object.getClass.
|
RebindSupport<PolicyMemento> |
getRebindSupport()
Users are strongly discouraged from calling or overriding this method.
|
boolean |
isSuspended()
Whether the policy is suspended
|
void |
resume()
Resume the policy
|
<T> T |
setConfig(ConfigKey<T> key,
T val)
Deprecated.
since 0.7.0; use
Configurable.config() , such as policy.config().setConfig(key, val) |
void |
suspend()
Suspend the policy
|
getUniqueTag, isDestroyed, isRunning
getCatalogItemId, getDisplayName, tags
config
java.lang.String getId()
getId
in interface EntityAdjunct
getId
in interface Identifiable
@Beta PolicyType getPolicyType()
void resume()
void suspend()
boolean isSuspended()
<T> T getConfig(ConfigKey<T> key)
config().get(key)
@Deprecated <T> T setConfig(ConfigKey<T> key, T val)
setConfig
in interface Configurable
@Beta RebindSupport<PolicyMemento> getRebindSupport()
getRebindSupport
in interface Rebindable