public interface FileDistribution extends FileChangeWatcher
FileDistributionHandler
s.FileChangeWatcher.FileChangedListener
Modifier and Type | Method and Description |
---|---|
AgentCacheState |
getAgentCacheState()
Accessor for our
AgentCacheState . |
FileFilter |
getDistributionFileFilter()
Return a FileFilter that can be used to test whether the given file is
one that will be distributed.
|
FileDistributionHandler |
getHandler()
Get a
FileDistributionHandler for a new file
distribution. |
void |
scanDistributionFiles()
Scan the given directory for files that have been recently modified.
|
void |
setDirectory(Directory directory)
Update the distribution directory.
|
void |
setFileFilterPattern(Pattern distributionFileFilterPattern)
Update the pattern used to filter out files that shouldn't be distributed.
|
addFileChangedListener
AgentCacheState getAgentCacheState()
AgentCacheState
.FileDistributionHandler getHandler()
FileDistributionHandler
for a new file
distribution.
The FileDistributionHandler updates our simple model of the remote cache state. Callers should only use one FileDistributionHandler at a time for a given FileDistribution. Using multiple instances concurrently will result in undefined behaviour.
void scanDistributionFiles()
FileFilter getDistributionFileFilter()
void setDirectory(Directory directory)
directory
- The base distribution directory.void setFileFilterPattern(Pattern distributionFileFilterPattern)
distributionFileFilterPattern
- -
The filter. Files with names that match this pattern will be
filtered out.Copyright © 2000-2014. All Rights Reserved.