Class AndesServerShutDownListener

java.lang.Object
org.wso2.carbon.andes.listeners.AndesServerShutDownListener
All Implemented Interfaces:
org.wso2.carbon.core.ServerShutdownHandler

public class AndesServerShutDownListener extends Object implements org.wso2.carbon.core.ServerShutdownHandler
Any specific things that need to be done before the server is shutdown should be handled by this handler. Please note that this is not intended for doing cleanup on bundle deactivation. That should be done within each respective bundle. Any pre-shutdown work that needs to be done, should be done here.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AndesServerShutDownListener(org.osgi.framework.ServiceRegistration qpidService)
    Need to keep reference of QpidService so that we can unregister it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Before the shut down process begins, we need to close any and all dependent services threads that could be affected by unavailability of dependencies activated within the server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AndesServerShutDownListener

      public AndesServerShutDownListener(org.osgi.framework.ServiceRegistration qpidService)
      Need to keep reference of QpidService so that we can unregister it.
      Parameters:
      qpidService -
  • Method Details

    • invoke

      public void invoke()
      Before the shut down process begins, we need to close any and all dependent services threads that could be affected by unavailability of dependencies activated within the server.
      Specified by:
      invoke in interface org.wso2.carbon.core.ServerShutdownHandler