Author: fhanik Date: Fri Oct 13 12:07:44 2006 New Revision: 463780 URL: http://svn.apache.org/viewvc?view=rev&rev=463780 Log: complete valve documentation
Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java?view=diff&rev=463780&r1=463779&r2=463780 ============================================================================== --- tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java (original) +++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/ha/tcp/ReplicationValve.java Fri Oct 13 12:07:44 2006 @@ -634,12 +634,11 @@ if (session instanceof ClusterSession) { ClusterSession cses = (ClusterSession) session; if (cses != null) { - Boolean isPrimary = new Boolean(cses.isPrimarySession()); if (log.isDebugEnabled()) log.debug(sm.getString( "ReplicationValve.session.indicator", request.getContext().getName(),id, - primaryIndicatorName, isPrimary)); - request.setAttribute(primaryIndicatorName, isPrimary); + primaryIndicatorName, cses.isPrimarySession())); + request.setAttribute(primaryIndicatorName, cses.isPrimarySession()?Boolean.TRUE:Boolean.FALSE); } } else { if (log.isDebugEnabled()) { Modified: tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml?view=diff&rev=463780&r1=463779&r2=463780 ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/config/cluster-valve.xml Fri Oct 13 12:07:44 2006 @@ -43,9 +43,16 @@ The filter uses regular expressions and each filter is delimited by a semi colon. <code>Pattern#compile(java.lang.String)</code> </attribute> - <attribute name="className" required="false"> + <attribute name="primaryIndicator" required="false"> + Boolean value, so to true, and the replication valve will insert a request attribute with the name + defined by the <code>primaryIndicatorName</code> attribute. + The value inserted into the request attribute is either <code>Boolean.TRUE</code> or + <code>Boolean.FALSE</code> </attribute> - <attribute name="className" required="false"> + <attribute name="primaryIndicatorName" required="false"> + Default value is <code>org.apache.catalina.ha.tcp.isPrimarySession</code> + The value defined here is the name of the request attribute that contains the boolean value + if the session is primary on this server or not. </attribute> <attribute name="statistics" required="false"> Boolean value. Set to <code>true</code> if you want the valve to collect request statistics. @@ -63,7 +70,13 @@ <subsection name="Attributes"> <attributes> <attribute name="className" required="true"> + <code>org.apache.catalina.ha.session.JvmRouteBinderValve</code> </attribute> + <attribute name="enabled" required="false"> + Default value is <code>true</code> + Runtime attribute to turn on and off turn over of the session's jvmRoute value. + </attribute> + </attributes> </subsection> </section> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]