|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
brooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractApplication
public abstract class AbstractApplication extends AbstractEntity
Users can extend this to define the entities in their application, and the relationships between those entities. Users should override the init() method, and in there should create their entities.
Field Summary | |
---|---|
static Logger |
log
|
Fields inherited from class AbstractEntity | |
---|---|
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings |
Constructor Summary | |
AbstractApplication()
|
|
AbstractApplication(java.util.Map properties)
Usual constructor, takes a set of properties; also (experimental) permits defining a brooklynProperties source |
|
AbstractApplication(java.util.Map properties, Entity parent)
Constructor for when application is nested inside another application |
Method Summary | |
---|---|
Application
|
getApplication()
|
boolean
|
hasManagementContext()
@deprecated since 0.4.0; use getManagementSupport().isDeployed() |
void
|
init()
|
boolean
|
isDeployed()
@deprecated use getManagementSupport().isDeployed, which is not linked to start/stop |
void
|
postStart(java.util.Collection locations)
Default is no-op. |
void
|
preStart(java.util.Collection locations)
Default is no-op. |
void
|
restart()
|
protected void
|
setApplication(Application app)
|
void
|
setManagementContext(AbstractManagementContext mgmt)
@deprecated since 0.4.0 use mgmt.manage(app) |
AbstractApplication
|
setParent(Entity parent)
|
void
|
start(java.util.Collection locations)
Default start will start all Startable children (child.start(Collection |
void
|
stop()
Default stop will stop all Startable children |
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() |
Field Detail |
---|
public static final Logger log
Constructor Detail |
---|
public AbstractApplication()
public AbstractApplication(java.util.Map properties)
@Deprecated public AbstractApplication(java.util.Map properties, Entity parent)
Method Detail |
---|
@Override public Application getApplication()
public boolean hasManagementContext()
@Override public void init()
public boolean isDeployed()
public void postStart(java.util.Collection locations)
public void preStart(java.util.Collection locations)
public void restart()
@Override protected void setApplication(Application app)
public void setManagementContext(AbstractManagementContext mgmt)
public AbstractApplication setParent(Entity parent)
public void start(java.util.Collection locations)
public void stop()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.