Interface ReloadService

All Superinterfaces:
TimestampedService
All Known Implementing Classes:
ReloadComponent

public interface ReloadService extends TimestampedService
Service tracking reload related events or commands when installing a package.

WARNING: This interface is used by reflection in org.nuxeo.runtime.tomcat.dev.ReloadServiceInvoker.

Author:
Bogdan Stefanescu
  • Field Details

  • Method Details

    • reload

      void reload() throws InterruptedException
      Sends a runtime event with id RELOAD_EVENT_ID so that listeners can be notified that a reload has been done.

      Also calls reloadProperties() by default, but not other reload methods as they could alter the running application behaviour.

      Throws:
      InterruptedException
      Since:
      5.5
      See Also:
    • reloadProperties

      void reloadProperties() throws IOException
      Reloads runtime framework properties
      Throws:
      IOException
    • reloadSeamComponents

      void reloadSeamComponents()
      Sends a runtime event with id RELOAD_SEAM_EVENT_ID
      Since:
      5.5
    • flush

      void flush()
      Sends a runtime event with id FLUSH_EVENT_ID so that listeners can be notified that a flush is needed (after a reload for instance).

      Also calls flushJaasCache() by default, but not other flush methods as they could alter the running application behaviour.

      Since:
      5.5
      See Also:
    • lastFlushed

      Long lastFlushed()
      Returns the last time one of the flush commands where called on this service instance (flush() or flushJaasCache() or flushSeamComponents(), or null if never called.
      Since:
      5.6
    • flushJaasCache

      void flushJaasCache()
      Sends an event that can trigger reset of JaasCache.
    • flushSeamComponents

      void flushSeamComponents()
      Sends a runtime event with id FLUSH_SEAM_EVENT_ID.
      Since:
      5.6
    • reloadBundles

      ReloadResult reloadBundles(ReloadContext context) throws org.osgi.framework.BundleException
      Called by ReloadServiceInvoker#hotReloadBundles.
      Returns:
      the result of hot reload operation
      Throws:
      org.osgi.framework.BundleException
      Since:
      9.3
    • runDeploymentPreprocessor

      void runDeploymentPreprocessor() throws IOException
      Runs the deployment preprocessor.
      Throws:
      IOException
      Since:
      5.6
      See Also:
    • getOSGIBundleName

      String getOSGIBundleName(File file)
      Returns the OSGI bundle name if given file can be identified as an OSGI bundle, or null. The OSGI bundle can be a jar or an exploded jar on file system.
      Since:
      5.6