public abstract class SdnAgentImpl extends org.apache.brooklyn.entity.software.base.SoftwareProcessImpl implements SdnAgent
org.apache.brooklyn.entity.software.base.SoftwareProcessImpl.ServiceNotUpDiagnosticsCollector, org.apache.brooklyn.entity.software.base.SoftwareProcessImpl.UpdatingNotUpFromServiceProcessIsRunningorg.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.software.base.SoftwareProcess.ChildStartableMode, org.apache.brooklyn.entity.software.base.SoftwareProcess.RestartSoftwareParameters, org.apache.brooklyn.entity.software.base.SoftwareProcess.StopSoftwareParametersorg.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.SubscriptionSupportInternalconnectedSensors_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, tempWorkingsATTACH_NETWORK, CREATE_NETWORK, DOCKER_HOST, SDN_AGENT, SDN_AGENT_ADDRESS, SDN_PROVIDERADDRESS, ARCHIVE_DIRECTORY_NAME_FORMAT, CHILDREN_STARTABLE_MODE, CUSTOMIZE_LATCH, DONT_REQUIRE_TTY_FOR_SUDO, DOWNLOAD_ADDON_URLS, DOWNLOAD_URL, ENTITY_STARTED, EXPANDED_INSTALL_DIR, HOSTNAME, INBOUND_PORTS_AUTO_INFER, INBOUND_PORTS_CONFIG_REGEX, INSTALL_DIR, INSTALL_FILES, INSTALL_LATCH, INSTALL_RESOURCES_LATCH, INSTALL_TEMPLATES, INSTALL_UNIQUE_LABEL, LAUNCH_LATCH, LIFECYCLE_EFFECTOR_TASKS, MAXIMUM_REBIND_SENSOR_CONNECT_DELAY, OPEN_IPTABLES, PID_FILE, POST_CUSTOMIZE_COMMAND, POST_INSTALL_COMMAND, POST_LAUNCH_COMMAND, PRE_CUSTOMIZE_COMMAND, PRE_INSTALL_COMMAND, PRE_INSTALL_FILES, PRE_INSTALL_TEMPLATES, PRE_LAUNCH_COMMAND, PROVISIONING_LOCATION, PROVISIONING_PROPERTIES, REQUIRED_OPEN_LOGIN_PORTS, RETRIEVE_USAGE_METRICS, RUN_DIR, RUNTIME_FILES, RUNTIME_RESOURCES_LATCH, RUNTIME_TEMPLATES, SERVICE_PROCESS_IS_RUNNING, SERVICE_STATE_ACTUAL, SERVICE_STATE_EXPECTED, SETUP_LATCH, SHELL_ENVIRONMENT, SKIP_ENTITY_START_IF_RUNNING, SKIP_INSTALLATION, START_LATCH, START_TIMEOUT, STOP_IPTABLES, SUBNET_ADDRESS, SUBNET_HOSTNAME, SUGGESTED_VERSION| Constructor and Description |
|---|
SdnAgentImpl() |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
attachNetwork(String containerId,
String networkId)
Attach a network to a container.
|
void |
connect(DockerContainer container,
VirtualNetwork network) |
protected void |
connectSensors() |
VirtualNetwork |
createNetwork(String networkId)
Create a network.
|
void |
deallocateNetwork(VirtualNetwork network) |
void |
disconnect(DockerContainer container,
VirtualNetwork network) |
void |
disconnectSensors() |
DockerHost |
getDockerHost() |
SdnAgentDriver |
getDriver() |
void |
init() |
void |
postStart() |
void |
preStart() |
String |
provisionNetwork(VirtualNetwork network) |
callRebindHooks, connectServiceUpIsRunning, disconnectServiceUpIsRunning, doInitDriver, getLifecycleEffectorTasks, getMachineOrNull, getProvisioningLocation, getRequiredOpenPorts, initDriver, initEnrichers, newDriver, obtainProvisioningFlags, onManagementStarted, onManagementStarting, populateServiceNotUpDiagnostics, postDriverStart, postRebind, postRestart, postStop, preRestart, preStop, preStopConfirmCustom, rebind, restart, setProvisioningLocation, start, stop, waitForEntityStart, waitForServiceUp, waitForServiceUp, waitForServiceUp, waitForServiceUpaddChild, 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, invalidateReferences, invoke, invoke, invoke, modifyAttribute, onManagementBecomingMaster, onManagementNoLongerMaster, 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, waitpopulateServiceNotUpDiagnosticsaddChild, 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, tagsconfig, getConfig, setConfigrestart, start, stoppublic void init()
init in class org.apache.brooklyn.entity.software.base.SoftwareProcessImplpublic SdnAgentDriver getDriver()
getDriver in interface org.apache.brooklyn.api.entity.drivers.DriverDependentEntitygetDriver in class org.apache.brooklyn.entity.software.base.SoftwareProcessImplprotected void connectSensors()
connectSensors in class org.apache.brooklyn.entity.software.base.SoftwareProcessImplpublic void disconnectSensors()
disconnectSensors in class org.apache.brooklyn.entity.software.base.SoftwareProcessImplpublic DockerHost getDockerHost()
getDockerHost in interface SdnAgentpublic void preStart()
preStart in class org.apache.brooklyn.entity.software.base.SoftwareProcessImplpublic void postStart()
postStart in class org.apache.brooklyn.entity.software.base.SoftwareProcessImplpublic VirtualNetwork createNetwork(String networkId)
SdnAgentcreateNetwork in interface SdnAgentnetworkId - the network ID to createVirtualNetworkpublic InetAddress attachNetwork(String containerId, String networkId)
SdnAgentattachNetwork in interface SdnAgentcontainerId - the container IDnetworkId - the network ID to attachSubnetTier IP addresspublic String provisionNetwork(VirtualNetwork network)
provisionNetwork in interface SdnAgentpublic void deallocateNetwork(VirtualNetwork network)
deallocateNetwork in interface SdnAgentpublic void connect(DockerContainer container, VirtualNetwork network)
public void disconnect(DockerContainer container, VirtualNetwork network)
disconnect in interface SdnAgentCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.