|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.launcher.BrooklynLauncher
public class BrooklynLauncher
Example usage is: *
{
Method Summary | |
---|---|
BrooklynLauncher
|
application(Application app)
Specifies that the launcher should manage the given Brooklyn application. |
BrooklynLauncher
|
application(ApplicationBuilder appBuilder)
Specifies that the launcher should build and manage the given Brooklyn application. |
BrooklynLauncher
|
application(EntitySpec appSpec)
Specifies that the launcher should build and manage the Brooklyn application described by the given spec. |
BrooklynLauncher
|
application(java.lang.String yaml)
Specifies that the launcher should build and manage the Brooklyn application described by the given YAML blueprint. |
BrooklynLauncher
|
bindAddress(java.net.InetAddress bindAddress)
Specifies the NIC where the web console (and any additional webapps specified) will be bound; default 0.0.0.0, unless no security is specified (e.g. users) in which case it is localhost. |
BrooklynLauncher
|
brooklynProperties(BrooklynProperties brooklynProperties)
Specifies the brooklyn properties to be used. |
BrooklynLauncher
|
brooklynProperties(java.lang.String field, java.lang.Object value)
Specifies an attribute passed to deployed webapps (in addition to BrooklynServiceAttributes#BROOKLYN_MANAGEMENT_CONTEXT#BROOKLYN_MANAGEMENT_CONTEXT |
BrooklynLauncher
|
brooklynProperties(ConfigKey key, java.lang.Object value)
|
protected void
|
checkPersistenceDirAccessible(java.io.File persistenceDir)
|
protected void
|
checkPersistenceDirNonEmpty(java.io.File persistenceDir)
|
protected void
|
createApps()
|
protected Application
|
getAppFromYaml(java.lang.String input)
|
java.util.List
|
getApplications()
|
BrooklynServerDetails
|
getServerDetails()
|
BrooklynLauncher
|
globalBrooklynPropertiesFile(java.lang.String file)
|
protected void
|
initPersistence()
|
BrooklynLauncher
|
installSecurityFilter(java.lang.Boolean val)
|
BrooklynLauncher
|
localBrooklynPropertiesFile(java.lang.String file)
|
BrooklynLauncher
|
location(Location location)
Adds a location to be passed in on start(), when that calls
|
BrooklynLauncher
|
location(java.lang.String spec)
Give the spec of an application, to be created. |
BrooklynLauncher
|
locations(java.util.List specs)
|
BrooklynLauncher
|
managementContext(ManagementContext context)
Specifies the management context this launcher should use. |
static BrooklynLauncher
|
newInstance()
Creates a configurable (fluent API) launcher for use starting the web console and Brooklyn applications. |
BrooklynLauncher
|
persistMode(PersistMode persistMode)
|
BrooklynLauncher
|
persistPeriod(Duration persistPeriod)
|
BrooklynLauncher
|
persistenceDir(java.lang.String persistenceDir)
|
BrooklynLauncher
|
persistenceDir(java.io.File persistenceDir)
|
BrooklynLauncher
|
shutdownOnExit(boolean val)
|
BrooklynLauncher
|
start()
Starts the web server (with web console) and Brooklyn applications, as per the specifications configured. |
protected void
|
startApps()
|
protected void
|
startWebApps()
|
void
|
terminate()
Terminates this launch, but does not stop the applications (i.e. external processes are left running, etc). |
BrooklynLauncher
|
webServerFlags(java.util.Map webServerFlags)
Specifies additional flags to be passed to BrooklynWebServer. |
BrooklynLauncher
|
webapp(java.lang.String contextPath, java.lang.String warUrl)
Specifies an additional webapp to host on the webconsole port. |
BrooklynLauncher
|
webconsole(boolean startWebApps)
Specifies whether the launcher will start the Brooklyn web console (and any additional webapps specified); default true. |
BrooklynLauncher
|
webconsolePort(int port)
Specifies the port where the web console (and any additional webapps specified) will listen; default "8081+" being the first available >= 8081. |
BrooklynLauncher
|
webconsolePort(java.lang.String port)
Specifies the port where the web console (and any additional webapps specified) will listen; default "8081+" being the first available >= 8081. |
BrooklynLauncher
|
webconsolePort(PortRange port)
Specifies the port where the web console (and any additional webapps specified) will listen; default "8081+" being the first available >= 8081. |
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() |
Method Detail |
---|
public BrooklynLauncher application(Application app)
public BrooklynLauncher application(ApplicationBuilder appBuilder)
public BrooklynLauncher application(EntitySpec appSpec)
public BrooklynLauncher application(java.lang.String yaml)
public BrooklynLauncher bindAddress(java.net.InetAddress bindAddress)
public BrooklynLauncher brooklynProperties(BrooklynProperties brooklynProperties)
public BrooklynLauncher brooklynProperties(java.lang.String field, java.lang.Object value)
public BrooklynLauncher brooklynProperties(ConfigKey key, java.lang.Object value)
protected void checkPersistenceDirAccessible(java.io.File persistenceDir)
protected void checkPersistenceDirNonEmpty(java.io.File persistenceDir)
protected void createApps()
protected Application getAppFromYaml(java.lang.String input)
public java.util.List getApplications()
public BrooklynServerDetails getServerDetails()
public BrooklynLauncher globalBrooklynPropertiesFile(java.lang.String file)
protected void initPersistence()
public BrooklynLauncher installSecurityFilter(java.lang.Boolean val)
public BrooklynLauncher localBrooklynPropertiesFile(java.lang.String file)
public BrooklynLauncher location(Location location)
application.start(locations)
.
public BrooklynLauncher location(java.lang.String spec)
public BrooklynLauncher locations(java.util.List specs)
public BrooklynLauncher managementContext(ManagementContext context)
public static BrooklynLauncher newInstance()
public BrooklynLauncher persistMode(PersistMode persistMode)
public BrooklynLauncher persistPeriod(Duration persistPeriod)
public BrooklynLauncher persistenceDir(java.lang.String persistenceDir)
public BrooklynLauncher persistenceDir(java.io.File persistenceDir)
public BrooklynLauncher shutdownOnExit(boolean val)
public BrooklynLauncher start()
protected void startApps()
protected void startWebApps()
public void terminate()
public BrooklynLauncher webServerFlags(java.util.Map webServerFlags)
public BrooklynLauncher webapp(java.lang.String contextPath, java.lang.String warUrl)
contextPath
- The context path (e.g. "/hello", or equivalently just "hello") where the webapp will be hosted.
"/" will override the brooklyn console webapp.warUrl
- The URL from which the WAR should be loaded, supporting classpath:// protocol in addition to file:// and http(s)://.
public BrooklynLauncher webconsole(boolean startWebApps)
public BrooklynLauncher webconsolePort(int port)
public BrooklynLauncher webconsolePort(java.lang.String port)
public BrooklynLauncher webconsolePort(PortRange port)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.