|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectgroovy.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 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 |
---|
public static final BasicAttributeSensor HOSTNAME
public static final BasicAttributeSensor SERVICE_STATE
public static final Sensor SERVICE_UP
public static final BasicAttributeSensor TARGETS
protected java.util.Set entitiesWithoutGeoInfo
protected static final Logger log
protected Entity targetEntityProvider
protected java.util.Map targetHosts
Property Detail |
---|
java.util.concurrent.ScheduledFuture poll
Constructor Detail |
---|
AbstractGeoDnsService(java.util.Map properties = [:], Entity owner = null)
Method Detail |
---|
protected boolean addTargetHost(Entity e, boolean doUpdate)
protected void beginPoll()
@Override void destroy()
protected void endPoll()
java.lang.String getHostname()
@Override void onManagementBecomingMaster()
@Override void onManagementNoLongerMaster()
protected void reconfigureService(java.util.Collection targetHosts)
protected void refreshGroupMembership()
protected boolean removeTargetHost(Entity e, boolean doUpdate)
void setServiceState(Lifecycle state)
void setTargetEntityProvider(Entity entityProvider)
protected void update()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.