public LogstashFraction hostname(String hostname) { this.handlerProperties.put("hostname", SwarmProperties.propertyVar(LogstashProperties.HOSTNAME, hostname)); return this; }
public LogstashFraction port(String port) { this.handlerProperties.put("port", SwarmProperties.propertyVar(LogstashProperties.PORT, port)); return this; }
public LogstashFraction() { this("metaData", "wildflySwarmNode=${jboss.node.name}"); hostname(SwarmProperties.propertyVar("logstash.host")); }
private void applyInterfaceDefaults(Container config) { if (config.ifaces().isEmpty()) { config.iface("public", SwarmProperties.propertyVar(SwarmProperties.BIND_ADDRESS, "0.0.0.0")); } }
protected void getNestList(HawkularServerFraction fraction, List<ModelNode> list) { ModelNode node = new ModelNode(); node.get(OP_ADDR).set(EXTENSION, "org.hawkular.nest"); node.get(OP).set(ADD); list.add(node); PathAddress address = PathAddress.pathAddress(PathElement.pathElement(SUBSYSTEM, "hawkular-nest")); node = new ModelNode(); node.get(OP_ADDR).set(address.toModelNode()); node.get(OP).set(ADD); node.get("nest-name").set("autogenerate"); node.get("enabled").set(true); list.add(node); list.add(property("hawkular.metrics.waitForService", SwarmProperties.propertyVar("hawkular.metrics.waitForService", "True"))); list.add(property("hawkular.backend", SwarmProperties.propertyVar("hawkular.backend", "embedded_cassandra"))); list.add(property("keycloak.server.url", SwarmProperties.propertyVar("keycloak.server.url", "http://localhost:8080/auth"))); }
@Override public void initialize(Container.InitContext initContext) { initContext.socketBinding( new SocketBinding("http") .port(SwarmProperties.propertyVar(UndertowProperties.HTTP_PORT, "8080"))); initContext.socketBinding( new SocketBinding("https") .port(SwarmProperties.propertyVar(UndertowProperties.HTTPS_PORT, "8443"))); }
@Override public void initialize(Container.InitContext initContext) { initContext.socketBinding( new SocketBinding("management-http") .port(SwarmProperties.propertyVar(ManagementProperties.HTTP_PORT, "9990"))); initContext.socketBinding( new SocketBinding("management-https") .port(SwarmProperties.propertyVar(ManagementProperties.HTTPS_PORT, "9993"))); }
private void applySocketBindingGroupDefaults(Container config) { if (config.socketBindingGroups().isEmpty()) { config.socketBindingGroup( new SocketBindingGroup("default-sockets", "public", SwarmProperties.propertyVar(SwarmProperties.PORT_OFFSET, "0")) ); } Set<String> groupNames = config.socketBindings().keySet(); for (String each : groupNames) { List<SocketBinding> bindings = config.socketBindings().get(each); SocketBindingGroup group = config.getSocketBindingGroup(each); if (group == null) { throw new RuntimeException("No socket-binding-group for '" + each + "'"); } for (SocketBinding binding : bindings) { group.socketBinding(binding); } } groupNames = config.outboundSocketBindings().keySet(); for (String each : groupNames) { List<OutboundSocketBinding> bindings = config.outboundSocketBindings().get(each); SocketBindingGroup group = config.getSocketBindingGroup(each); if (group == null) { throw new RuntimeException("No socket-binding-group for '" + each + "'"); } for (OutboundSocketBinding binding : bindings) { group.outboundSocketBinding(binding); } } }
@Override public void initialize(Container.InitContext initContext) { initContext.socketBinding( new SocketBinding("jgroups-udp") .port(55200) .multicastAddress(SwarmProperties.propertyVar(JGroupsProperties.DEFAULT_MULTICAST_ADDRESS, "230.0.0.4")) .multicastPort(45688)); initContext.socketBinding( new SocketBinding("jgroups-udp-fd") .port(54200)); initContext.socketBinding( new SocketBinding("jgroups-mping") .port(0) .multicastAddress(SwarmProperties.propertyVar(JGroupsProperties.DEFAULT_MULTICAST_ADDRESS, "230.0.0.4")) .multicastPort(45700)); initContext.socketBinding( new SocketBinding("jgroups-tcp") .port(7600)); initContext.socketBinding( new SocketBinding("jgroups-tcp-fd") .port(57600)); } }
.defaultMissingMethodPermissionsDenyAccess(true) .logSystemExceptions(true) .defaultResourceAdapterName(SwarmProperties.propertyVar("$ejb.resource-adapter-name", "activemq-ra.rar")) .strictMaxBeanInstancePool(new StrictMaxBeanInstancePool("slsb-strict-max-pool") .maxPoolSize(20)