|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport brooklyn.entity.basic.AbstractEntity brooklyn.entity.basic.AbstractGroupImpl brooklyn.entity.proxy.nginx.UrlMappingImpl
public class UrlMappingImpl extends AbstractGroupImpl
This is a group whose members will be made available to a load-balancer / URL forwarding service (such as nginx). Configuration requires a domain and some mechanism for finding members. The easiest way to find members is using a target whose children will be tracked, but alternative membership policies can also be used.
Field Summary |
---|
Fields inherited from class AbstractEntity | |
---|---|
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings |
Constructor Summary | |
UrlMappingImpl()
|
|
UrlMappingImpl(java.util.Map props, Entity parent)
|
Method Summary | |
---|---|
UrlMapping
|
addRewrite(java.lang.String from, java.lang.String to)
adds a rewrite rule, must be called at config time. |
UrlMapping
|
addRewrite(UrlRewriteRule rule)
adds a rewrite rule, must be called at config time. |
void
|
discard()
|
protected java.lang.String
|
getAddressOfEntity(Entity s)
defines how address string, ie hostname:port, is constructed from a given entity. |
java.lang.String
|
getDomain()
|
java.lang.String
|
getPath()
|
protected SubscriptionHandle
|
getSubscriptionHandle()
|
Entity
|
getTarget()
|
java.lang.String
|
getUniqueLabel()
|
void
|
onManagementStarting()
|
void
|
recompute()
|
protected void
|
recomputeAddresses()
|
void
|
setTarget(Entity target)
|
Methods inherited from class AbstractGroupImpl | |
---|---|
addMember, getCurrentSize, getMembers, hasMember, removeMember, setMembers, setMembers |
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() |
Constructor Detail |
---|
public UrlMappingImpl()
public UrlMappingImpl(java.util.Map props, Entity parent)
Method Detail |
---|
@Override public UrlMapping addRewrite(java.lang.String from, java.lang.String to)
@Override public UrlMapping addRewrite(UrlRewriteRule rule)
@Override public void discard()
protected java.lang.String getAddressOfEntity(Entity s)
the default is to look at HOSTNAME and HTTPS_PORT or HTTP_PORT attribute sensors (depending on SSL_CONFIG being set with targetIsSsl).
this method is suitable (intended) for overriding if needed.
@Override public java.lang.String getDomain()
@Override public java.lang.String getPath()
protected SubscriptionHandle getSubscriptionHandle()
@Override public Entity getTarget()
@Override public java.lang.String getUniqueLabel()
@Override public void onManagementStarting()
@Override public void recompute()
protected void recomputeAddresses()
@Override public void setTarget(Entity target)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.