Brooklyn

brooklyn.entity.proxy
[Java] Interface AbstractController

brooklyn.entity.Entity
  brooklyn.entity.basic.SoftwareProcess
      brooklyn.entity.trait.Startable
          brooklyn.entity.proxy.LoadBalancer
              brooklyn.entity.proxy.AbstractController
                  brooklyn.entity.rebind.Rebindable
All Superinterfaces:
Entity, SoftwareProcess, Startable, LoadBalancer, Rebindable

@ImplementedBy(AbstractControllerImpl.class)
public interface AbstractController
extends LoadBalancer, SoftwareProcess

Represents a controller mechanism for a Cluster.


Field Summary
static BasicAttributeSensorAndConfigKey DOMAIN_NAME

static BasicAttributeSensorAndConfigKey PORT_NUMBER_SENSOR

sensor for port to forward to on target entities

static BasicAttributeSensorAndConfigKey PROTOCOL

static PortAttributeSensorAndConfigKey PROXY_HTTP_PORT

port where this controller should live

static MethodEffector RELOAD

static BasicAttributeSensor ROOT_URL

static BasicAttributeSensor SERVER_POOL_TARGETS

static BasicConfigKey SSL_CONFIG

static BasicAttributeSensor TARGETS

@deprecated Use SERVER_POOL_TARGETS

static MethodEffector UPDATE

 
Fields inherited from interface LoadBalancer
SERVER_POOL, URL_MAPPINGS
 
Fields inherited from interface SoftwareProcess
ADDRESS, CUSTOMIZE_LATCH, DOWNLOAD_ADDON_URLS, DOWNLOAD_URL, HOSTNAME, INSTALL_LATCH, LAUNCH_LATCH, PROVISIONING_LOCATION, PROVISIONING_PROPERTIES, SERVICE_STATE, SHELL_ENVIRONMENT, START_LATCH, START_TIMEOUT, SUGGESTED_INSTALL_DIR, SUGGESTED_RUN_DIR, SUGGESTED_VERSION
 
Fields inherited from interface Startable
RESTART, SERVICE_UP, START, STOP
 
Method Summary
void bind(java.util.Map flags)

Opportunity to do late-binding of the cluster that is being controlled.

java.lang.String getDomain()

returns primary domain this controller responds to, or null if it responds to all domains

java.lang.Integer getPort()

AttributeSensor getPortNumberSensor()

java.lang.String getProtocol()

java.lang.String getUrl()

primary URL this controller serves, if one can / has been inferred

boolean isActive()

void reload()

void update()

 

Field Detail

DOMAIN_NAME

@SetFromFlag("domain")
public static final BasicAttributeSensorAndConfigKey DOMAIN_NAME


PORT_NUMBER_SENSOR

@SetFromFlag("portNumberSensor")
public static final BasicAttributeSensorAndConfigKey PORT_NUMBER_SENSOR
sensor for port to forward to on target entities


PROTOCOL

@SetFromFlag("protocol")
public static final BasicAttributeSensorAndConfigKey PROTOCOL


PROXY_HTTP_PORT

@SetFromFlag("port")
    /** port where this controller should live */
public static final PortAttributeSensorAndConfigKey PROXY_HTTP_PORT
port where this controller should live


RELOAD

public static final MethodEffector RELOAD


ROOT_URL

public static final BasicAttributeSensor ROOT_URL


SERVER_POOL_TARGETS

public static final BasicAttributeSensor SERVER_POOL_TARGETS


SSL_CONFIG

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


TARGETS

public static final BasicAttributeSensor TARGETS
deprecated:
Use SERVER_POOL_TARGETS


UPDATE

public static final MethodEffector UPDATE


 
Method Detail

bind

public void bind(java.util.Map flags)
Opportunity to do late-binding of the cluster that is being controlled. Must be called before start(). Can pass in the 'cluster'.


getDomain

public java.lang.String getDomain()
returns primary domain this controller responds to, or null if it responds to all domains


getPort

public java.lang.Integer getPort()


getPortNumberSensor

public AttributeSensor getPortNumberSensor()


getProtocol

public java.lang.String getProtocol()


getUrl

public java.lang.String getUrl()
primary URL this controller serves, if one can / has been inferred


isActive

public boolean isActive()


reload

@Description("Forces reload of the configuration")
public void reload()


update

@Description("Updates the entities configuration, and then forces reload of that configuration")
public void update()


 

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