|
Brooklyn | |||||||
FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.entity.dns.AbstractGeoDnsServiceImpl
public abstract class AbstractGeoDnsServiceImpl extends AbstractEntity
Field Summary | |
---|---|
protected java.util.Set |
entitiesWithoutGeoInfo
|
protected java.util.Set |
entitiesWithoutHostname
|
protected Entity |
targetEntityProvider
|
protected java.util.Map |
targetHosts
|
Fields inherited from class AbstractEntity | |
---|---|
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings |
Constructor Summary | |
AbstractGeoDnsServiceImpl()
|
Method Summary | |
---|---|
protected boolean
|
addTargetHost(Entity entity)
Adds this host, if it is absent or if its hostname has changed. |
protected void
|
beginPoll()
|
void
|
destroy()
|
protected void
|
endPoll()
should set up so these hosts are targeted, and setServiceState appropriately |
java.lang.String
|
getHostname()
|
java.util.Map
|
getTargetHosts()
|
protected HostGeoInfo
|
inferHostGeoInfo(java.lang.String hostname, java.lang.String ip)
|
protected java.lang.String
|
inferHostname(Entity entity)
|
protected java.lang.String
|
inferIp(Entity entity)
|
void
|
onManagementBecomingMaster()
|
void
|
onManagementNoLongerMaster()
|
protected void
|
reconfigureService(java.util.Collection targetHosts)
|
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()
|
Field Detail |
---|
protected java.util.Set entitiesWithoutGeoInfo
protected java.util.Set entitiesWithoutHostname
@SetFromFlag protected Entity targetEntityProvider
protected java.util.Map targetHosts
Constructor Detail |
---|
public AbstractGeoDnsServiceImpl()
Method Detail |
---|
protected boolean addTargetHost(Entity entity)
The "hostname" is always preferred for inferring the geo info, if it is available. The USE_HOSTNAMES==false is just used to say whether to fall back to IP if that is not available (and whether to switch the the geo-info so it refs the IP instead of the hostname). TODO in a future release, we may change this to explicitly set the sensor(s) to look at on the entity, and be stricter about using them in order.
protected void beginPoll()
public void setServiceState(Lifecycle state) { public void destroy()
protected void endPoll()
if (targetEntityProvider == null) public java.lang.String getHostname()
super.onManagementBecomingMaster(); public java.util.Map getTargetHosts()
protected HostGeoInfo inferHostGeoInfo(java.lang.String hostname, java.lang.String ip)
protected java.lang.String inferHostname(Entity entity)
protected java.lang.String inferIp(Entity entity)
endPoll(); public void onManagementBecomingMaster()
public void destroy() { public void onManagementNoLongerMaster()
protected void reconfigureService(java.util.Collection targetHosts)
protected void refreshGroupMembership()
protected boolean removeTargetHost(Entity e, boolean doUpdate)
@Override public void setServiceState(Lifecycle state)
protected void beginPoll() { public void setTargetEntityProvider(Entity entityProvider)
protected void update()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.