Brooklyn

brooklyn.entity.dns
[Groovy] Class AbstractGeoDnsService

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.dns.AbstractGeoDnsService

abstract class AbstractGeoDnsService
extends AbstractEntity

Field Summary
static BasicAttributeSensor HOSTNAME

static BasicAttributeSensor SERVICE_STATE

static Sensor SERVICE_UP

static BasicAttributeSensor TARGETS

protected java.util.Set entitiesWithoutGeoInfo

protected static Logger log

protected Entity targetEntityProvider

protected java.util.Map targetHosts

 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Property Summary
java.util.concurrent.ScheduledFuture poll

 
Constructor Summary
AbstractGeoDnsService(java.util.Map properties = [:], Entity owner = null)

 
Method Summary
protected boolean addTargetHost(Entity e, boolean doUpdate)

returns if host is added

protected void beginPoll()

void destroy()

protected void endPoll()

java.lang.String getHostname()

should return the hostname which this DNS service is configuring

void onManagementBecomingMaster()

void onManagementNoLongerMaster()

protected void reconfigureService(java.util.Collection targetHosts)

should set up so these hosts are targeted, and setServiceState appropriately

protected void refreshGroupMembership()

protected boolean removeTargetHost(Entity e, boolean doUpdate)

remove if host removed

void setServiceState(Lifecycle state)

void setTargetEntityProvider(Entity entityProvider)

if target is a group, its members are searched; otherwise its children are searched

protected void update()

 
Methods inherited from class AbstractEntity
addEnricher, addGroup, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, configure, configure, destroy, emit, emitInternal, firstLocation, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getConfig, getConfig, getConfig, getConfig, getConfigMap, getEffector, getEnrichers, getEntityType, getExecutionContext, getGroups, getLocations, getManagementContext, getMutableEntityType, getOwnedChildren, getOwner, getPolicies, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, invalidate, invoke, invoke, invokeFromJava, invokeMethod, onManagementBecomingMaster, onManagementNoLongerMaster, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setBeingManaged, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setOwner, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, unsubscribe, unsubscribe
 
Methods inherited from class groovy.lang.GroovyObjectSupport
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()
 

Field Detail

HOSTNAME

public static final BasicAttributeSensor HOSTNAME


SERVICE_STATE

public static final BasicAttributeSensor SERVICE_STATE


SERVICE_UP

public static final Sensor SERVICE_UP


TARGETS

public static final BasicAttributeSensor TARGETS


entitiesWithoutGeoInfo

protected java.util.Set entitiesWithoutGeoInfo


log

protected static final Logger log


targetEntityProvider

protected Entity targetEntityProvider


targetHosts

protected java.util.Map targetHosts


 
Property Detail

poll

java.util.concurrent.ScheduledFuture poll


 
Constructor Detail

AbstractGeoDnsService

AbstractGeoDnsService(java.util.Map properties = [:], Entity owner = null)


 
Method Detail

addTargetHost

protected boolean addTargetHost(Entity e, boolean doUpdate)
returns if host is added


beginPoll

protected void beginPoll()


destroy

@Override
void destroy()


endPoll

protected void endPoll()


getHostname

java.lang.String getHostname()
should return the hostname which this DNS service is configuring


onManagementBecomingMaster

@Override
void onManagementBecomingMaster()


onManagementNoLongerMaster

@Override
void onManagementNoLongerMaster()


reconfigureService

protected void reconfigureService(java.util.Collection targetHosts)
should set up so these hosts are targeted, and setServiceState appropriately


refreshGroupMembership

protected void refreshGroupMembership()


removeTargetHost

protected boolean removeTargetHost(Entity e, boolean doUpdate)
remove if host removed


setServiceState

void setServiceState(Lifecycle state)


setTargetEntityProvider

void setTargetEntityProvider(Entity entityProvider)
if target is a group, its members are searched; otherwise its children are searched


update

protected void update()


 

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