Skip to content

Commit 0724a67

Browse files
committed
remove unused property
1 parent 747285b commit 0724a67

File tree

5 files changed

+6
-28
lines changed

5 files changed

+6
-28
lines changed

docs/sources-asciidoc/src/main/asciidoc/concept-section-SS_Load_Balancer.adoc

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ in common section
7676
in external section
7777
<ipv6UdpPort>5070<ipv6UdpPort>
7878

79-
Other tags you can see in example of lb-configuration.xml below.
79+
Other tags you can see in example of lb-configuration.xml below.
8080

8181
== HTTP Load Balancing Basics
8282

@@ -309,8 +309,7 @@ http://docs.google.com/present/view?id=dc5jp5vx_89cxdvtxcm-->
309309
<isSend5xxResponse>true</isSend5xxResponse>
310310
<isSend5xxResponseReasonHeader>Destination not available</isSend5xxResponseReasonHeader>
311311
<isSend5xxResponseSatusCode>503</isSend5xxResponseSatusCode>
312-
<responseStatusCodeNodeRemoval>503</responseStatusCodeNodeRemoval>
313-
<responseReasonNodeRemoval>Unable to setup media services</responseReasonNodeRemoval>
312+
<responsesStatusCodeNodeRemoval>503,504</responseStatusCodeNodeRemoval>
314313
<matchingHostnameForRoute>restcomm.com</matchingHostnameForRoute>
315314
<isFilterSubdomain>true</isFilterSubdomain>
316315
<algorithm>
@@ -536,9 +535,8 @@ isSend5xxResponseReasonHeader::
536535
isSend5xxResponseSatusCode::
537536
Code of error. You can manage it.
538537

539-
responseStatusCodeNodeRemoval::
540-
responseReasonNodeRemoval::
541-
if LB gets response from the node with this status code and reason more than three times,
538+
responsesStatusCodeNodeRemoval::
539+
if LB gets response from the node with this status code more than three times,
542540
it removes this node from the node's map until the node will be restarted
543541

544542
matchingHostnameForRoute::

jar/pom.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@
4747
<artifactId>commons-beanutils</artifactId>
4848
<scope>runtime</scope>
4949
</dependency>
50-
<dependency>
51-
<groupId>jgroups</groupId>
52-
<artifactId>jgroups</artifactId>
53-
<version>2.7.0.GA</version>
54-
</dependency>
55-
5650
<dependency>
5751
<groupId>junit</groupId>
5852
<artifactId>junit</artifactId>
@@ -173,8 +167,8 @@
173167
<dependency>
174168
<groupId>org.infinispan</groupId>
175169
<artifactId>infinispan-core</artifactId>
176-
<version>5.1.2.FINAL</version>
177-
</dependency>
170+
<version>5.3.0.Final</version>
171+
</dependency>
178172
</dependencies>
179173

180174
<build>

jar/src/main/java/org/mobicents/tools/configuration/SipConfiguration.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public class SipConfiguration {
2222
public static final String IS_SEND_5XX_RESPONSE_REASON_HEADER = null;
2323
public static final Integer IS_SEND_5XX_RESPONSE_STATUS_CODE = 503;
2424
public static final String RESPONSES_STATUS_CODE_NODE_REMOVAL = "503";
25-
public static final String RESPONSES_REASON_NODE_REMOVAL = null;
2625
public static final Boolean IS_USE_WITH_NEXMO = false;
2726
public static final String MATCHING_HOSTNAME_FOR_ROUTE = null;
2827
public static final Boolean IS_FILTER_SUBDOMAIN = false;
@@ -39,7 +38,6 @@ public class SipConfiguration {
3938
private String isSend5xxResponseReasonHeader;
4039
private Integer isSend5xxResponseSatusCode;
4140
private List<Integer> responsesStatusCodeNodeRemoval;
42-
private String responsesReasonNodeRemoval;
4341
private Boolean isUseWithNexmo;
4442
private String matchingHostnameForRoute;
4543
private Boolean isFilterSubdomain;
@@ -62,7 +60,6 @@ public SipConfiguration()
6260
this.isSend5xxResponseReasonHeader = IS_SEND_5XX_RESPONSE_REASON_HEADER;
6361
this.isSend5xxResponseSatusCode = IS_SEND_5XX_RESPONSE_STATUS_CODE;
6462
this.responsesStatusCodeNodeRemoval = new ArrayList<Integer>();
65-
this.responsesReasonNodeRemoval = RESPONSES_REASON_NODE_REMOVAL;
6663
this.isUseWithNexmo = IS_USE_WITH_NEXMO;
6764
this.matchingHostnameForRoute = MATCHING_HOSTNAME_FOR_ROUTE;
6865
this.isFilterSubdomain = IS_FILTER_SUBDOMAIN;
@@ -188,14 +185,6 @@ public void setResponseStatusCodeNodeRemoval(List<Integer> responsesStatusCodeNo
188185
this.responsesStatusCodeNodeRemoval = responsesStatusCodeNodeRemoval;
189186
}
190187

191-
public String getResponsesReasonNodeRemoval() {
192-
return responsesReasonNodeRemoval;
193-
}
194-
195-
public void setResponsesReasonNodeRemoval(String responsesReasonNodeRemoval) {
196-
this.responsesReasonNodeRemoval = responsesReasonNodeRemoval;
197-
}
198-
199188
public Boolean getIsUseWithNexmo() {
200189
return isUseWithNexmo;
201190
}

jar/src/main/java/org/mobicents/tools/configuration/XmlConfigurationLoader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ private static void configureSip(HierarchicalConfiguration<ImmutableNode> src, S
104104
}
105105
dst.setResponseStatusCodeNodeRemoval(responsesStatusCodeNodeRemovalList);
106106
}
107-
dst.setResponsesReasonNodeRemoval(src.getString("responsesReasonNodeRemoval", SipConfiguration.RESPONSES_REASON_NODE_REMOVAL));
108107
dst.setIsUseWithNexmo(src.getBoolean("isUseWithNexmo",SipConfiguration.IS_USE_WITH_NEXMO));
109108
dst.setMatchingHostnameForRoute(src.getString("matchingHostnameForRoute", SipConfiguration.MATCHING_HOSTNAME_FOR_ROUTE));
110109
dst.setIsFilterSubdomain(src.getBoolean("isFilterSubdomain", SipConfiguration.IS_FILTER_SUBDOMAIN));

jar/src/main/java/org/mobicents/tools/sip/balancer/SIPBalancerForwarder.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ public void start() {
160160
balancerRunner.balancerContext.sipHeaderAffinityKeyExclusionPattern = Pattern.compile(balancerRunner.balancerContext.lbConfig.getSipConfiguration().getAlgorithmConfiguration().getSipHeaderAffinityKeyExclusionPattern());
161161
}
162162
balancerRunner.balancerContext.isUseWithNexmo = balancerRunner.balancerContext.lbConfig.getSipConfiguration().getIsUseWithNexmo();
163-
balancerRunner.balancerContext.responsesReasonNodeRemoval = balancerRunner.balancerContext.lbConfig.getSipConfiguration().getResponsesReasonNodeRemoval();
164163
balancerRunner.balancerContext.responsesStatusCodeNodeRemoval = balancerRunner.balancerContext.lbConfig.getSipConfiguration().getResponsesStatusCodeNodeRemoval();
165164
balancerRunner.balancerContext.matchingHostnameForRoute = balancerRunner.balancerContext.lbConfig.getSipConfiguration().getMatchingHostnameForRoute();
166165
balancerRunner.balancerContext.isFilterSubdomain = balancerRunner.balancerContext.lbConfig.getSipConfiguration().getIsFilterSubdomain();
@@ -3117,7 +3116,6 @@ private void mediaFailureDetection(Response response, InvocationContext ctx, SIP
31173116
Boolean isIpV6=InetAddressValidator.getInstance().isValidInet6Address(node.getIp());
31183117
KeySip keySip = new KeySip(node);
31193118
if(balancerRunner.balancerContext.responsesStatusCodeNodeRemoval.contains(response.getStatusCode()))
3120-
// && response.getReasonPhrase().equals(balancerRunner.balancerContext.responsesReasonNodeRemoval))
31213119
if(ctx.sipNodeMap(isIpV6).get(keySip).getAndIncrementFailCounter()>2) {
31223120
logger.error("mediaFailureDetection on keysip " + keySip + ", removing node " + node);
31233121
ctx.sipNodeMap(isIpV6).remove(keySip);

0 commit comments

Comments
 (0)