SGF-322 - Add support for the newly added, retro 'max-connections' attribute on the <gfe:gateway-hub> element in the SDG XML namespace (XSD).
This commit is contained in:
@@ -48,22 +48,6 @@ class GatewayHubParser extends AbstractSimpleBeanDefinitionParser {
|
||||
return GatewayHubFactoryBean.class;
|
||||
}
|
||||
|
||||
/*
|
||||
<xsd:attribute name="max-connections" type="xsd:string" use="optional">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Sets the maximum number of Gateway connections allowed.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="max-time-between-pings" type="xsd:string" use="optional">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Sets the maximum amount of time between client pings.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
|
||||
@@ -72,7 +56,7 @@ Sets the maximum amount of time between client pings.
|
||||
|
||||
ParsingUtils.setPropertyValue(element, builder, "bind-address");
|
||||
ParsingUtils.setPropertyValue(element, builder, "manual-start");
|
||||
//ParsingUtils.setPropertyValue(element, builder, "max-connections");
|
||||
ParsingUtils.setPropertyValue(element, builder, "max-connections");
|
||||
ParsingUtils.setPropertyValue(element, builder, "max-time-between-pings", "maximumTimeBetweenPings");
|
||||
ParsingUtils.setPropertyValue(element, builder, "port");
|
||||
ParsingUtils.setPropertyValue(element, builder, "socket-buffer-size");
|
||||
|
||||
@@ -48,7 +48,7 @@ public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean<Gatew
|
||||
|
||||
private GatewayHub gatewayHub;
|
||||
|
||||
//private Integer maxConnections;
|
||||
private Integer maxConnections;
|
||||
private Integer maximumTimeBetweenPings;
|
||||
private Integer port;
|
||||
private Integer socketBufferSize;
|
||||
@@ -92,7 +92,7 @@ public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean<Gatew
|
||||
|
||||
gatewayHub.setBindAddress(getBindAddress());
|
||||
gatewayHub.setManualStart(isManualStart(GatewayHub.DEFAULT_MANUAL_START));
|
||||
//gatewayHub.setMaxConnections(getMaxConnections());
|
||||
gatewayHub.setMaxConnections(getMaxConnections());
|
||||
gatewayHub.setMaximumTimeBetweenPings(getMaximumTimeBetweenPings());
|
||||
gatewayHub.setSocketBufferSize(getSocketBufferSize());
|
||||
gatewayHub.setStartupPolicy(getStartupPolicy().getName());
|
||||
@@ -173,7 +173,6 @@ public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean<Gatew
|
||||
return (manualStart != null ? manualStart : defaultManualStart);
|
||||
}
|
||||
|
||||
/*
|
||||
public void setMaxConnections(Integer maxConnections) {
|
||||
this.maxConnections = maxConnections;
|
||||
}
|
||||
@@ -182,7 +181,6 @@ public class GatewayHubFactoryBean extends AbstractWANComponentFactoryBean<Gatew
|
||||
Integer getMaxConnections() {
|
||||
return (maxConnections != null ? maxConnections : GatewayHub.DEFAULT_MAX_CONNECTIONS);
|
||||
}
|
||||
*/
|
||||
|
||||
public void setMaximumTimeBetweenPings(Integer maximumTimeBetweenPings) {
|
||||
this.maximumTimeBetweenPings = maximumTimeBetweenPings;
|
||||
|
||||
Reference in New Issue
Block a user