public class UriDeploymentScannerManager extends Object implements UriDeploymentScannerContext
| Constructor and Description |
|---|
UriDeploymentScannerManager(String igniteInstanceName,
URI uri,
File deployDir,
long freq,
FilenameFilter filter,
GridUriDeploymentScannerListener lsnr,
IgniteLogger log,
UriDeploymentScanner scanner)
Creates new scanner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels scanner execution.
|
File |
createTempFile(String fileName,
File tmpDir)
Creates temp file in temp directory.
|
File |
getDeployDirectory()
Gets temporary deployment directory.
|
FilenameFilter |
getFilter()
Gets filter for found files.
|
GridUriDeploymentScannerListener |
getListener()
Gets deployment listener.
|
IgniteLogger |
getLogger()
Gets scanner logger.
|
URI |
getUri()
Gets deployment URI.
|
boolean |
isCancelled()
Tests whether scanner was cancelled before or not.
|
boolean |
isFirstScan()
Tests whether first scan completed or not.
|
void |
join()
Joins scanner thread.
|
void |
start()
Starts scanner.
|
String |
toString() |
public UriDeploymentScannerManager(String igniteInstanceName, URI uri, File deployDir, long freq, FilenameFilter filter, GridUriDeploymentScannerListener lsnr, IgniteLogger log, UriDeploymentScanner scanner)
igniteInstanceName - Ignite instance name.uri - URI which scanner should looks after.deployDir - Temporary deployment directory.freq - Scan frequency.filter - Found files filter.lsnr - Scanner listener which should be notifier about changes.log - Logger.scanner - Scanner.public void start()
public void cancel()
public void join()
public boolean isCancelled()
isCancelled in interface UriDeploymentScannerContexttrue if scanner was cancelled and false
otherwise.public File createTempFile(String fileName, File tmpDir) throws IOException
createTempFile in interface UriDeploymentScannerContextfileName - File name.tmpDir - dir to creating file.IOException - if error occur.public boolean isFirstScan()
isFirstScan in interface UriDeploymentScannerContexttrue if first scan has been already completed and
false otherwise.public URI getUri()
getUri in interface UriDeploymentScannerContextpublic File getDeployDirectory()
getDeployDirectory in interface UriDeploymentScannerContextpublic FilenameFilter getFilter()
getFilter in interface UriDeploymentScannerContextpublic GridUriDeploymentScannerListener getListener()
getListener in interface UriDeploymentScannerContextpublic IgniteLogger getLogger()
getLogger in interface UriDeploymentScannerContext
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.30 Release Date : February 17 2026