|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
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 Group |
targetEntityProvider
|
protected java.util.Map |
targetHosts
|
protected AbstractMembershipTrackingPolicy |
tracker
|
Fields inherited from class AbstractEntity | |
---|---|
CHILD_ADDED, CHILD_REMOVED, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, 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. |
void
|
destroy()
|
protected void
|
endTracker()
|
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(Group entityProvider)
should set up so these hosts are targeted, and setServiceState appropriately |
protected void
|
startTracker()
|
protected void
|
update()
|
Field Detail |
---|
protected java.util.Set entitiesWithoutGeoInfo
protected java.util.Set entitiesWithoutHostname
@SetFromFlag protected Group targetEntityProvider
protected java.util.Map targetHosts
protected AbstractMembershipTrackingPolicy tracker
Constructor Detail |
---|
public AbstractGeoDnsServiceImpl()
Method Detail |
---|
protected boolean addTargetHost(Entity entity)
For whether to use hostname or ip, see config and attributes AbstractGeoDnsService#USE_HOSTNAMES#USE_HOSTNAMES, Attributes#HOSTNAME#HOSTNAME and Attributes#ADDRESS#ADDRESS (via inferHostname(Entity) and inferIp(Entity). Note that the "hostname" could in fact be an IP address, if inferHostname(Entity) returns an IP!
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.
@java.lang.Overridepublic void setServiceState(Lifecycle state) { public void destroy()
protected void endTracker()
@java.lang.Overridetry { public java.lang.String getHostname()
@java.lang.Overridesuper.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)
@java.lang.OverrideendTracker(); public void onManagementBecomingMaster()
@java.lang.Overridepublic void destroy() { public void onManagementNoLongerMaster()
protected void reconfigureService(java.util.Collection targetHosts)
protected void refreshGroupMembership()
protected boolean removeTargetHost(Entity e, boolean doUpdate)
@java.lang.Override public void setServiceState(Lifecycle state)
@java.lang.Overrideprotected abstract void reconfigureService(CollectiontargetHosts); public void setTargetEntityProvider(Group entityProvider)
protected void startTracker()
protected void update()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.