blob: 973cc8ea75ec6ef6c76f0baa6029a36e8dd2f576 [file] [log] [blame]
package brooklyn.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
*/
public interface Policy extends EntityAdjunct {
/**
* A unique id for this policy.
*/
String getId();
/**
* Get the name assigned to this policy.
*
* @return the name assigned to the policy.
*/
String getName();
/**
* Resume the policy
*/
void resume();
/**
* Suspend the policy
*/
void suspend();
/**
* Whether the policy is suspended
*/
boolean isSuspended();
}