|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractSoftwareProcessDriver
public abstract class AbstractSoftwareProcessDriver
An abstract implementation of the SoftwareProcessDriver.
Field Summary | |
---|---|
protected EntityLocal |
entity
|
protected Location |
location
|
protected ResourceUtils |
resource
|
Constructor Summary | |
AbstractSoftwareProcessDriver(EntityLocal entity, Location location)
|
Method Summary | |
---|---|
void
|
customize()
|
protected boolean
|
doFullStartOnRestart()
|
EntityLocal
|
getEntity()
|
Location
|
getLocation()
|
java.io.InputStream
|
getResource(java.lang.String url)
|
java.lang.String
|
getResourceAsString(java.lang.String url)
|
void
|
install()
|
void
|
kill()
|
void
|
launch()
|
void
|
postLaunch()
Implement this method in child classes to add some post-launch behavior |
java.lang.String
|
processTemplate(java.io.File templateConfigFile, java.util.Map extraSubstitutions)
|
java.lang.String
|
processTemplate(java.io.File templateConfigFile)
|
java.lang.String
|
processTemplate(java.lang.String templateConfigUrl)
Takes the contents of a template file from the given URL (often a classpath://com/myco/myprod/myfile.conf or .sh) and replaces "${entity.xxx}" with the result of entity.getXxx() and similar for other driver, location; as well as replacing config keys on the management context |
java.lang.String
|
processTemplate(java.lang.String templateConfigUrl, java.util.Map extraSubstitutions)
|
java.lang.String
|
processTemplateContents(java.lang.String templateContents)
|
java.lang.String
|
processTemplateContents(java.lang.String templateContents, java.util.Map extraSubstitutions)
|
void
|
rebind()
|
void
|
restart()
|
void
|
start()
Start the entity. |
void
|
stop()
|
protected void
|
waitForConfigKey(ConfigKey configKey)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final EntityLocal entity
protected final Location location
protected final ResourceUtils resource
Constructor Detail |
---|
public AbstractSoftwareProcessDriver(EntityLocal entity, Location location)
Method Detail |
---|
public void customize()
ally restart() would take options, e.g. whether to do full start, skip installs, etc; * however in the absence here is a toggle - not sure how well it works; * default is false which is similar to previous behaviour (with some seemingly-obvious tidies), * meaning install and configure will NOT be done on restart. */ protected boolean doFullStartOnRestart() { ret protected boolean doFullStartOnRestart()
ic EntityLocal getEntity() { return entity; } public EntityLocal getEntity()
ic Location getLocation() { return location; } public Location getLocation()
public java.io.InputStream getResource(java.lang.String url)
public java.lang.String getResourceAsString(java.lang.String url)
public void install()
public void kill() { public void kill()
public void launch()
public void postLaunch()
public java.lang.String processTemplate(java.io.File templateConfigFile, java.util.Map extraSubstitutions)
public java.lang.String processTemplate(java.io.File templateConfigFile)
public java.lang.String processTemplate(java.lang.String templateConfigUrl)
uses Freemarker templates under the covers
public java.lang.String processTemplate(java.lang.String templateConfigUrl, java.util.Map extraSubstitutions)
public java.lang.String processTemplateContents(java.lang.String templateContents)
public java.lang.String processTemplateContents(java.lang.String templateContents, java.util.Map extraSubstitutions)
@Override public void rebind()
void restart() { Dyn public void restart()
void start() { Dyn public void start()
abstract void stop(); public void stop()
protected void waitForConfigKey(ConfigKey configKey)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.