public class FileEventTracker extends DefaultComponent
ThreadEventHandler| Modifier and Type | Class and Description |
|---|---|
static class |
FileEventTracker.EnableThreadsTracking |
protected class |
FileEventTracker.GCDelegate |
protected class |
FileEventTracker.ThreadDelegate |
| Modifier and Type | Field and Description |
|---|---|
protected static org.nuxeo.runtime.trackers.files.FileEventTracker.SafeFileDeleteStrategy |
deleteStrategy |
protected FileEventListener |
filesListener |
protected FileEventTracker.GCDelegate |
gc |
protected static org.apache.commons.logging.Log |
log |
protected static FileEventTracker |
self |
protected ThreadLocal<FileEventTracker.ThreadDelegate> |
threads |
protected ThreadEventListener |
threadsListener |
lastModified| Constructor and Description |
|---|
FileEventTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext). |
protected FileEventHandler |
onContext() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
static void |
registerProtectedPath(String path)
Registers a protected path under which files should not be deleted
|
protected void |
resetThreadDelegate() |
protected void |
setThreadDelegate(boolean isLongRunning) |
void |
start(ComponentContext context)
Start the component.
|
getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, stop, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStartedprotected static final org.apache.commons.logging.Log log
protected static org.nuxeo.runtime.trackers.files.FileEventTracker.SafeFileDeleteStrategy deleteStrategy
protected final FileEventTracker.GCDelegate gc
protected static FileEventTracker self
protected final ThreadLocal<FileEventTracker.ThreadDelegate> threads
protected final ThreadEventListener threadsListener
protected final FileEventListener filesListener
public FileEventTracker()
public static void registerProtectedPath(String path)
path - public void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic int getApplicationStartedOrder()
ComponentComponent.applicationStarted(org.nuxeo.runtime.model.ComponentContext).
Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
public void start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentprotected FileEventHandler onContext()
protected void setThreadDelegate(boolean isLongRunning)
protected void resetThreadDelegate() throws IllegalStateException
IllegalStateExceptionCopyright © 2018 Nuxeo. All rights reserved.