|
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(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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()
@Beta* meaning install and configure will NOT be done on restart. */ protected boolean doFullStartOnRestart() { return false; } protected boolean doFullStartOnRestart()
@java.lang.Overridepublic Location getLocation() { return location; } public EntityLocal getEntity()
@java.lang.Overridereturn resource.getResourceFromUrl(url); public Location getLocation()
public java.io.InputStream getResource(java.lang.String url)
public java.lang.String getResourceAsString(java.lang.String url)
public void install()
@java.lang.Overridepublic 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)
@java.lang.Override public void rebind()
@java.lang.Overridepublic void restart() { public void restart()
@java.lang.Overridepublic void start() { public void start()
@java.lang.Overridepublic abstract void stop(); public void stop()
protected void waitForConfigKey(ConfigKey configKey)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.