@Produces @Named(Interface.MANAGEMENT) public Interface publicInterace() { return new Interface("management", SwarmProperties.propertyVar(ManagementProperties.MANAGEMENT_BIND_ADDRESS, "127.0.0.1")); } }
@Produces @Named(Interface.MANAGEMENT) public Interface publicInterace() { return new Interface("management", SwarmProperties.propertyVar(ManagementProperties.MANAGEMENT_BIND_ADDRESS, "127.0.0.1")); } }
private void applyInterfaceDefaults(Container config) { if (config.ifaces().isEmpty()) { config.iface("public", SwarmProperties.propertyVar(SwarmProperties.BIND_ADDRESS, "0.0.0.0")); } }
@Override public void initialize(Fraction.InitContext initContext) { initContext.socketBinding( new SocketBinding("http") .port(SwarmProperties.propertyVar(SwarmProperties.HTTP_PORT, "8080"))); initContext.socketBinding( new SocketBinding("https") .port(SwarmProperties.propertyVar(SwarmProperties.HTTPS_PORT, "8443"))); }
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); } } }
remote.threadPoolName("default"); remote.channelCreationOptions("READ_TIMEOUT", opt -> { opt.value(SwarmProperties.propertyVar("prop.remoting-connector.read.timeout", "20")); opt.type(ChannelCreationOptions.Type.XNIO); });
initContext.socketBinding( new SocketBinding("ajp") .port(SwarmProperties.propertyVar(SwarmProperties.AJP_PORT, "8009")));
.defaultMissingMethodPermissionsDenyAccess(true) .logSystemExceptions(true) .defaultResourceAdapterName(SwarmProperties.propertyVar("ejb.resource-adapter-name", "activemq-ra.rar")) .strictMaxBeanInstancePool(new StrictMaxBeanInstancePool("slsb-strict-max-pool") .deriveSize(StrictMaxBeanInstancePool.DeriveSize.FROM_WORKER_POOLS)