brooklyn.policy
Interface Policy

All Superinterfaces:
EntityAdjunct, Rebindable<PolicyMemento>

public interface Policy
extends EntityAdjunct, Rebindable<PolicyMemento>

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
 String getId()
          A unique id for this policy.
 String getName()
          Get the name assigned to this policy.
 boolean isSuspended()
          Whether the policy is suspended
 void resume()
          Resume the policy
 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

getId

String getId()
A unique id for this policy.

Specified by:
getId in interface EntityAdjunct

getName

String getName()
Get the name assigned to this policy.

Specified by:
getName in interface EntityAdjunct
Returns:
the name assigned to the policy.

resume

void resume()
Resume the policy


suspend

void suspend()
Suspend the policy


isSuspended

boolean isSuspended()
Whether the policy is suspended



Copyright © 2013. All Rights Reserved.