Brooklyn

brooklyn.policy.followthesun
[Java] Class FollowTheSunPolicy

java.lang.Object
  brooklyn.policy.basic.AbstractEntityAdjunct
      brooklyn.policy.basic.AbstractPolicy
          brooklyn.policy.followthesun.FollowTheSunPolicy

@Catalog
public class FollowTheSunPolicy
extends AbstractPolicy

Field Summary
static java.lang.String NAME

 
Fields inherited from class AbstractPolicy
policyStatus, suspended
 
Fields inherited from class AbstractEntityAdjunct
_subscriptionTracker, adjunctType, configsInternal, entity, execution, id, leftoverProperties, name
 
Constructor Summary
FollowTheSunPolicy(AttributeSensor itemUsageMetric, FollowTheSunModel model, FollowTheSunParameters parameters)

FollowTheSunPolicy(java.util.Map props, AttributeSensor itemUsageMetric, FollowTheSunModel model, FollowTheSunParameters parameters)

 
Method Summary
void resume()

void setEntity(EntityLocal entity)

void suspend()

java.lang.String toString()

 
Methods inherited from class AbstractPolicy
destroy, getPolicyType, getRebindSupport, isRunning, isSuspended, resume, suspend, toString
 
Methods inherited from class AbstractEntityAdjunct
check, configure, configure, destroy, doReconfigureConfig, getAdjunctType, getAllConfig, getAllSubscriptions, getConfig, getConfigMap, getId, getManagementContext, getName, getSubscriptionTracker, init, isDestroyed, isLegacyConstruction, isRunning, setConfig, setEntity, setId, setManagementContext, setName, subscribe, subscribeToChildren, subscribeToMembers, toString, unsubscribe, unsubscribe
 

Field Detail

NAME

public static final java.lang.String NAME


 
Constructor Detail

FollowTheSunPolicy

public FollowTheSunPolicy(AttributeSensor itemUsageMetric, FollowTheSunModel model, FollowTheSunParameters parameters)


FollowTheSunPolicy

public FollowTheSunPolicy(java.util.Map props, AttributeSensor itemUsageMetric, FollowTheSunModel model, FollowTheSunParameters parameters)


 
Method Detail

resume

}
public void resume()


setEntity

super.setEntity(entity);
public void setEntity(EntityLocal entity)


suspend

executorQueued.set(false);
public void suspend()


toString

public java.lang.String toString()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.