brooklyn.entity.basic.Entities.getRequiredUrlConfig()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(101)

本文整理了Java中brooklyn.entity.basic.Entities.getRequiredUrlConfig()方法的一些代码示例,展示了Entities.getRequiredUrlConfig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entities.getRequiredUrlConfig()方法的具体详情如下:
包路径:brooklyn.entity.basic.Entities
类名称:Entities
方法名:getRequiredUrlConfig

Entities.getRequiredUrlConfig介绍

[英]as #getRequiredUrlConfig(Entity,ConfigKey)
[中]as#getRequiredUrlConfig(实体,ConfigKey)

代码示例

代码示例来源:origin: io.brooklyn/brooklyn-software-messaging

@Override
public void init() {
  super.init();
  Entities.getRequiredUrlConfig(this, TEMPLATE_CONFIGURATION_URL);
}

代码示例来源:origin: io.brooklyn/brooklyn-core

/** as {@link #getRequiredUrlConfig(Entity, ConfigKey)} */
public static String getRequiredUrlConfig(Entity entity, HasConfigKey<String> urlKey) {
  return getRequiredUrlConfig(entity, urlKey.getConfigKey());
}

代码示例来源:origin: io.brooklyn.clocker/brooklyn-clocker-examples

@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)));
  }
}

代码示例来源:origin: io.brooklyn.clocker/brooklyn-clocker-examples

@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+")));
}

代码示例来源:origin: io.brooklyn.clocker/brooklyn-clocker-examples

.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",

相关文章