Package org.nuxeo.runtime.reload
Interface ReloadService
- All Superinterfaces:
TimestampedService
- All Known Implementing Classes:
ReloadComponent
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Sends a runtime event with idFLUSH_EVENT_ID
so that listeners can be notified that a flush is needed (after a reload for instance).void
Sends an event that can trigger reset of JaasCache.void
Sends a runtime event with idFLUSH_SEAM_EVENT_ID
.getOSGIBundleName
(File file) Returns the OSGI bundle name if given file can be identified as an OSGI bundle, or null.Returns the last time one of the flush commands where called on this service instance (flush()
orflushJaasCache()
orflushSeamComponents()
, or null if never called.void
reload()
Sends a runtime event with idRELOAD_EVENT_ID
so that listeners can be notified that a reload has been done.reloadBundles
(ReloadContext context) Called by ReloadServiceInvoker#hotReloadBundles.void
Reloads runtime framework propertiesvoid
Sends a runtime event with idRELOAD_SEAM_EVENT_ID
void
Runs the deployment preprocessor.Methods inherited from interface org.nuxeo.runtime.service.TimestampedService
getLastModified, setLastModified
-
Field Details
-
RELOAD_TOPIC
- See Also:
-
FLUSH_EVENT_ID
- See Also:
-
BEFORE_RELOAD_EVENT_ID
- See Also:
-
RELOAD_EVENT_ID
- See Also:
-
AFTER_RELOAD_EVENT_ID
- See Also:
-
FLUSH_SEAM_EVENT_ID
- See Also:
-
RELOAD_SEAM_EVENT_ID
- See Also:
-
-
Method Details
-
reload
Sends a runtime event with idRELOAD_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
Reloads runtime framework properties- Throws:
IOException
-
reloadSeamComponents
void reloadSeamComponents()Sends a runtime event with idRELOAD_SEAM_EVENT_ID
- Since:
- 5.5
-
flush
void flush()Sends a runtime event with idFLUSH_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()
orflushJaasCache()
orflushSeamComponents()
, 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 idFLUSH_SEAM_EVENT_ID
.- Since:
- 5.6
-
reloadBundles
Called by ReloadServiceInvoker#hotReloadBundles.- Returns:
- the result of hot reload operation
- Throws:
org.osgi.framework.BundleException
- Since:
- 9.3
-
runDeploymentPreprocessor
Runs the deployment preprocessor.- Throws:
IOException
- Since:
- 5.6
- See Also:
-
getOSGIBundleName
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
-