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;
Show replies by thread