public SimpleDistributableSessionManagerConfiguration(JBossWebMetaData metaData, String serverName, String deploymentName, Module module) { this(metaData.getMaxActiveSessions(), metaData.getReplicationConfig(), serverName, deploymentName, module); }
private static CapabilityServiceConfigurator getSessionManagerFactoryServiceConfigurator(ServiceName deploymentServiceName, String serverName, String deploymentName, Module module, JBossWebMetaData metaData, ServletContainerService servletContainerService) { Integer maxActiveSessions = metaData.getMaxActiveSessions(); if(maxActiveSessions == null && servletContainerService != null) { maxActiveSessions = servletContainerService.getMaxSessions(); } ServiceName name = deploymentServiceName.append("session"); if (metaData.getDistributable() != null) { if (DistributableSessionManagerFactoryServiceConfiguratorProvider.INSTANCE.isPresent()) { DistributableSessionManagerConfiguration config = new SimpleDistributableSessionManagerConfiguration(maxActiveSessions, metaData.getReplicationConfig(), serverName, deploymentName, module); return DistributableSessionManagerFactoryServiceConfiguratorProvider.INSTANCE.get().getServiceConfigurator(name, config); } // Fallback to local session manager if server does not support clustering UndertowLogger.ROOT_LOGGER.clusteringNotSupported(); } return new SimpleCapabilityServiceConfigurator<>(name, (maxActiveSessions != null) ? new InMemorySessionManagerFactory(maxActiveSessions) : new InMemorySessionManagerFactory()); }
public SimpleDistributableSessionManagerConfiguration(JBossWebMetaData metaData, String serverName, String deploymentName, Module module) { this(metaData.getMaxActiveSessions(), metaData.getReplicationConfig(), serverName, deploymentName, module); }
public SimpleDistributableSessionManagerConfiguration(JBossWebMetaData metaData, String serverName, String deploymentName, Module module) { this(metaData.getMaxActiveSessions(), metaData.getReplicationConfig(), serverName, deploymentName, module); }
if (webMetaData.getMaxActiveSessions() != null) maxActiveAllowed_ = webMetaData.getMaxActiveSessions().intValue();
private static CapabilityServiceConfigurator getSessionManagerFactoryServiceConfigurator(ServiceName deploymentServiceName, String serverName, String deploymentName, Module module, JBossWebMetaData metaData, ServletContainerService servletContainerService) { Integer maxActiveSessions = metaData.getMaxActiveSessions(); if(maxActiveSessions == null && servletContainerService != null) { maxActiveSessions = servletContainerService.getMaxSessions(); } ServiceName name = deploymentServiceName.append("session"); if (metaData.getDistributable() != null) { if (DistributableSessionManagerFactoryServiceConfiguratorProvider.INSTANCE.isPresent()) { DistributableSessionManagerConfiguration config = new SimpleDistributableSessionManagerConfiguration(maxActiveSessions, metaData.getReplicationConfig(), serverName, deploymentName, module); return DistributableSessionManagerFactoryServiceConfiguratorProvider.INSTANCE.get().getServiceConfigurator(name, config); } // Fallback to local session manager if server does not support clustering UndertowLogger.ROOT_LOGGER.clusteringNotSupported(); } return new SimpleCapabilityServiceConfigurator<>(name, (maxActiveSessions != null) ? new InMemorySessionManagerFactory(maxActiveSessions) : new InMemorySessionManagerFactory()); }
private static CapabilityServiceConfigurator getSessionManagerFactoryServiceConfigurator(ServiceName deploymentServiceName, String serverName, String deploymentName, Module module, JBossWebMetaData metaData, ServletContainerService servletContainerService) { Integer maxActiveSessions = metaData.getMaxActiveSessions(); if(maxActiveSessions == null && servletContainerService != null) { maxActiveSessions = servletContainerService.getMaxSessions(); } ServiceName name = deploymentServiceName.append("session"); if (metaData.getDistributable() != null) { if (DistributableSessionManagerFactoryServiceConfiguratorProvider.INSTANCE.isPresent()) { DistributableSessionManagerConfiguration config = new SimpleDistributableSessionManagerConfiguration(maxActiveSessions, metaData.getReplicationConfig(), serverName, deploymentName, module); return DistributableSessionManagerFactoryServiceConfiguratorProvider.INSTANCE.get().getServiceConfigurator(name, config); } // Fallback to local session manager if server does not support clustering UndertowLogger.ROOT_LOGGER.clusteringNotSupported(); } return new SimpleCapabilityServiceConfigurator<>(name, (maxActiveSessions != null) ? new InMemorySessionManagerFactory(maxActiveSessions) : new InMemorySessionManagerFactory()); }
setArbitraryMetadata(override.getArbitraryMetadata()); if(override != null && override.getMaxActiveSessions() != null) setMaxActiveSessions(override.getMaxActiveSessions());
dest.setWebserviceDescriptions(override.getWebserviceDescriptions()); if (override != null && override.getMaxActiveSessions() != null) dest.setMaxActiveSessions(override.getMaxActiveSessions());