[jboss-cvs] JBossCache/src/org/jboss/cache ...
Jason Thomas Greene
jgreene at jboss.com
Wed Aug 1 14:09:12 EDT 2007
User: jgreene
Date: 07/08/01 14:09:12
Modified: src/org/jboss/cache TreeCacheView.java
Log:
Fix TreeCacheViewer
Revision Changes Path
1.30 +606 -600 JBossCache/src/org/jboss/cache/TreeCacheView.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TreeCacheView.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCacheView.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- TreeCacheView.java 28 Jun 2007 16:53:35 -0000 1.29
+++ TreeCacheView.java 1 Aug 2007 18:09:12 -0000 1.30
@@ -9,6 +9,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.jboss.cache.TreeCacheGui.AddModifyDataForNodeAction;
+import org.jboss.cache.TreeCacheGui.AddNodeAction;
+import org.jboss.cache.TreeCacheGui.ExitAction;
+import org.jboss.cache.TreeCacheGui.MyNode;
+import org.jboss.cache.TreeCacheGui.PrintLockInfoAction;
+import org.jboss.cache.TreeCacheGui.ReleaseAllLocksAction;
+import org.jboss.cache.TreeCacheGui.RemoveNodeAction;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.jmx.CacheJmxWrapper;
import org.jboss.cache.jmx.CacheJmxWrapperMBean;
@@ -61,7 +68,7 @@
* data needs to be displayed, the underlying cache will be accessed directly.
*
* @author Bela Ban
- * @version $Revision: 1.29 $
+ * @version $Revision: 1.30 $
*/
public class TreeCacheView implements TreeCacheViewMBean
{
@@ -312,40 +319,9 @@
}
}
- private static String getDefaultProps()
+ @CacheListener
+ public static class TreeCacheGui extends JFrame implements WindowListener, TreeSelectionListener, TableModelListener
{
- return
- "UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;" +
- "mcast_port=45566;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;" +
- "ucast_recv_buf_size=80000;ucast_send_buf_size=150000):" +
- "PING(down_thread=true;num_initial_members=3;timeout=2000;up_thread=true):" +
- "MERGE2(max_interval=20000;min_interval=10000):" +
- "FD(down_thread=true;shun=true;up_thread=true):" +
- "VERIFY_SUSPECT(down_thread=true;timeout=1500;up_thread=true):" +
- "pbcast.NAKACK(down_thread=true;gc_lag=50;retransmit_timeout=600,1200,2400,4800;" +
- "up_thread=true):" +
- "pbcast.STABLE(desired_avg_gossip=20000;down_thread=true;up_thread=true):" +
- "UNICAST(down_thread=true;min_threshold=10;timeout=600,1200,2400;window_size=100):" +
- "FRAG(down_thread=true;frag_size=8192;up_thread=true):" +
- "pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):" +
- "pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)";
- }
-
-
- static void help()
- {
- System.out.println("TreeCacheView [-help] " +
- "[-mbean_name <name of CacheImpl MBean>] " +
- "[-start_directory <dirname>] [-props <props>] " +
- "[-use_queue <true/false>] [-queue_interval <ms>] " +
- "[-queue_max_elements <num>]");
- }
-}
-
-
- at CacheListener
-class TreeCacheGui extends JFrame implements WindowListener, TreeSelectionListener, TableModelListener
-{
private static final long serialVersionUID = 8576324868563647538L;
CacheSPI cache;
DefaultTreeModel tree_model = null;
@@ -1108,6 +1084,36 @@
}
+ }
+
+ private static String getDefaultProps()
+ {
+ return
+ "UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;" +
+ "mcast_port=45566;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;" +
+ "ucast_recv_buf_size=80000;ucast_send_buf_size=150000):" +
+ "PING(down_thread=true;num_initial_members=3;timeout=2000;up_thread=true):" +
+ "MERGE2(max_interval=20000;min_interval=10000):" +
+ "FD(down_thread=true;shun=true;up_thread=true):" +
+ "VERIFY_SUSPECT(down_thread=true;timeout=1500;up_thread=true):" +
+ "pbcast.NAKACK(down_thread=true;gc_lag=50;retransmit_timeout=600,1200,2400,4800;" +
+ "up_thread=true):" +
+ "pbcast.STABLE(desired_avg_gossip=20000;down_thread=true;up_thread=true):" +
+ "UNICAST(down_thread=true;min_threshold=10;timeout=600,1200,2400;window_size=100):" +
+ "FRAG(down_thread=true;frag_size=8192;up_thread=true):" +
+ "pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):" +
+ "pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)";
+ }
+
+
+ static void help()
+ {
+ System.out.println("TreeCacheView [-help] " +
+ "[-mbean_name <name of CacheImpl MBean>] " +
+ "[-start_directory <dirname>] [-props <props>] " +
+ "[-use_queue <true/false>] [-queue_interval <ms>] " +
+ "[-queue_max_elements <num>]");
+ }
}
More information about the jboss-cvs-commits
mailing list