Brooklyn

brooklyn.entity.dns
[Java] Class AbstractGeoDnsServiceImpl

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.dns.AbstractGeoDnsServiceImpl
All Implemented Interfaces:
AbstractGeoDnsService

public abstract class AbstractGeoDnsServiceImpl
extends AbstractEntity

Field Summary
protected java.util.Set entitiesWithoutGeoInfo

protected static Logger log

protected Entity targetEntityProvider

protected java.util.Map targetHosts

 
Fields inherited from class AbstractEntity
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings
 
Constructor Summary
AbstractGeoDnsServiceImpl()

AbstractGeoDnsServiceImpl(java.util.Map properties)

AbstractGeoDnsServiceImpl(Entity parent)

AbstractGeoDnsServiceImpl(java.util.Map properties, Entity parent)

 
Method Summary
protected boolean addTargetHost(Entity e)

Adds this host, if it is absent or if its hostname has changed.

protected void beginPoll()

void destroy()

protected void endPoll()

java.lang.String getHostname()

java.util.Map getTargetHosts()

protected java.lang.String inferHostname(Entity entity)

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)

protected void update()

 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, clearParent, configure, configure, configure, configure, configure, createManagementSupport, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getChildrenReference, getConfig, getConfig, getConfig, getConfig, getConfigMap, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getOwnedChildren, getOwnedChildrenReference, getOwner, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, hashCode, init, invalidateReferences, invoke, invoke, invokeFromJava, invokeMethod, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setBeingManaged, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setOwner, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, toStringHelper, 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

entitiesWithoutGeoInfo

protected java.util.Set entitiesWithoutGeoInfo


log

protected static final Logger log


targetEntityProvider

@SetFromFlag
protected Entity targetEntityProvider


targetHosts

protected java.util.Map targetHosts


 
Constructor Detail

AbstractGeoDnsServiceImpl

public AbstractGeoDnsServiceImpl()


AbstractGeoDnsServiceImpl

public AbstractGeoDnsServiceImpl(java.util.Map properties)


AbstractGeoDnsServiceImpl

public AbstractGeoDnsServiceImpl(Entity parent)


AbstractGeoDnsServiceImpl

public AbstractGeoDnsServiceImpl(java.util.Map properties, Entity parent)


 
Method Detail

addTargetHost

protected boolean addTargetHost(Entity e)
Adds this host, if it is absent or if its hostname has changed.
Returns:
true if host is added or changed


beginPoll

protected void beginPoll()


destroy

@Override
public void destroy()


endPoll

protected void endPoll()


getHostname

@Override
public java.lang.String getHostname()


getTargetHosts

@Override
public java.util.Map getTargetHosts()


inferHostname

protected java.lang.String inferHostname(Entity entity)


onManagementBecomingMaster

@Override
public void onManagementBecomingMaster()


onManagementNoLongerMaster

@Override
public 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

@Override
public void setServiceState(Lifecycle state)


setTargetEntityProvider

@Override
public void setTargetEntityProvider(Entity entityProvider)


update

protected void update()


 

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