flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esam...@apache.org
Subject svn commit: r1156910 - /incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/NodeStatusMonitor.java
Date Fri, 12 Aug 2011 00:48:32 GMT
Author: esammer
Date: Fri Aug 12 00:48:32 2011
New Revision: 1156910

URL: http://svn.apache.org/viewvc?rev=1156910&view=rev
Log:
- According to urbandictionary, using stati makes me a douchebag. Updated to status.

Modified:
    incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/NodeStatusMonitor.java

Modified: incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/NodeStatusMonitor.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/NodeStatusMonitor.java?rev=1156910&r1=1156909&r2=1156910&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/NodeStatusMonitor.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/NodeStatusMonitor.java
Fri Aug 12 00:48:32 2011
@@ -15,12 +15,12 @@ public class NodeStatusMonitor implement
   private static final Logger logger = LoggerFactory
       .getLogger(NodeStatusMonitor.class);
 
-  private Map<String, Status> stati;
+  private Map<String, Status> statuses;
 
   private NodeManager nodeManager;
 
   public NodeStatusMonitor() {
-    stati = new HashMap<String, Status>();
+    statuses = new HashMap<String, Status>();
   }
 
   @Override
@@ -31,7 +31,7 @@ public class NodeStatusMonitor implement
   public void updateStatus() {
     Set<LogicalNode> nodes = nodeManager.getNodes();
 
-    logger.debug("Checking stati of all nodes");
+    logger.debug("Checking statuses of all nodes");
 
     for (LogicalNode node : nodes) {
       updateStatus(node);
@@ -39,10 +39,10 @@ public class NodeStatusMonitor implement
   }
 
   public void updateStatus(LogicalNode node) {
-    logger.debug("Checking stati of node:{}", node);
+    logger.debug("Checking statuses of node:{}", node);
 
     Long now = System.currentTimeMillis();
-    Status status = stati.get(node.getName());
+    Status status = statuses.get(node.getName());
 
     if (status == null) {
       status = new Status();
@@ -61,12 +61,12 @@ public class NodeStatusMonitor implement
     status.lastSeen = now;
     status.state = node.getLifecycleState();
 
-    stati.put(node.getName(), status);
+    statuses.put(node.getName(), status);
   }
 
   @Override
   public String toString() {
-    return "{ stati:" + stati + " nodeManager:" + nodeManager + " }";
+    return "{ statuses:" + statuses + " nodeManager:" + nodeManager + " }";
   }
 
   public NodeManager getNodeManager() {



Mime
View raw message