You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by in...@apache.org on 2009/03/17 08:40:11 UTC
svn commit: r755139 -
/synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
Author: indika
Date: Tue Mar 17 07:40:11 2009
New Revision: 755139
URL: http://svn.apache.org/viewvc?rev=755139&view=rev
Log:
appling rajika's patch for https://issues.apache.org/jira/browse/SYNAPSE-515
Thanks rajika
Modified:
synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
Modified: synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml
URL: http://svn.apache.org/viewvc/synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml?rev=755139&r1=755138&r2=755139&view=diff
==============================================================================
--- synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml (original)
+++ synapse/trunk/java/src/site/xdoc/Synapse_Configuration_Language.xml Tue Mar 17 07:40:11 2009
@@ -490,6 +490,32 @@
recovered after a failure.
</p>
<p>
+ Endpoint can be in one of the four states Active, TimeOut, Suspended and
+ Switch Off. Endpoint can be active which represent the Active state of the
+ endpoint. With the new endpoint enhancements there is possibility to retry
+ in case of endpoint invocation failure. This behavior can be configured
+ at the endpoint level through synapse endpoint API. Configuration is called
+ 'markForSuspension'. 'errorCodes' represent a list
+ of error codes. If these error codes are received from the endpoint,
+ the endpoint will be suspended. 'retriesBeforeSuspension' represents
+ the number of re-tries in case of a timeout, caused by the above listed error codes.
+ 'retryDelay' is the delay between re-tries, in milli seconds. If the endpoint
+ required to retry it is moved to TimeOut state. If the endpoint fails in
+ subsequent re-tries it'll move to Suspended state. If endpoint succeeded in
+ further re-tries it'll move into Active state. Suspended state defines
+ configuration 'suspendOnFailure'. 'initialDuration' represent the duration that the endpoint
+ is suspended for the first time after receiving the suspend error codes.
+ 'progressionFactor' is the duration to suspend can vary from the first time
+ suspension to the subsequent time. The factor value decides the suspense duration
+ variance between subsequent suspensions. 'maximumDuration' the maximum
+ duration that the endpoint is suspended after the receiving the suspend error codes.
+ Finally an endpoint can be in the Switch off state, where the endpoint is moved to
+ maintenance. State changes between Switch off and other states only can be done
+ manually through JMX based API that is provided. Endpoint which is in
+ 'Switch Off' state can only be moved to 'Active' state and it too can only be
+ done through JMX.
+ </p>
+ <p>
Address endpoints can timeout if responses fail to arrive at Synapse by a
predefined timeout-duration specified in seconds. The timeout action
specifies whether to discard responses that arrives late, or to trigger a
@@ -524,9 +550,18 @@
<action>discard|fault</action>
</timeout>?
- <suspendDurationOnFailure>
- <em>suspend duration in seconds</em>
- </suspendDurationOnFailure>?
+ <markForSuspension>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <retriesBeforeSuspension>m</retriesBeforeSuspension>
+ <retryDelay>d</retryDelay>
+ </markForSuspension>
+
+ <suspendOnFailure>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <initialDuration>n</initialDuration>
+ <progressionFactor>r</progressionFactor>
+ <maximumDuration>l</maximumDuration>
+ </suspendOnFailure>
</address></pre>
<p>
Following are some sample address URI definitions.
@@ -570,9 +605,18 @@
<action>discard|fault</action>
</timeout>?
- <suspendDurationOnFailure>
- <em>suspend duration in seconds</em>
- </suspendDurationOnFailure>?
+ <markForSuspension>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <retriesBeforeSuspension>m</retriesBeforeSuspension>
+ <retryDelay>d</retryDelay>
+ </markForSuspension>
+
+ <suspendOnFailure>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <initialDuration>n</initialDuration>
+ <progressionFactor>r</progressionFactor>
+ <maximumDuration>l</maximumDuration>
+ </suspendOnFailure>
</default></pre>
<h4>
<a name="wsdl-endpoint" id="wsdl-endpoint">WSDL Endpoint</a>
@@ -592,11 +636,24 @@
<enableRM [policy="key"]/>?
<enableSec [policy="key"]/>?
<enableAddressing/>?
- <suspendDurationOnFailure>suspend-duration</suspendDurationOnFailure>?
+
<timeout>
<duration>timeout-duration</duration>
<action>discard|fault</action>
</timeout>?
+ <markForSuspension>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <retriesBeforeSuspension>m</retriesBeforeSuspension>
+ <retryDelay>d</retryDelay>
+ </markForSuspension>
+
+ <suspendOnFailure>
+ [<errorCodes>xxx,yyy</errorCodes>]
+ <initialDuration>n</initialDuration>
+ <progressionFactor>r</progressionFactor>
+ <maximumDuration>l</maximumDuration>
+ </suspendOnFailure>
+
</wsdl></pre>
<h4>
<a name="load-balanced-endpoint" id="load-balanced-endpoint">Load
@@ -2093,4 +2150,5 @@
<p/>
<p/>
</body>
-</document>
\ No newline at end of file
+</document>
+