Update of /var/cvs/src/org/mmbase/module/builders
In directory james.mmbase.org:/tmp/cvs-serv15945/src/org/mmbase/module/builders

Modified Files:
        MMServers.java 
Log Message:
MMB-1635 MMservers creates a new record when searchquery fails

Do nothing when error occures on database level for the list search


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/module/builders
See also: http://www.mmbase.org/jira/browse/MMB-1635


Index: MMServers.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/module/builders/MMServers.java,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -b -r1.50 -r1.51
--- MMServers.java      21 Jun 2007 15:50:23 -0000      1.50
+++ MMServers.java      3 Apr 2008 13:36:55 -0000       1.51
@@ -30,7 +30,7 @@
  * nodes caches in sync but also makes it possible to split tasks between 
machines. You could for example have a server that encodes video.
  *  when a change to a certain node is made one of the servers (if wel 
configured) can start encoding the videos.
  * @author  vpro
- * @version $Id: MMServers.java,v 1.50 2007/06/21 15:50:23 nklasens Exp $
+ * @version $Id: MMServers.java,v 1.51 2008/04/03 13:36:55 nklasens Exp $
  */
 public class MMServers extends MMObjectBuilder implements MMBaseObserver, 
Runnable, org.mmbase.datatypes.resources.StateConstants {
 
@@ -194,18 +194,15 @@
     }
 
     /**
-     * Returns all the nodes from the builder.
+     * Returns all the nodes from the builder without loading it in the nodes 
cache of MMBase.
      * @return The nodes.
+     * @throws SearchQueryException when something fails on database level.
      */
-    public List<MMObjectNode> getNodes() {
-        try {
+    public List<MMObjectNode> getMMServerNodes() throws SearchQueryException {
             List<MMObjectNode> nodes = storageConnector.getNodes(new 
NodeSearchQuery(this), false);
             if (nodes != null) {
                 return nodes;
             }
-        } catch (SearchQueryException e) {
-            log.error(e);
-        }
         return new ArrayList<MMObjectNode>();
     }
     
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to