hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1299089 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
Date Fri, 09 Mar 2012 22:48:16 GMT
Author: stack
Date: Fri Mar  9 22:48:16 2012
New Revision: 1299089

URL: http://svn.apache.org/viewvc?rev=1299089&view=rev
Log:
HBASE-5535 Make the functions in task monitor synchronized

Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java?rev=1299089&r1=1299088&r2=1299089&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
(original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java
Fri Mar  9 22:48:16 2012
@@ -64,7 +64,7 @@ public class TaskMonitor {
     return instance;
   }
   
-  public MonitoredTask createStatus(String description) {
+  public synchronized MonitoredTask createStatus(String description) {
     MonitoredTask stat = new MonitoredTaskImpl();
     stat.setDescription(description);
     MonitoredTask proxy = (MonitoredTask) Proxy.newProxyInstance(
@@ -78,7 +78,7 @@ public class TaskMonitor {
     return proxy;
   }
 
-  public MonitoredRPCHandler createRPCStatus(String description) {
+  public synchronized MonitoredRPCHandler createRPCStatus(String description) {
     MonitoredRPCHandler stat = new MonitoredRPCHandlerImpl();
     stat.setDescription(description);
     MonitoredRPCHandler proxy = (MonitoredRPCHandler) Proxy.newProxyInstance(



Mime
View raw message