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_REPOSITORIES_ID |
static String |
RELOAD_SEAM_EVENT_ID |
static String |
RELOAD_TOPIC |
Modifier and Type | Method and Description |
---|---|
String |
deployBundle(File file)
Deploys bundle to the runtime, without reloading resources
|
String |
deployBundle(File file,
boolean reloadResources)
Deploys bundle to the runtime, gives possibility to control resources reloading.
|
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. |
void |
reloadProperties()
Reloads runtime framework properties
|
void |
reloadRepository()
Reloads the Nuxeo repository configuration
|
void |
reloadSeamComponents()
Sends a runtime event with id
RELOAD_SEAM_EVENT_ID |
void |
runDeploymentPreprocessor()
Runs the deployment preprocessor
|
void |
undeployBundle(File file,
boolean reloadResources)
Undeploys bundle from the runtime, given the bundle resource, gives possibility to control resources reloading
|
void |
undeployBundle(String bundleName)
Undeploys bundle from the runtime, given the bundle filename
|
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 RELOAD_REPOSITORIES_ID
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 reloadRepository() throws InterruptedException
InterruptedException
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 calledvoid flushJaasCache()
void flushSeamComponents()
FLUSH_SEAM_EVENT_ID
String deployBundle(File file) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
deployBundle(File, boolean)
String deployBundle(File file, boolean reloadResources) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void undeployBundle(File file, boolean reloadResources) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void undeployBundle(String bundleName) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void runDeploymentPreprocessor() throws IOException
IOException
@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 © 2017 Nuxeo. All rights reserved.