incubator-droids-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1463854 - in /incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor: SimpleWorkMonitor.java WorkBean.java
Date Wed, 03 Apr 2013 07:49:14 GMT
Author: tobr
Date: Wed Apr  3 07:49:13 2013
New Revision: 1463854

URL: http://svn.apache.org/r1463854
Log:
cleaned up the code
changed to private members and created getter/setters

Modified:
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java
    incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java?rev=1463854&r1=1463853&r2=1463854&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/SimpleWorkMonitor.java
Wed Apr  3 07:49:13 2013
@@ -28,7 +28,7 @@ import org.apache.droids.core.Worker;
  */
 public class SimpleWorkMonitor<T extends Task> implements WorkMonitor<T> {
 
-    Map<T, WorkBean<T>> working = new ConcurrentHashMap<T, WorkBean<T>>();
+    private Map<T, WorkBean<T>> working = new ConcurrentHashMap<T, WorkBean<T>>();
 
     @Override
     public void beforeExecute(T task, Worker<T> worker) {

Modified: incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java
URL: http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java?rev=1463854&r1=1463853&r2=1463854&view=diff
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java
(original)
+++ incubator/droids/branches/0.2.x-cleanup/droids-core/src/main/java/org/apache/droids/monitor/WorkBean.java
Wed Apr  3 07:49:13 2013
@@ -26,11 +26,11 @@ import org.apache.droids.core.Worker;
  */
 public class WorkBean<T extends Task> {
 
-    Date startTime;
+    private Date startTime;
 
-    T task;
-    Worker<T> worker;
-    Exception exception;
+    private T task;
+    private Worker<T> worker;
+    private Exception exception;
 
     public WorkBean(T task, Worker<T> w) {
         this.startTime = new Date();



Mime
View raw message