Brooklyn

brooklyn.cli
[Java] Class Main.LaunchCommand

java.lang.Object
  BrooklynCommand
      brooklyn.cli.Main.LaunchCommand

@Command(name = "launch", description = "Starts a brooklyn application. " +
            "Note that a BROOKLYN_CLASSPATH environment variable needs to be set up beforehand " +
            "to point to the user application classpath.")
public static class Main.LaunchCommand
extends BrooklynCommand

Field Summary
java.lang.String app

java.lang.String locations

boolean noConsole

boolean noShutdownOnExit

java.lang.String port

java.lang.String script

boolean stopOnKeyPress

Note that this is a temporrary workaround to allow for runnig the brooklyn-whirr example.

 
Method Summary
java.lang.Void call()

ToStringHelper string()

 

Field Detail

app

@Option(name = { "-a", "--app" }, required = true, title = "application class or file",
                description = "The Application to start. " +
                        "For example my.AppName or file://my/AppName.groovy or classpath://my/AppName.groovy")
public java.lang.String app


locations

@Option(name = { "-l", "--location", "--locations" }, title = "location list",
                description = "Specifies the locations where the application will be launched. " +
                        "You can specify more than one location like this: \"loc1,loc2,loc3\"")
public java.lang.String locations


noConsole

@Option(name = { "-nc", "--noConsole" },
                description = "Whether to start the web console")
public boolean noConsole


noShutdownOnExit

@Option(name = { "-ns", "--noShutdownOnExit" },
                description = "Whether to stop the application when the JVM exits")
public boolean noShutdownOnExit


port

@Option(name = { "-p", "--port" }, title = "port number",
                description = "Specifies the port to be used by the Brooklyn Management Console.")
public java.lang.String port


script

@Beta
@Option(name = { "-s", "--script" }, title = "script URI",
                description = "EXPERIMENTAL. URI for a Groovy script to parse and load." +
                        " This script will run before starting the app.")
public java.lang.String script


stopOnKeyPress

@Beta
@Option(name = { "-sk", "--stopOnKeyPress" },
                description = "After the application gets started, brooklyn will wait for a key press to stop it.")
public boolean stopOnKeyPress
Note that this is a temporrary workaround to allow for runnig the brooklyn-whirr example. This will be replaced by more powerful CLI control for running processes, to send shutdown and other commands to brooklyn. Without using this flag you get a java.util.concurrent.RejectedExecutionException because the brooklyn and whirr shutdown hooks get executed in parallel. This is how it looks like: {
linktourl:
https://gist.github.com/47066f72d6f6f79b953e}


 
Method Detail

call

@Override
public java.lang.Void call()


string

@Override
public ToStringHelper string()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.