public abstract class SdnProviderImpl extends org.apache.brooklyn.entity.stock.BasicStartableImpl implements DockerSdnProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
SdnProviderImpl.MemberTrackingPolicy |
org.apache.brooklyn.core.entity.AbstractEntity.BasicConfigurationSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicEnricherSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicFeedSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicGroupSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicPolicySupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicSensorSupport, org.apache.brooklyn.core.entity.AbstractEntity.BasicSubscriptionSupportorg.apache.brooklyn.core.objs.AbstractBrooklynObject.BasicTagSupportorg.apache.brooklyn.entity.stock.BasicStartable.LocationsFilterorg.apache.brooklyn.api.entity.Entity.AdjunctSupport<T extends org.apache.brooklyn.api.objs.EntityAdjunct>, org.apache.brooklyn.api.entity.Entity.EnricherSupport, org.apache.brooklyn.api.entity.Entity.GroupSupport, org.apache.brooklyn.api.entity.Entity.PolicySupport, org.apache.brooklyn.api.entity.Entity.SensorSupportorg.apache.brooklyn.api.objs.BrooklynObject.RelationSupport<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.api.objs.BrooklynObject.SubscriptionSupport, org.apache.brooklyn.api.objs.BrooklynObject.TagSupportorg.apache.brooklyn.api.objs.Configurable.ConfigurationSupportorg.apache.brooklyn.core.entity.trait.Startable.RestartEffectorBody, org.apache.brooklyn.core.entity.trait.Startable.StartEffectorBody, org.apache.brooklyn.core.entity.trait.Startable.StopEffectorBodyorg.apache.brooklyn.core.entity.EntityInternal.EnricherSupportInternal, org.apache.brooklyn.core.entity.EntityInternal.EntitySubscriptionSupportInternal, org.apache.brooklyn.core.entity.EntityInternal.FeedSupport, org.apache.brooklyn.core.entity.EntityInternal.GroupSupportInternal, org.apache.brooklyn.core.entity.EntityInternal.PolicySupportInternal, org.apache.brooklyn.core.entity.EntityInternal.SensorSupportInternalorg.apache.brooklyn.core.objs.BrooklynObjectInternal.ConfigurationSupportInternal, org.apache.brooklyn.core.objs.BrooklynObjectInternal.RelationSupportInternal<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.core.objs.BrooklynObjectInternal.SubscriptionSupportInternal| Modifier and Type | Field and Description |
|---|---|
protected Object |
addressMutex
Held while obtaining new IP addresses for containers.
|
protected Object |
hostMutex
Held while adding or removing new
SdnAgent entities on hosts. |
protected Object |
networkMutex
Mutex for provisioning new networks
|
_subscriptionTracker, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, GROUP_ADDED, GROUP_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, managementSupport, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, tempWorkingsAGENT_CIDR, ALLOCATED_ADDRESSES, ALLOCATED_IPS, DOCKER_INFRASTRUCTURE, SDN_AGENT_SPEC, SDN_AGENTSALLOCATED_NETWORKS, APPLICATION_CIDR, CONTAINER_ADDRESSES, CONTAINER_NETWORK_CIDR, CONTAINER_NETWORK_SIZE, SDN_APPLICATIONS, SDN_NETWORKS, SUBNET_ADDRESS_ALLOCATIONS, SUBNET_ENTITIES, SUBNETS| Constructor and Description |
|---|
SdnProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addHost(DockerHost host) |
protected void |
addHostTrackerPolicy() |
void |
associateContainerAddress(String containerId,
InetAddress address) |
void |
deallocateNetwork(VirtualNetwork network) |
org.apache.brooklyn.api.entity.Group |
getAgents() |
org.apache.brooklyn.entity.group.DynamicCluster |
getDockerHostCluster() |
Object |
getNetworkMutex() |
InetAddress |
getNextAgentAddress(String agentId) |
InetAddress |
getNextContainerAddress(String subnetId) |
org.apache.brooklyn.util.net.Cidr |
getNextSubnetCidr() |
org.apache.brooklyn.util.net.Cidr |
getNextSubnetCidr(String networkId) |
org.apache.brooklyn.util.net.Cidr |
getSubnetCidr(String networkId) |
void |
init() |
Map<String,org.apache.brooklyn.util.net.Cidr> |
listManagedNetworkAddressSpace() |
void |
provisionNetwork(VirtualNetwork network) |
void |
rebind() |
void |
recordContainerAddress(String subnetId,
InetAddress address) |
void |
recordSubnetCidr(String networkId,
org.apache.brooklyn.util.net.Cidr subnetCidr) |
protected abstract void |
removeHost(DockerHost host) |
void |
start(Collection<? extends org.apache.brooklyn.api.location.Location> locs) |
void |
stop() |
addChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addLocations, addPolicy, addPolicy, clearLocations, clearParent, config, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, enrichers, equals, feeds, firstLocation, getAllAttributes, getAllConfig, getAllConfigBag, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getFeedSupport, getGroups, getIconUrl, getLocalConfigBag, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionTracker, groups, hashCode, initEnrichers, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, onTagsChanged, policies, refreshInheritedConfig, relations, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeGroup, removeLocations, removePolicy, requestPersist, resetProxy, sensors, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDefaultDisplayName, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, isLegacyConstruction, isRebinding, setCatalogItemId, tagsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIpPermissionsaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, subscriptions, tagsprotected final transient Object addressMutex
protected final transient Object hostMutex
SdnAgent entities on hosts.protected final transient Object networkMutex
public void init()
init in class org.apache.brooklyn.core.entity.AbstractEntitypublic InetAddress getNextAgentAddress(String agentId)
getNextAgentAddress in interface DockerSdnProviderpublic InetAddress getNextContainerAddress(String subnetId)
getNextContainerAddress in interface SdnProviderpublic void recordContainerAddress(String subnetId, InetAddress address)
recordContainerAddress in interface SdnProviderpublic void associateContainerAddress(String containerId, InetAddress address)
associateContainerAddress in interface SdnProviderpublic org.apache.brooklyn.util.net.Cidr getNextSubnetCidr(String networkId)
getNextSubnetCidr in interface SdnProviderpublic org.apache.brooklyn.util.net.Cidr getNextSubnetCidr()
getNextSubnetCidr in interface SdnProviderpublic void recordSubnetCidr(String networkId, org.apache.brooklyn.util.net.Cidr subnetCidr)
recordSubnetCidr in interface SdnProviderpublic org.apache.brooklyn.util.net.Cidr getSubnetCidr(String networkId)
getSubnetCidr in interface SdnProviderpublic Object getNetworkMutex()
getNetworkMutex in interface SdnProviderpublic org.apache.brooklyn.entity.group.DynamicCluster getDockerHostCluster()
getDockerHostCluster in interface DockerSdnProviderpublic org.apache.brooklyn.api.entity.Group getAgents()
getAgents in interface DockerSdnProviderpublic void start(Collection<? extends org.apache.brooklyn.api.location.Location> locs)
start in interface org.apache.brooklyn.core.entity.trait.Startablestart in class org.apache.brooklyn.entity.stock.BasicStartableImplpublic void stop()
stop in interface org.apache.brooklyn.core.entity.trait.Startablestop in class org.apache.brooklyn.entity.stock.BasicStartableImplpublic void rebind()
rebind in class org.apache.brooklyn.core.objs.AbstractBrooklynObjectprotected void addHostTrackerPolicy()
protected abstract void addHost(DockerHost host)
protected abstract void removeHost(DockerHost host)
public Map<String,org.apache.brooklyn.util.net.Cidr> listManagedNetworkAddressSpace()
listManagedNetworkAddressSpace in interface NetworkProvisioningExtensionpublic void provisionNetwork(VirtualNetwork network)
provisionNetwork in interface NetworkProvisioningExtensionpublic void deallocateNetwork(VirtualNetwork network)
deallocateNetwork in interface NetworkProvisioningExtensionCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.