streamcruncher.api
Interface StartupShutdownHook


public interface StartupShutdownHook

A Listener interface to listen to the lifecycle of the Kernel.


Method Summary
 void afterBootup()
           Invoked by the Kernel, after all the internal Components have started successfully but before the Input Event Streams and Queries that were registered in a previous run of the Kernel (if any), are re-registered by the Kernel.
 void beforeShutdown()
          Invoked by the Kernel, before all the internal Components are stopped.
 

Method Detail

afterBootup

void afterBootup()

Invoked by the Kernel, after all the internal Components have started successfully but before the Input Event Streams and Queries that were registered in a previous run of the Kernel (if any), are re-registered by the Kernel.

This method would be the correct place to register Aggregates etc.


beforeShutdown

void beforeShutdown()
Invoked by the Kernel, before all the internal Components are stopped. This also means before the Queries are stopped.



Copyright © 2006 - 2008 Ashwin Jayaprakash. All Rights Reserved. (Docs generated on 3-November-2007 )