public abstract class AbstractPolicy extends AbstractEntityAdjunct implements Policy, Configurable
Policy implementation; all policies should extend this or its childrenBrooklynObject.TagSupport| Constructor and Description | 
|---|
| AbstractPolicy() | 
| AbstractPolicy(java.util.Map<?,?> flags) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroy()Unsubscribes and clears all managed subscriptions; is called by the owning entity when a policy is removed
 and should always be called by any subclasses overriding this method | 
| 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 | isRunning()Whether the adjunct is available/active | 
| boolean | isSuspended()Whether the policy is suspended | 
| void | resume()Resume the policy | 
| void | suspend()Suspend the policy | 
| java.lang.String | toString() | 
configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, setConfig, setDisplayName, setEntity, setName, tagsgetCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContextequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllConfig, getConfig, getId, getName, setConfiggetUniqueTag, isDestroyedgetCatalogItemId, getDisplayName, getTagSupport, tagssetCatalogItemIdpublic AbstractPolicy()
public AbstractPolicy(java.util.Map<?,?> flags)
public PolicyType getPolicyType()
PolicygetPolicyType in interface Policypublic void suspend()
Policypublic void resume()
Policypublic boolean isSuspended()
PolicyisSuspended in interface Policypublic void destroy()
AbstractEntityAdjunctdestroy in class AbstractEntityAdjunctpublic boolean isRunning()
EntityAdjunctisRunning in interface EntityAdjunctisRunning in class AbstractEntityAdjunctpublic RebindSupport<PolicyMemento> getRebindSupport()
PolicygetRebindSupport in interface RebindablegetRebindSupport in interface Policypublic java.lang.String toString()
toString in class AbstractEntityAdjunct