public class BrooklynLauncher extends BasicLauncher<BrooklynLauncher>
BrooklynLauncher launcher = BrooklynLauncher.newInstance()
.application(new WebClusterDatabaseExample().appDisplayName("Web-cluster example"))
.location("localhost")
.start();
Entities.dumpInfo(launcher.getApplications());
Constructor and Description |
---|
BrooklynLauncher() |
Modifier and Type | Method and Description |
---|---|
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.
|
BrooklynLauncher |
brooklynPropertiesSupplier(<any> brooklynPropertiesSupplier)
Poperties returned by the supplier have less precedence (get overwritten) by global & local properties
|
BrooklynLauncher |
customizeManagement(<any> customizeManagement) |
BrooklynServerDetails |
getServerDetails() |
BrooklynLauncher |
globalBrooklynPropertiesFile(java.lang.String file) |
BrooklynLauncher |
ignoreWebErrors(boolean ignoreWebErrors) |
BrooklynLauncher |
installSecurityFilter(java.lang.Boolean val) |
BrooklynLauncher |
localBrooklynPropertiesFile(java.lang.String file) |
static BrooklynLauncher |
newInstance()
Creates a configurable (fluent API) launcher for use starting the web console and Brooklyn applications.
|
BrooklynLauncher |
publicAddress(java.net.InetAddress publicAddress)
Specifies the address that the management context's REST API will be available on.
|
BrooklynLauncher |
restServer(boolean startWebApps)
Specifies whether the launcher will start the Brooklyn web console
(and any additional webapps specified); default true.
|
BrooklynLauncher |
restServerHttps(java.lang.Boolean useHttps)
Specifies whether the webconsole should use https.
|
BrooklynLauncher |
restServerPort(int port)
As
restServerPort(PortRange) taking a single port |
BrooklynLauncher |
restServerPort(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 |
restServerPort(java.lang.String port)
As
restServerPort(PortRange) taking a string range |
BrooklynLauncher |
shutdownHandler(ShutdownHandler shutdownHandler)
A listener to call when the user requests a shutdown (i.e.
|
BrooklynLauncher |
shutdownOnExit(boolean val) |
BrooklynLauncher |
stopWhichAppsOnShutdown(StopWhichAppsOnShutdown stopWhich) |
void |
terminate()
Terminates this launch, but does not stop the applications (i.e.
|
BrooklynLauncher |
webapp(java.lang.String contextPath,
java.lang.String warUrl)
Specifies an additional webapp to host on the webconsole port.
|
BrooklynLauncher |
webapp(WebAppContextProvider contextProvider) |
BrooklynLauncher |
webServerFlags(java.util.Map<java.lang.String,?> webServerFlags)
Specifies additional flags to be passed to
BrooklynWebServer . |
application, application, brooklynProperties, brooklynProperties, brooklynProperties, catalogInitialization, cleanOrphanedState, copyPersistedState, copyPersistedState, copyPersistedState, getApplications, getBrooklynProperties, getBrooklynPropertiesBuilder, getCampPlatform, getLocations, getManagementContext, getPersistMode, haHeartbeatPeriod, haHeartbeatTimeout, highAvailabilityMode, ignoreAppErrors, ignoreCatalogErrors, ignorePersistenceErrors, isStarted, location, location, locations, managementContext, persistenceDir, persistenceDir, persistenceLocation, persistMode, persistPeriod, persistState, retrieveState, setBrooklynPropertiesBuilder, start, startBrooklynNode
public static BrooklynLauncher newInstance()
public BrooklynServerDetails getServerDetails()
public BrooklynLauncher restServer(boolean startWebApps)
public BrooklynLauncher installSecurityFilter(java.lang.Boolean val)
public BrooklynLauncher restServerPort(int port)
restServerPort(PortRange)
taking a single portpublic BrooklynLauncher restServerPort(java.lang.String port)
restServerPort(PortRange)
taking a string rangepublic BrooklynLauncher restServerPort(PortRange port)
public BrooklynLauncher restServerHttps(java.lang.Boolean useHttps)
public BrooklynLauncher bindAddress(java.net.InetAddress bindAddress)
public BrooklynLauncher publicAddress(java.net.InetAddress publicAddress)
bindAddress
if it is not 0.0.0.0.bindAddress(java.net.InetAddress)
public BrooklynLauncher webServerFlags(java.util.Map<java.lang.String,?> webServerFlags)
BrooklynWebServer
.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 webapp(WebAppContextProvider contextProvider)
webapp(String, String)
public BrooklynLauncher ignoreWebErrors(boolean ignoreWebErrors)
public BrooklynLauncher stopWhichAppsOnShutdown(StopWhichAppsOnShutdown stopWhich)
public BrooklynLauncher customizeManagement(<any> customizeManagement)
public BrooklynLauncher shutdownOnExit(boolean val)
public BrooklynLauncher shutdownHandler(ShutdownHandler shutdownHandler)
public void terminate()
public BrooklynLauncher globalBrooklynPropertiesFile(java.lang.String file)
public BrooklynLauncher localBrooklynPropertiesFile(java.lang.String file)
public BrooklynLauncher brooklynPropertiesSupplier(<any> brooklynPropertiesSupplier)