]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/tasks/cruncher/class_CruncherWorkUnitFetcherTask.php
Updated 'core'.
[hub.git] / application / hub / main / tasks / cruncher / class_CruncherWorkUnitFetcherTask.php
index d8bca71d9073dfdd4acecaa62d870a625935cf35..87068b0b285d36b835280426677235031ee52fda 100644 (file)
@@ -3,11 +3,11 @@
  * A WorkUnitFetcher task for crunchers which asks the cruncher to fetch work
  * units or, if enabled in configuration, work on some test units.
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
+ * @copyright  Copyright (c) 2011 - 2014 Cruncher Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -47,11 +47,10 @@ class CruncherWorkUnitFetcherTask extends BaseTask implements Taskable, Visitabl
        }
 
        /**
-        * Accepts the visitor to process the visit "request"
+        * Accepts the visitor to process the visitor
         *
         * @param       $visitorInstance        An instance of a Visitor class
         * @return      void
-        * @todo        Maybe visit some sub-objects
         */
        public function accept (Visitor $visitorInstance) {
                // Visit this task
@@ -75,6 +74,16 @@ class CruncherWorkUnitFetcherTask extends BaseTask implements Taskable, Visitabl
                 */
                Registry::getRegistry()->getInstance('cruncher')->doFetchWorkUnits();
        }
+
+       /**
+        * Shuts down the task
+        *
+        * @return      void
+        * @todo        0% done
+        */
+       public function doShutdown () {
+               self::createDebugInstance(__CLASS__)->debugOutput('TASK[' . __METHOD__ . ':' . __LINE__ . ']: Shutting down...');
+       }
 }
 
 // [EOF]