@Override public void init() { super.init(); Entities.getRequiredUrlConfig(this, TEMPLATE_CONFIGURATION_URL); }
/** as {@link #getRequiredUrlConfig(Entity, ConfigKey)} */ public static String getRequiredUrlConfig(Entity entity, HasConfigKey<String> urlKey) { return getRequiredUrlConfig(entity, urlKey.getConfigKey()); }
@Override public void initApp() { addChild(EntitySpec.create(JBoss7Server.class) .displayName("JBoss Server") .configure(WebAppService.HTTP_PORT, PortRanges.fromString("8080+")) .configure(JavaWebAppService.ROOT_WAR, Entities.getRequiredUrlConfig(this, WAR_PATH))); } }
@Override public void initApp() { addChild(EntitySpec.create(TomcatServer.class) .displayName("Tomcat Server") .configure(WebAppService.HTTP_PORT, PortRanges.fromString("8080+")) .configure(JavaWebAppService.ROOT_WAR, Entities.getRequiredUrlConfig(this, WAR_PATH)) .configure(SoftwareProcess.SUGGESTED_VERSION, "7.0.53") .configure(UsesJmx.USE_JMX, Boolean.TRUE) .configure(UsesJmx.JMX_AGENT_MODE, JmxAgentModes.JMXMP) .configure(UsesJmx.JMX_PORT, PortRanges.fromString("30000+"))); }
.configure("creationScriptUrl", Entities.getRequiredUrlConfig(this, DB_SETUP_SQL_URL))); .configure(UsesJmx.JMX_AGENT_MODE, JmxAgentModes.JMXMP) .configure(UsesJmx.JMX_PORT, PortRanges.fromString("30000+")) .configure(JavaWebAppService.ROOT_WAR, Entities.getRequiredUrlConfig(this, WAR_PATH)) .configure(javaSysProp("brooklyn.example.db.url"), formatString("jdbc:%s%s?user=%s&password=%s",