]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/pools/listener/class_DefaultListenerPool.php
Exceptions, interfaces and many classes added/rewritten:
[hub.git] / application / hub / main / pools / listener / class_DefaultListenerPool.php
index fce149e502d089873739c727f21097db4836d2c2..99579c55cee87fcf04318f5c9d8152aa0917b3c7 100644 (file)
@@ -66,6 +66,25 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
                        $listenerInstance->getListenPort() . ' added to listener pool.'
                );
        }
+
+       /**
+        * Run the shutdown seqeuence by a Visitor Pattern
+        *
+        * @return      void
+        */
+       public function doShutdown () {
+               // Debug message
+               $this->debugOutput('POOL: Shutting down listener pool - START');
+
+               // Get a new visitor
+               $visitorInstance = ObjectFactory::createObjectByConfiguredName('listener_pool_visitor_class');
+
+               // Start visiting
+               $this->accept($visitorInstance);
+
+               // Debug message
+               $this->debugOutput('POOL: Shutting down listener pool - FINISHED');
+       }
 }
 
 // [EOF]