public class VirtualRoot extends Object implements ch.sourcepond.io.fileobserver.spi.RelocationObserver
| Constructor and Description |
|---|
VirtualRoot() |
VirtualRoot(DedicatedFileSystemFactory pDedicatedFileSystemFactory,
ListenerManager pManager,
PathProcessingQueues pPathProcessingQueues) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(Config pConfig) |
void |
addHook(ch.sourcepond.io.fileobserver.api.KeyDeliveryHook pHook) |
void |
addListener(ch.sourcepond.io.fileobserver.api.PathChangeListener pListener)
Whiteboard bind-method for
PathChangeListener services exported by any client bundle. |
void |
addRoot(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory)
Whiteboard bind-method for
WatchedDirectory services exported by any client bundle. |
void |
deactivate() |
void |
destinationChanged(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory,
Path pPrevious) |
void |
initExecutors(ch.sourcepond.commons.smartswitch.api.SmartSwitchBuilderFactory pFactory) |
void |
removeFileSystem(DedicatedFileSystem pDedicatedFileSystem)
Removes the
DedicatedFileSystem instance specified from
this virtual root. |
void |
removeHook(ch.sourcepond.io.fileobserver.api.KeyDeliveryHook pHook) |
void |
removeListener(ch.sourcepond.io.fileobserver.api.PathChangeListener pObserver)
Whiteboard unbind-method
PathChangeListener services exported by any client bundle. |
void |
removeRoot(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory)
Whiteboard unbind-method
WatchedDirectory services exported by any client bundle. |
void |
setConfig(Config pConfig) |
void |
setResourcesFactory(ch.sourcepond.io.checksum.api.ResourcesFactory pResourcesFactory) |
public VirtualRoot()
public VirtualRoot(DedicatedFileSystemFactory pDedicatedFileSystemFactory, ListenerManager pManager, PathProcessingQueues pPathProcessingQueues)
public void activate(Config pConfig)
public void deactivate()
public void setConfig(Config pConfig)
public void setResourcesFactory(ch.sourcepond.io.checksum.api.ResourcesFactory pResourcesFactory)
public void initExecutors(ch.sourcepond.commons.smartswitch.api.SmartSwitchBuilderFactory pFactory)
public void addListener(ch.sourcepond.io.fileobserver.api.PathChangeListener pListener)
PathChangeListener services exported by any client bundle. This
method is called when a client exports a service which implements the PathChangeListener interface.pListener - File observer service to be registered.public void removeListener(ch.sourcepond.io.fileobserver.api.PathChangeListener pObserver)
PathChangeListener services exported by any client bundle. This method is
called when a client unregisters a service which implements the PathChangeListener interface.pObserver - File observer service to be unregistered.public void addHook(ch.sourcepond.io.fileobserver.api.KeyDeliveryHook pHook)
public void removeHook(ch.sourcepond.io.fileobserver.api.KeyDeliveryHook pHook)
public void addRoot(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory)
WatchedDirectory services exported by any client bundle. This
method is called when a client exports a service which implements the WatchedDirectory interface.pWatchedDirectory - Watched-directory service to be registered.public void removeRoot(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory)
WatchedDirectory services exported by any client bundle. This method is
called when a client unregisters a service which implements the WatchedDirectory interface.pWatchedDirectory - Watched-directory service to be unregistered.public void destinationChanged(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pWatchedDirectory,
Path pPrevious)
throws IOException
destinationChanged in interface ch.sourcepond.io.fileobserver.spi.RelocationObserverIOExceptionpublic void removeFileSystem(DedicatedFileSystem pDedicatedFileSystem)
DedicatedFileSystem instance specified from
this virtual root. This happens when the WatchService of the
fs specified had been closed and a ClosedWatchServiceException has been
caused to be thrown because that in DedicatedFileSystem.run().pDedicatedFileSystem - Copyright © 2017 SourcePond. All rights reserved.