public class BrooklynLauncher extends BasicLauncher<BrooklynLauncher>
{@code 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 |
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 |
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 |
webconsole(boolean startWebApps)
Specifies whether the launcher will start the Brooklyn web console
(and any additional webapps specified); default true.
|
BrooklynLauncher |
webconsoleHttps(java.lang.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(java.lang.String port)
As
webconsolePort(PortRange) taking a string range |
BrooklynLauncher |
webServerFlags(java.util.Map<java.lang.String,?> webServerFlags)
Specifies additional flags to be passed to
BrooklynWebServer . |
application, application, application, application, brooklynProperties, brooklynProperties, brooklynProperties, catalogInitialization, copyPersistedState, copyPersistedState, copyPersistedState, getApplications, getBrooklynProperties, 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 webconsole(boolean startWebApps)
public BrooklynLauncher installSecurityFilter(java.lang.Boolean val)
public BrooklynLauncher webconsolePort(int port)
webconsolePort(PortRange)
taking a single portpublic BrooklynLauncher webconsolePort(java.lang.String port)
webconsolePort(PortRange)
taking a string rangepublic BrooklynLauncher webconsolePort(PortRange port)
public BrooklynLauncher webconsoleHttps(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(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)