JBoss Native SVN: r2014 - in trunk/mod_cluster: src/assembly and 1 other directory.
by jbossnative-commits@lists.jboss.org
Author: pferraro
Date: 2008-10-28 15:06:50 -0400 (Tue, 28 Oct 2008)
New Revision: 2014
Added:
trunk/mod_cluster/src/assembly/sar.xml
Modified:
trunk/mod_cluster/pom.xml
trunk/mod_cluster/src/assembly/bin.xml
Log:
"mvn package" now builds exploded sar
"mvn -P demo package" now builds binary dist.
Modified: trunk/mod_cluster/pom.xml
===================================================================
--- trunk/mod_cluster/pom.xml 2008-10-28 18:43:06 UTC (rev 2013)
+++ trunk/mod_cluster/pom.xml 2008-10-28 19:06:50 UTC (rev 2014)
@@ -50,16 +50,21 @@
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
- <id>assembly</id>
+ <id>sar</id>
<goals>
- <goal>attached</goal>
+ <goal>directory-inline</goal>
</goals>
<phase>package</phase>
+ <configuration>
+ <finalName>${project.artifactId}.sar</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <ignoreDirFormatExtensions>true</ignoreDirFormatExtensions>
+ <descriptors>
+ <descriptor>src/assembly/sar.xml</descriptor>
+ </descriptors>
+ </configuration>
</execution>
</executions>
- <configuration>
- <descriptorSourceDirectory>src/assembly</descriptorSourceDirectory>
- </configuration>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
@@ -353,6 +358,25 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>bin</id>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <descriptors>
+ <descriptor>src/assembly/bin.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
Modified: trunk/mod_cluster/src/assembly/bin.xml
===================================================================
--- trunk/mod_cluster/src/assembly/bin.xml 2008-10-28 18:43:06 UTC (rev 2013)
+++ trunk/mod_cluster/src/assembly/bin.xml 2008-10-28 19:06:50 UTC (rev 2014)
@@ -14,15 +14,16 @@
</includes>
</fileSet>
<fileSet>
- <directory>target</directory>
+ <directory>target/mod-cluster.sar</directory>
<outputDirectory>mod-cluster.sar</outputDirectory>
+ </fileSet>
+ <fileSet>
+ <directory>target/demo</directory>
+ <outputDirectory>demo</outputDirectory>
<includes>
- <include>${project.build.finalName}.jar</include>
+ <include>client/mod-cluster-demo.jar</include>
+ <include>server/demo.war</include>
</includes>
</fileSet>
- <fileSet>
- <directory>src/main/resources</directory>
- <outputDirectory>mod-cluster.sar/META-INF</outputDirectory>
- </fileSet>
</fileSets>
</assembly>
\ No newline at end of file
Added: trunk/mod_cluster/src/assembly/sar.xml
===================================================================
--- trunk/mod_cluster/src/assembly/sar.xml (rev 0)
+++ trunk/mod_cluster/src/assembly/sar.xml 2008-10-28 19:06:50 UTC (rev 2014)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.0.0.xsd">
+ <id>sar</id>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <directory>target</directory>
+ <outputDirectory></outputDirectory>
+ <includes>
+ <include>${project.build.finalName}.jar</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/resources</directory>
+ <outputDirectory>META-INF</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
16 years, 1 month
JBoss Native SVN: r2013 - in trunk/mod_cluster: src/demo/resources and 1 other directory.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-28 14:43:06 -0400 (Tue, 28 Oct 2008)
New Revision: 2013
Added:
trunk/mod_cluster/src/demo/resources/run-demo.bat
trunk/mod_cluster/src/demo/resources/run-demo.sh
Modified:
trunk/mod_cluster/build-demo.xml
Log:
Get launch scripts in the demo build
Modified: trunk/mod_cluster/build-demo.xml
===================================================================
--- trunk/mod_cluster/build-demo.xml 2008-10-28 17:42:59 UTC (rev 2012)
+++ trunk/mod_cluster/build-demo.xml 2008-10-28 18:43:06 UTC (rev 2013)
@@ -31,25 +31,52 @@
</path>
<target name="main" depends="init, compile-demo">
- <jar destfile="${demo.output.client}/${demo.client.jar}">
+ <jar destfile="${demo.output.client}/lib/${demo.client.jar}">
<fileset dir="${demo.output.classes}" excludes="**/server/**"></fileset>
<manifest>
<attribute name="Main-Class" value="org.jboss.modcluster.demo.client.ModClusterDemo"/>
</manifest>
- </jar>
+ </jar>
+ <copy todir="${demo.output.client}">
+ <fileset dir="${demo.src.resources}">
+ <include name="run-demo.sh"/>
+ <include name="run-demo.bat"/>
+ </fileset>
+ </copy>
+ <copy todir="${demo.output.client}/lib">
+ <fileset dir="${demo.dependencies.lib}">
+ <include name="jcommon.jar"/>
+ <include name="jfreechart.jar"/>
+ </fileset>
+ </copy>
<war destfile="${demo.output.server}/${demo.server.war}" webxml="${demo.src.resources}/web.xml">
<classes dir="${demo.output.classes}" excludes="**/client/**"></classes>
<lib dir="${demo.dependencies.lib}">
<include name="commons-httpclient.jar"/>
<include name="commons-codec.jar"/>
</lib>
- </war>
+ </war>
+
+ <fixcrlf srcdir="${demo.output.client}"
+ eol="lf" eof="remove"
+ includes="**/*.sh"/>
+
+ <fixcrlf srcdir="${demo.output.client}"
+ eol="crlf" eof="remove"
+ includes="**/*.bat, **/*.cmd"/>
+
+ <chmod perm="+x">
+ <fileset dir="${demo.output.client}">
+ <include name="**/*.sh"/>
+ </fileset>
+ </chmod>
</target>
<target name="init">
<mkdir dir="${demo.output}"/>
<mkdir dir="${demo.output.classes}"></mkdir>
<mkdir dir="${demo.output.client}"/>
+ <mkdir dir="${demo.output.client}/lib"/>
<mkdir dir="${demo.output.server}"/>
</target>
Added: trunk/mod_cluster/src/demo/resources/run-demo.bat
===================================================================
--- trunk/mod_cluster/src/demo/resources/run-demo.bat (rev 0)
+++ trunk/mod_cluster/src/demo/resources/run-demo.bat 2008-10-28 18:43:06 UTC (rev 2013)
@@ -0,0 +1,12 @@
+# TODO Make this dynamic as it is in the shell script
+set "CP=.\lib\mod-cluster-demo.jar;.\lib\jcommon.jar;.\lib\jfreechart.jar"
+
+set "OPTS=-Xmn200M -Xmx300M -Xms300M -Xss8K -XX:ThreadStackSize=8k -XX:CompileThreshold=100 -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31"
+
+# Tell the HttpURLConnection pool to maintain 400 connections max
+set "OPTS=%OPTS% -Dhttp.maxConnections=400"
+
+# Set defaults for the load balancer
+set "OPTS=%OPTS% -Dmod_cluster.proxy.host=localhost -Dmod_cluster.proxy.port=8000"
+
+java -classpath %CP% %OPTS% org.jboss.modcluster.demo.client.ModClusterDemo
Added: trunk/mod_cluster/src/demo/resources/run-demo.sh
===================================================================
--- trunk/mod_cluster/src/demo/resources/run-demo.sh (rev 0)
+++ trunk/mod_cluster/src/demo/resources/run-demo.sh 2008-10-28 18:43:06 UTC (rev 2013)
@@ -0,0 +1,16 @@
+CP=./classes
+
+for i in lib/*.jar
+do
+ CP=$CP:./${i}
+done
+
+OPTS="-Xmn200M -Xmx300M -Xms300M -Xss8K -XX:ThreadStackSize=8k -XX:CompileThreshold=100 -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31"
+
+# Tell the HttpURLConnection pool to maintain 400 connections max
+OPTS="$OPTS -Dhttp.maxConnections=400"
+
+# Set defaults for the load balancer
+OPTS="$OPTS -Dmod_cluster.proxy.host=localhost -Dmod_cluster.proxy.port=8000"
+
+java -classpath $CP $OPTS org.jboss.modcluster.demo.client.ModClusterDemo
16 years, 1 month
JBoss Native SVN: r2012 - trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-28 13:42:59 -0400 (Tue, 28 Oct 2008)
New Revision: 2012
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/RecordServlet.java
Log:
Include node's jvmRoute in visual response
Modified: trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/RecordServlet.java
===================================================================
--- trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/RecordServlet.java 2008-10-28 15:42:14 UTC (rev 2011)
+++ trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/servlet/RecordServlet.java 2008-10-28 17:42:59 UTC (rev 2012)
@@ -21,6 +21,8 @@
*/
package org.jboss.modcluster.demo.servlet;
+import java.io.IOException;
+
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
@@ -64,6 +66,7 @@
*/
@Override
protected void service(HttpServletRequest request, HttpServletResponse response)
+ throws ServletException, IOException
{
HttpSession session = request.getSession(true);
@@ -84,5 +87,12 @@
}
response.setHeader(Constants.NODE_HEADER, (String) this.getServletContext().getAttribute(JVM_ROUTE));
+
+ this.writeLocalName(request, response);
}
+
+ protected void writeLocalName(HttpServletRequest request, HttpServletResponse response) throws IOException
+ {
+ response.getWriter().append("Handled By: ").append((String) this.getServletContext().getAttribute(JVM_ROUTE));
+ }
}
16 years, 1 month
JBoss Native SVN: r2011 - trunk/mod_cluster/src/main/resources.
by jbossnative-commits@lists.jboss.org
Author: pferraro
Date: 2008-10-28 11:42:14 -0400 (Tue, 28 Oct 2008)
New Revision: 2011
Modified:
trunk/mod_cluster/src/main/resources/mod-cluster-jboss-beans.xml
Log:
Shorten lbf bean names
Modified: trunk/mod_cluster/src/main/resources/mod-cluster-jboss-beans.xml
===================================================================
--- trunk/mod_cluster/src/main/resources/mod-cluster-jboss-beans.xml 2008-10-28 03:44:00 UTC (rev 2010)
+++ trunk/mod_cluster/src/main/resources/mod-cluster-jboss-beans.xml 2008-10-28 15:42:14 UTC (rev 2011)
@@ -47,7 +47,7 @@
this server should take. This impl calculates load factor from a
number of metrics and adjusts the value periodically based on runtime
conditions, using to the JBossWeb engine's backgroundProcessorDelay. -->
- <bean name="DynamicModClusterLoadBalanceFactorProvider" class="org.jboss.modcluster.load.impl.DynamicLoadBalanceFactorProvider" mode="On Demand">
+ <bean name="DynamicLoadBalanceFactorProvider" class="org.jboss.modcluster.load.impl.DynamicLoadBalanceFactorProvider" mode="On Demand">
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.web:service=LoadBalanceFactorProvider",exposedInterface=org.jboss.modcluster.load.impl.DynamicLoadBalanceFactorProviderMBean.class)</annotation>
<constructor>
<parameter>
@@ -98,7 +98,7 @@
<constructor>
<parameter><inject bean="HAPartition"/></parameter>
<parameter><inject bean="ModClusterConfig"/></parameter>
- <parameter><inject bean="DynamicModClusterLoadBalanceFactorProvider"/></parameter>
+ <parameter><inject bean="DynamicLoadBalanceFactorProvider"/></parameter>
<parameter><bean class="org.jboss.ha.singleton.HASingletonElectionPolicySimple"/></parameter>
</constructor>
</bean>
@@ -117,7 +117,7 @@
<!-- Alternative load balance factor providers -->
<!-- Basic impl that returns a static load balance factor -->
- <bean name="StaticModClusterLoadBalanceFactorProvider" class="org.jboss.modcluster.load.impl.StaticLoadBalanceFactorProvider" mode="On Demand">
+ <bean name="StaticLoadBalanceFactorProvider" class="org.jboss.modcluster.load.impl.StaticLoadBalanceFactorProvider" mode="On Demand">
<property name="loadBalanceFactor">1</property>
</bean>
@@ -125,9 +125,7 @@
<!-- CPU usage -->
<!-- Perhaps the best metric for determining system load - but only available on Java 1.6 or later -->
- <bean name="AverageSystemLoadMetric"
- class="org.jboss.modcluster.load.metric.impl.AverageSystemLoadMetric"
- mode="On Demand">
+ <bean name="AverageSystemLoadMetric" class="org.jboss.modcluster.load.metric.impl.AverageSystemLoadMetric" mode="On Demand">
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.web:service=AverageSystemLoadMetric",exposedInterface=org.jboss.modcluster.load.metric.LoadMetricMBean.class)</annotation>
<constructor>
<parameter><inject bean="OperatingSystemLoadMetricSource"/></parameter>
@@ -135,9 +133,7 @@
</bean>
<!-- The system memory usage as ratio of used memory to total memory size -->
<!-- Requires com.sun.management.OperatingSystemMXBean -->
- <bean name="SystemMemoryUsageLoadMetric"
- class="org.jboss.modcluster.load.metric.impl.SystemMemoryUsageLoadMetric"
- mode="On Demand">
+ <bean name="SystemMemoryUsageLoadMetric" class="org.jboss.modcluster.load.metric.impl.SystemMemoryUsageLoadMetric" mode="On Demand">
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.web:service=SystemMemoryUsageLoadMetric",exposedInterface=org.jboss.modcluster.load.metric.LoadMetricMBean.class)</annotation>
<constructor>
<parameter><inject bean="OperatingSystemLoadMetricSource"/></parameter>
16 years, 1 month
JBoss Native SVN: r2010 - in trunk/mod_cluster: src/demo/java/org/jboss/modcluster/demo/client and 1 other directory.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-27 23:44:00 -0400 (Mon, 27 Oct 2008)
New Revision: 2010
Modified:
trunk/mod_cluster/build-demo.xml
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
Log:
Change the name of the demo war to load-demo.war
Modified: trunk/mod_cluster/build-demo.xml
===================================================================
--- trunk/mod_cluster/build-demo.xml 2008-10-28 03:43:38 UTC (rev 2009)
+++ trunk/mod_cluster/build-demo.xml 2008-10-28 03:44:00 UTC (rev 2010)
@@ -23,7 +23,7 @@
<property name="demo.output.client" location="${demo.output}/client"/>
<property name="demo.output.server" location="${demo.output}/server"/>
<property name="demo.client.jar" value="mod-cluster-demo.jar"></property>
- <property name="demo.server.war" value="demo.war"></property>
+ <property name="demo.server.war" value="load-demo.war"></property>
<property name="demo.dependencies.lib" location="${module.output}/dependencies/lib"></property>
<path id="demo">
Modified: trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
===================================================================
--- trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java 2008-10-28 03:43:38 UTC (rev 2009)
+++ trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java 2008-10-28 03:44:00 UTC (rev 2010)
@@ -53,7 +53,7 @@
{
private static final String DEFAULT_HOST_NAME = System.getProperty("mod_cluster.proxy.host", "localhost");
private static final String DEFAULT_PROXY_PORT = System.getProperty("mod_cluster.proxy.port", "8000");
- private static final String DEFAULT_CONTEXT_PATH = "demo";
+ private static final String DEFAULT_CONTEXT_PATH = "load-demo";
private static final String DEFAULT_SESSION_TIMEOUT = "20";
private static final int DEFAULT_NUM_THREADS = 200;
private static final int DEFAULT_SESSION_LIFE = 10;
16 years, 1 month
JBoss Native SVN: r2009 - trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-27 23:43:38 -0400 (Mon, 27 Oct 2008)
New Revision: 2009
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ChartManager.java
Log:
Remove default series
Modified: trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ChartManager.java
===================================================================
--- trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ChartManager.java 2008-10-28 03:03:58 UTC (rev 2008)
+++ trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ChartManager.java 2008-10-28 03:43:38 UTC (rev 2009)
@@ -58,13 +58,13 @@
requestBalancingChart = ChartFactory.createXYLineChart("Request Balancing", "Sample", "Requests / Second", requestSeriesCollection, PlotOrientation.VERTICAL, true, true, false);
sessionBalancingChart = ChartFactory.createXYLineChart("Session Balancing", "Sample", "Session Count", sessionSeriesCollection, PlotOrientation.VERTICAL, true, true, false);
-
- for (int i = 1; i < 9; i++)
- {
- String key = "cluster0" + i;
- createRequestSeries(key);
- createSessionSeries(key);
- }
+
+// for (int i = 1; i < 9; i++)
+// {
+// String key = "cluster0" + i;
+// createRequestSeries(key);
+// createSessionSeries(key);
+// }
}
public JFreeChart getRequestBalancingChart()
16 years, 1 month
JBoss Native SVN: r2008 - trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/load.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-27 23:03:58 -0400 (Mon, 27 Oct 2008)
New Revision: 2008
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/load/ServerLoadServlets.java
Log:
Typo
Modified: trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/load/ServerLoadServlets.java
===================================================================
--- trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/load/ServerLoadServlets.java 2008-10-28 02:04:26 UTC (rev 2007)
+++ trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/load/ServerLoadServlets.java 2008-10-28 03:03:58 UTC (rev 2008)
@@ -61,7 +61,7 @@
"Number of seconds to maintain memory usage", "15")),
CPU_USAGE("CPU Use",
- "Generates server CPU load by initiating a tight loop in on thread",
+ "Generates server CPU load by initiating a tight loop in a thread",
"cpu",
new ServerLoadParam("duration", "Duration",
"Number of seconds to maintain CPU usage", "15")),
16 years, 1 month
JBoss Native SVN: r2007 - in trunk/mod_cluster: src and 1 other directories.
by jbossnative-commits@lists.jboss.org
Author: pferraro
Date: 2008-10-27 22:04:26 -0400 (Mon, 27 Oct 2008)
New Revision: 2007
Added:
trunk/mod_cluster/src/assembly/
trunk/mod_cluster/src/assembly/bin.xml
Modified:
trunk/mod_cluster/pom.xml
Log:
Add assembly plugin for packaging.
Modified: trunk/mod_cluster/pom.xml
===================================================================
--- trunk/mod_cluster/pom.xml 2008-10-28 00:18:33 UTC (rev 2006)
+++ trunk/mod_cluster/pom.xml 2008-10-28 02:04:26 UTC (rev 2007)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.jboss</groupId>
@@ -14,7 +14,7 @@
<name></name>
<description></description>
<url></url>
-
+
<scm>
<connection>scm:svn:https://svn.jboss.org/repos/jbossnative/trunk/mod_cluster</connection>
</scm>
@@ -46,6 +46,22 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <phase>package</phase>
+ </execution>
+ </executions>
+ <configuration>
+ <descriptorSourceDirectory>src/assembly</descriptorSourceDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagBase>https://svn.jboss.org/repos/jbossnative/tags/mod_cluster</tagBase>
@@ -94,6 +110,10 @@
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-server-manager</artifactId>
</artifactItem>
+ <artifactItem>
+ <groupId>org.jboss.naming</groupId>
+ <artifactId>jnp-client</artifactId>
+ </artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/dependencies/lib</outputDirectory>
<overWriteIfNewer>true</overWriteIfNewer>
@@ -157,7 +177,7 @@
<dependency>
<groupId>org.jboss.microcontainer</groupId>
<artifactId>jboss-kernel</artifactId>
- <version>2.0.0.CR1</version>
+ <version>2.0.0.CR2</version>
</dependency>
<!-- Test dependencies -->
@@ -186,6 +206,12 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.jboss.naming</groupId>
+ <artifactId>jnp-client</artifactId>
+ <version>5.0.0.CR2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.3</version>
Added: trunk/mod_cluster/src/assembly/bin.xml
===================================================================
--- trunk/mod_cluster/src/assembly/bin.xml (rev 0)
+++ trunk/mod_cluster/src/assembly/bin.xml 2008-10-28 02:04:26 UTC (rev 2007)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.0.0.xsd">
+ <id>bin</id>
+ <formats>
+ <format>tar.gz</format>
+ </formats>
+ <includeBaseDirectory>false</includeBaseDirectory>
+ <fileSets>
+ <fileSet>
+ <includes>
+ <include>README*</include>
+ <include>LICENSE*</include>
+ <include>NOTICE*</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>target</directory>
+ <outputDirectory>mod-cluster.sar</outputDirectory>
+ <includes>
+ <include>${project.build.finalName}.jar</include>
+ </includes>
+ </fileSet>
+ <fileSet>
+ <directory>src/main/resources</directory>
+ <outputDirectory>mod-cluster.sar/META-INF</outputDirectory>
+ </fileSet>
+ </fileSets>
+</assembly>
\ No newline at end of file
16 years, 1 month
JBoss Native SVN: r2006 - trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-27 20:18:33 -0400 (Mon, 27 Oct 2008)
New Revision: 2006
Modified:
trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
Log:
Cosmetics
Modified: trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java
===================================================================
--- trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java 2008-10-26 17:30:49 UTC (rev 2005)
+++ trunk/mod_cluster/src/demo/java/org/jboss/modcluster/demo/client/ModClusterDemo.java 2008-10-28 00:18:33 UTC (rev 2006)
@@ -137,7 +137,7 @@
frame = new JFrame();
frame.setBounds(100, 100, 675, 422);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.setTitle("Demo of mod-cluster");
+ frame.setTitle("Load Balancing Demonstration");
frame.addWindowListener(new WindowAdapter()
{
@Override
@@ -281,7 +281,7 @@
controlPanel.add(destroySessionField, gridBagConstraints);
sessionTimeoutLabel = new JLabel();
- sessionTimeoutLabel.setText("Session timeout (s):");
+ sessionTimeoutLabel.setText("Session Timeout (s):");
sessionTimeoutLabel.setToolTipText("Session maxInactiveInterval if abandoned, in seconds");
sessionTimeoutLabel.setEnabled(destroySessionField.isSelected());
gridBagConstraints = new GridBagConstraints();
@@ -300,7 +300,7 @@
controlPanel.add(sessionTimeoutField, gridBagConstraints);
label = new JLabel();
- label.setText("Num threads:");
+ label.setText("Num Threads:");
label.setToolTipText("Number of client threads to launch; max number of concurrent requests");
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridy = 6;
@@ -317,7 +317,7 @@
controlPanel.add(numThreadsField, gridBagConstraints);
label = new JLabel();
- label.setText("Sleep time (ms):");
+ label.setText("Sleep Time (ms):");
label.setToolTipText("Number of ms each client should sleep between requests");
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridy = 6;
@@ -334,7 +334,7 @@
controlPanel.add(sleepTimeField, gridBagConstraints);
label = new JLabel();
- label.setText("Startup time (s):");
+ label.setText("Startup Time (s):");
label.setToolTipText("Number of seconds over which client threads should be launched");
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridy = 8;
@@ -535,7 +535,7 @@
ServerLoadParam param = ServerLoadServlets.CONNECTION_POOL_USAGE.getParams().get(0);
targetServletParamLabel1 = new JLabel();
- targetServletParamLabel1.setText(param.getLabel());
+ targetServletParamLabel1.setText(param.getLabel() + ":");
targetServletParamLabel1.setToolTipText(param.getDescription());
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridy = 4;
@@ -554,7 +554,7 @@
param = ServerLoadServlets.CONNECTION_POOL_USAGE.getParams().get(1);
targetServletParamLabel2 = new JLabel();
- targetServletParamLabel2.setText(param.getLabel());
+ targetServletParamLabel2.setText(param.getLabel() + ":");
targetServletParamLabel2.setToolTipText(param.getDescription());
gridBagConstraints = new GridBagConstraints();
gridBagConstraints.gridy = 6;
16 years, 1 month
JBoss Native SVN: r2005 - trunk/mod_cluster.
by jbossnative-commits@lists.jboss.org
Author: bstansberry(a)jboss.com
Date: 2008-10-26 13:30:49 -0400 (Sun, 26 Oct 2008)
New Revision: 2005
Modified:
trunk/mod_cluster/
Log:
Add .settings to svn ignore list
Property changes on: trunk/mod_cluster
___________________________________________________________________
Name: svn:ignore
- target
+ target
.settings
16 years, 1 month