public interface ReloadService extends TimestampedService
Modifier and Type | Field and Description |
---|---|
static String |
AFTER_RELOAD_EVENT_ID |
static String |
BEFORE_RELOAD_EVENT_ID |
static String |
FLUSH_EVENT_ID |
static String |
FLUSH_SEAM_EVENT_ID |
static String |
RELOAD_EVENT_ID |
static String |
RELOAD_SEAM_EVENT_ID |
static String |
RELOAD_TOPIC |
static String |
USE_COMPAT_HOT_RELOAD
This property allows to use the former way to hot reload Nuxeo server.
|
Modifier and Type | Method and Description |
---|---|
default void |
deployBundle(File file)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
default void |
deployBundle(File file,
boolean reloadResources)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
default void |
deployBundles(List<File> files)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
void |
deployBundles(List<File> files,
boolean reloadResources)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
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). |
void |
flushJaasCache()
Sends an event that can trigger reset of JaasCache.
|
void |
flushSeamComponents()
Sends a runtime event with id
FLUSH_SEAM_EVENT_ID . |
String |
getOSGIBundleName(File file)
Returns the OSGI bundle name if given file can be identified as an OSGI bundle, or null.
|
void |
installWebResources(File file)
Deprecated.
since 5.6: use
runDeploymentPreprocessor() method instead, now re-deploys all jars so that
the nuxeo.war holds the same content than it would at startup. This method is called by reflection by
ReloadServiceInvoker#hotDeployBundles. Keep it as compatibility code until NXP-9642 is done. |
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. |
void |
reload()
Sends a runtime event with id
RELOAD_EVENT_ID so that listeners can be notified that a reload has been
done. |
ReloadResult |
reloadBundles(ReloadContext context)
Called by ReloadServiceInvoker#hotReloadBundles.
|
void |
reloadProperties()
Reloads runtime framework properties
|
void |
reloadSeamComponents()
Sends a runtime event with id
RELOAD_SEAM_EVENT_ID |
void |
runDeploymentPreprocessor()
Runs the deployment preprocessor.
|
default void |
undeployBundle(String bundleName)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
default void |
undeployBundle(String bundleName,
boolean reloadResources)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
default void |
undeployBundles(List<String> bundleNames)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
void |
undeployBundles(List<String> bundleNames,
boolean reloadResources)
Deprecated.
since 9.3 use
#reloadBundles(List, List) instead. Kept for backward compatibility. |
getLastModified, setLastModified
static final String RELOAD_TOPIC
static final String FLUSH_EVENT_ID
static final String BEFORE_RELOAD_EVENT_ID
static final String RELOAD_EVENT_ID
static final String AFTER_RELOAD_EVENT_ID
static final String FLUSH_SEAM_EVENT_ID
static final String RELOAD_SEAM_EVENT_ID
static final String USE_COMPAT_HOT_RELOAD
void reload() throws InterruptedException
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.
InterruptedException
reloadProperties()
void reloadProperties() throws IOException
IOException
void reloadSeamComponents()
RELOAD_SEAM_EVENT_ID
void flush()
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.
#flushJaasCache()}
Long lastFlushed()
flush()
or
flushJaasCache()
or flushSeamComponents()
, or null if never called.void flushJaasCache()
void flushSeamComponents()
FLUSH_SEAM_EVENT_ID
.@Deprecated default void deployBundle(File file) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
deployBundles(List, boolean)
@Deprecated default void deployBundle(File file, boolean reloadResources) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
deployBundles(List, boolean)
@Deprecated default void deployBundles(List<File> files) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
deployBundles(List, boolean)
@Deprecated void deployBundles(List<File> files, boolean reloadResources) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
@Deprecated default void undeployBundle(String bundleName) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
undeployBundles(List, boolean)
@Deprecated default void undeployBundle(String bundleName, boolean reloadResources) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
undeployBundles(List, boolean)
@Deprecated default void undeployBundles(List<String> bundleNames) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
undeployBundles(List, boolean)
@Deprecated void undeployBundles(List<String> bundleNames, boolean reloadResources) throws org.osgi.framework.BundleException
#reloadBundles(List, List)
instead. Kept for backward compatibility.org.osgi.framework.BundleException
ReloadResult reloadBundles(ReloadContext context) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void runDeploymentPreprocessor() throws IOException
IOException
DeploymentPreprocessor}
@Deprecated void installWebResources(File file) throws IOException
runDeploymentPreprocessor()
method instead, now re-deploys all jars so that
the nuxeo.war holds the same content than it would at startup. This method is called by reflection by
ReloadServiceInvoker#hotDeployBundles. Keep it as compatibility code until NXP-9642 is done.IOException
String getOSGIBundleName(File file)
Copyright © 2018 Nuxeo. All rights reserved.