示例#1
0
 public Map<String, String> getShellEnvironment() {
   Map<String, String> orig = super.getShellEnvironment();
   return MutableMap.<String, String>builder()
       .putAll(orig)
       .put("QPID_HOME", getRunDir())
       .put("QPID_WORK", getRunDir())
       .put("QPID_OPTS", (orig.containsKey("JAVA_OPTS") ? orig.get("JAVA_OPTS") : ""))
       .build();
 }
示例#2
0
 public Map<String, Object> getCustomJavaSystemProperties() {
   Map<String, Object> props =
       MutableMap.<String, Object>builder()
           .put("connector.port", getAmqpPort())
           .put("management.enabled", "true")
           .put("management.jmxport.registryServer", getJmxPort())
           .put("management.jmxport.connectorServer", getRmiServerPort())
           .put("management.http.enabled", getHttpManagementPort() != null ? "true" : "false")
           .build();
   if (getHttpManagementPort() != null) {
     props.put("management.http.port", getHttpManagementPort());
   }
   return props;
 }