Brooklyn

brooklyn.entity.proxy.nginx
[Java] Interface UrlMapping

brooklyn.entity.Entity
  brooklyn.entity.Group
      brooklyn.entity.trait.Changeable
          brooklyn.entity.proxy.nginx.UrlMapping
              brooklyn.entity.basic.AbstractGroup
                  brooklyn.entity.rebind.Rebindable
All Superinterfaces:
Entity, Group, Changeable, AbstractGroup, Rebindable

@ImplementedBy(UrlMappingImpl.class)
public interface UrlMapping
extends AbstractGroup

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
static Effector DISCARD

static BasicConfigKey DOMAIN

static BasicConfigKey LABEL

static BasicConfigKey PATH

static BasicConfigKey REWRITES

static BasicAttributeSensor ROOT_URL

static BasicConfigKey SSL_CONFIG

static BasicAttributeSensor TARGET_ADDRESSES

static BasicConfigKey TARGET_PARENT

 
Fields inherited from interface Changeable
GROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED
 
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()

java.lang.String getDomain()

java.lang.String getPath()

Entity getTarget()

java.lang.String getUniqueLabel()

void recompute()

void setTarget(Entity target)

 
Methods inherited from interface AbstractGroup
setMembers, setMembers
 
Methods inherited from interface Entity
addChild, addChild, addEnricher, addGroup, addOwnedChild, addPolicy, clearOwner, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getDisplayName, getEnrichers, getEntityType, getGroups, getId, getLocations, getOwnedChildren, getOwner, getParent, getPolicies, getRebindSupport, invoke, removeChild, removeEnricher, removeOwnedChild, removePolicy, setOwner, setParent
 
Methods inherited from interface Group
addMember, getCurrentSize, getMembers, hasMember, removeMember
 

Field Detail

DISCARD

public static final Effector DISCARD


DOMAIN

@SetFromFlag("domain")
public static final BasicConfigKey DOMAIN


LABEL

@SetFromFlag("label")
public static final BasicConfigKey LABEL


PATH

@SetFromFlag("path")
public static final BasicConfigKey PATH


REWRITES

@SetFromFlag("rewrites")
public static final BasicConfigKey REWRITES


ROOT_URL

public static final BasicAttributeSensor ROOT_URL


SSL_CONFIG

@SetFromFlag("ssl")
public static final BasicConfigKey SSL_CONFIG


TARGET_ADDRESSES

public static final BasicAttributeSensor TARGET_ADDRESSES


TARGET_PARENT

@SetFromFlag("target")
public static final BasicConfigKey TARGET_PARENT


 
Method Detail

addRewrite

public UrlMapping addRewrite(java.lang.String from, java.lang.String to)
adds a rewrite rule, must be called at config time. see UrlRewriteRule for more info.


addRewrite

public UrlMapping addRewrite(UrlRewriteRule rule)
adds a rewrite rule, must be called at config time. see UrlRewriteRule for more info.


discard

@Description("Unmanages the url-mapping, so it is discarded and no longer applies")
public void discard()


getDomain

public java.lang.String getDomain()


getPath

public java.lang.String getPath()


getTarget

public Entity getTarget()


getUniqueLabel

public java.lang.String getUniqueLabel()


recompute

public void recompute()


setTarget

public void setTarget(Entity target)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.