public class BrooklynLauncher extends BasicLauncher<BrooklynLauncher>
BrooklynLauncher launcher = BrooklynLauncher.newInstance()
.application(new WebClusterDatabaseExample().appDisplayName("Web-cluster example"))
.location("localhost")
.start();
Entities.dumpInfo(launcher.getApplications());
started, startedPartTwo| Constructor and Description |
|---|
BrooklynLauncher() |
| Modifier and Type | Method and Description |
|---|---|
BrooklynLauncher |
bindAddress(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.
|
BrooklynLauncher |
brooklynPropertiesSupplier(com.google.common.base.Supplier<Map<?,?>> brooklynPropertiesSupplier)
Poperties returned by the supplier have less precedence (get overwritten) by global & local properties
|
protected EntitySpec<LocalBrooklynNode> |
customizeBrooklynNodeSpec(EntitySpec<LocalBrooklynNode> brooklynNodeSpec) |
BrooklynLauncher |
customizeManagement(com.google.common.base.Function<ManagementContext,Void> customizeManagement) |
BrooklynServerDetails |
getServerDetails() |
BrooklynLauncher |
globalBrooklynPropertiesFile(String file) |
BrooklynLauncher |
ignoreWebErrors(boolean ignoreWebErrors) |
protected void |
initBrooklynPropertiesBuilder() |
protected void |
initManagementContext() |
BrooklynLauncher |
installSecurityFilter(Boolean val) |
BrooklynLauncher |
localBrooklynPropertiesFile(String file) |
static BrooklynLauncher |
newInstance()
Creates a configurable (fluent API) launcher for use starting the web console and Brooklyn applications.
|
BrooklynLauncher |
publicAddress(InetAddress publicAddress)
Specifies the address that the management context's REST API will be available on.
|
BrooklynLauncher |
shutdownHandler(ShutdownHandler shutdownHandler)
A listener to call when the user requests a shutdown (i.e.
|
BrooklynLauncher |
shutdownOnExit(boolean val) |
protected void |
startApps() |
protected void |
startBrooklynNode() |
protected void |
startingUp() |
protected void |
startWebApps() |
BrooklynLauncher |
stopWhichAppsOnShutdown(StopWhichAppsOnShutdown stopWhich) |
void |
terminate()
Terminates this launch, but does not stop the applications (i.e.
|
BrooklynLauncher |
webapp(String contextPath,
String warUrl)
Specifies an additional webapp to host on the webconsole port.
|
BrooklynLauncher |
webapp(WebAppContextProvider contextProvider) |
BrooklynLauncher |
webconsole(boolean startWebApps)
Specifies whether the launcher will start the Brooklyn web console
(and any additional webapps specified); default true.
|
BrooklynLauncher |
webconsoleHttps(Boolean useHttps)
Specifies whether the webconsole should use https.
|
BrooklynLauncher |
webconsolePort(int port)
As
webconsolePort(PortRange) taking a single port |
BrooklynLauncher |
webconsolePort(PortRange port)
Specifies the port where the web console (and any additional webapps specified) will listen;
default (null) means "8081+" being the first available >= 8081 (or "8443+" for https).
|
BrooklynLauncher |
webconsolePort(String port)
As
webconsolePort(PortRange) taking a string range |
BrooklynLauncher |
webServerFlags(Map<String,?> webServerFlags)
Specifies additional flags to be passed to
BrooklynWebServer. |
addLocations, application, application, brooklynProperties, brooklynProperties, brooklynProperties, catalogInitialization, cleanOrphanedState, copyPersistedState, copyPersistedState, copyPersistedState, createApps, getApplications, getBrooklynProperties, getBrooklynPropertiesBuilder, getCampPlatform, getLocations, getManagementContext, getPersistMode, haHeartbeatPeriod, haHeartbeatTimeout, handlePersistence, handleSubsystemStartupError, highAvailabilityMode, ignoreAppErrors, ignoreCatalogErrors, ignorePersistenceErrors, initApps, initBrooklynNode, initCamp, initPersistence, isStarted, location, location, locations, managementContext, markCatalogStartingUp, markStartupComplete, persist, persistenceDir, persistenceDir, persistenceLocation, persistMode, persistPeriod, persistState, populateCatalog, retrieveState, setBrooklynPropertiesBuilder, start, startBrooklynNode, startPartOne, startPartTwo, startPersistencepublic static BrooklynLauncher newInstance()
public BrooklynServerDetails getServerDetails()
public BrooklynLauncher webconsole(boolean startWebApps)
public BrooklynLauncher installSecurityFilter(Boolean val)
public BrooklynLauncher webconsolePort(int port)
webconsolePort(PortRange) taking a single portpublic BrooklynLauncher webconsolePort(String port)
webconsolePort(PortRange) taking a string rangepublic BrooklynLauncher webconsolePort(PortRange port)
public BrooklynLauncher webconsoleHttps(Boolean useHttps)
public BrooklynLauncher bindAddress(InetAddress bindAddress)
public BrooklynLauncher publicAddress(InetAddress publicAddress)
bindAddress if it is not 0.0.0.0.bindAddress(java.net.InetAddress)public BrooklynLauncher webServerFlags(Map<String,?> webServerFlags)
BrooklynWebServer.public BrooklynLauncher webapp(String contextPath, 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 webapp(WebAppContextProvider contextProvider)
webapp(String, String)public BrooklynLauncher ignoreWebErrors(boolean ignoreWebErrors)
public BrooklynLauncher stopWhichAppsOnShutdown(StopWhichAppsOnShutdown stopWhich)
public BrooklynLauncher customizeManagement(com.google.common.base.Function<ManagementContext,Void> customizeManagement)
public BrooklynLauncher shutdownOnExit(boolean val)
public BrooklynLauncher shutdownHandler(ShutdownHandler shutdownHandler)
protected void initManagementContext()
initManagementContext in class BasicLauncher<BrooklynLauncher>protected void initBrooklynPropertiesBuilder()
protected void startingUp()
startingUp in class BasicLauncher<BrooklynLauncher>protected void startWebApps()
protected void startBrooklynNode()
startBrooklynNode in class BasicLauncher<BrooklynLauncher>protected EntitySpec<LocalBrooklynNode> customizeBrooklynNodeSpec(EntitySpec<LocalBrooklynNode> brooklynNodeSpec)
customizeBrooklynNodeSpec in class BasicLauncher<BrooklynLauncher>protected void startApps()
startApps in class BasicLauncher<BrooklynLauncher>public void terminate()
public BrooklynLauncher globalBrooklynPropertiesFile(String file)
public BrooklynLauncher localBrooklynPropertiesFile(String file)
public BrooklynLauncher brooklynPropertiesSupplier(com.google.common.base.Supplier<Map<?,?>> brooklynPropertiesSupplier)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.