public abstract class AbstractGeoDnsServiceImpl extends AbstractEntity implements AbstractGeoDnsService
Modifier and Type | Class and Description |
---|---|
static class |
AbstractGeoDnsServiceImpl.MemberTrackingPolicy |
AbstractEntity.BasicConfigurationSupport, AbstractEntity.BasicEnricherSupport, AbstractEntity.BasicGroupSupport, AbstractEntity.BasicPolicySupport, AbstractEntity.BasicSensorSupport, AbstractEntity.BasicSubscriptionSupport
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
EntityInternal.EnricherSupportInternal, EntityInternal.EntitySubscriptionSupportInternal, EntityInternal.FeedSupport, EntityInternal.GroupSupportInternal, EntityInternal.PolicySupportInternal, EntityInternal.SensorSupportInternal
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
APPLICATION_ID, CATALOG_ID, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, ENTITY_ID, GROUP_ADDED, GROUP_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED
ADDRESS, ENTITY_PROVIDER, FILTER_FOR_RUNNING, HOSTNAME, INCLUDE_HOMELESS_ENTITIES, SERVICE_STATE_ACTUAL, SERVICE_UP, TARGETS, USE_HOSTNAMES
Constructor and Description |
---|
AbstractGeoDnsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Should be invoked at end-of-life to clean up the item.
|
abstract java.lang.String |
getHostname()
should return the hostname which this DNS service is configuring
|
java.util.Map<Entity,HostGeoInfo> |
getTargetHosts() |
void |
init()
Default entity initialization sets ID sensors and calls
AbstractEntity.initEnrichers() . |
void |
onManagementStarted()
Invoked by
EntityManagementSupport when this entity is fully managed and visible to other entities
through the management context. |
void |
onManagementStopped()
Invoked by
EntityManagementSupport when this entity is fully unmanaged. |
void |
setServiceState(Lifecycle state) |
void |
setTargetEntityProvider(Group entityProvider)
sets target to be a group whose *members* will be searched (non-Group items not supported)
|
addChild, addChild, addFeed, addLocations, addLocationsWithoutPublishing, clearLocations, clearParent, config, configure, configure, enrichers, equals, feeds, firstLocation, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEffector, getEntityType, getExecutionContext, getIconUrl, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getProxy, getProxyIfAvailable, getRebindSupport, groups, hashCode, invalidateReferences, invoke, invoke, invoke, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarting, policies, relations, removeChild, removeLocations, requestPersist, resetProxy, sensors, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setManagementContext, setParent, setProxy, subscriptions, toMetadataRecord, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tags
addChild, addChild, addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
public void init()
AbstractEntity
AbstractEntity.initEnrichers()
.init
in class AbstractEntity
public java.util.Map<Entity,HostGeoInfo> getTargetHosts()
getTargetHosts
in interface AbstractGeoDnsService
public void onManagementStarted()
AbstractEntity
EntityManagementSupport
when this entity is fully managed and visible to other entities
through the management context.onManagementStarted
in class AbstractEntity
public void onManagementStopped()
AbstractEntity
EntityManagementSupport
when this entity is fully unmanaged.
Note that the activies possible here (when unmanaged) are limited, and that this event may be caused by either a brooklyn node itself being demoted (so the entity is managed elsewhere) or by a controlled shutdown.
onManagementStopped
in class AbstractEntity
public void destroy()
AbstractEntity
destroy
in interface EntityInternal
destroy
in class AbstractEntity
public void setServiceState(Lifecycle state)
setServiceState
in interface AbstractGeoDnsService
public void setTargetEntityProvider(Group entityProvider)
AbstractGeoDnsService
setTargetEntityProvider
in interface AbstractGeoDnsService
public abstract java.lang.String getHostname()
AbstractGeoDnsService
getHostname
in interface AbstractGeoDnsService