cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1051101 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/GCInspector.java
Date Mon, 20 Dec 2010 13:40:10 GMT
Author: jbellis
Date: Mon Dec 20 13:40:10 2010
New Revision: 1051101

URL: http://svn.apache.org/viewvc?rev=1051101&view=rev
Log:
create GCInspector instance after static field initialization
patch by Dave Brosius; reviewed by jbellis for CASSANDRA-1887

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/GCInspector.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/GCInspector.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/GCInspector.java?rev=1051101&r1=1051100&r2=1051101&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/GCInspector.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/service/GCInspector.java
Mon Dec 20 13:40:10 2010
@@ -42,12 +42,12 @@ import org.apache.cassandra.net.Messagin
 
 public class GCInspector
 {
-    public static final GCInspector instance = new GCInspector();
-
     private static final Logger logger = LoggerFactory.getLogger(GCInspector.class);
     final static long INTERVAL_IN_MS = 1000;
     final static long MIN_DURATION = 200;
     final static long MIN_DURATION_TPSTATS = 1000;
+    
+    public static final GCInspector instance = new GCInspector();
 
     private HashMap<String, Long> gctimes = new HashMap<String, Long>();
     private final MBeanServer server = ManagementFactory.getPlatformMBeanServer();



Mime
View raw message