@ThreadSafe public class DownloadTask extends java.lang.Object implements java.util.concurrent.Callable<java.util.concurrent.Future<NvdApiProcessor>>
| Constructor and Description |
|---|
DownloadTask(java.lang.String url,
java.util.concurrent.ExecutorService processor,
CveDB cveDB,
Settings settings)
Simple constructor for the callable download task.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.Future<NvdApiProcessor> |
call() |
boolean |
isModified()
Returns true if the process task is for the modified json file from the
NVD API Cache.
|
public DownloadTask(java.lang.String url,
java.util.concurrent.ExecutorService processor,
CveDB cveDB,
Settings settings)
url - the file to downloadprocessor - the processor service to submit the downloaded files tocveDB - the CVE DB to use to store the vulnerability datasettings - a reference to the global settings object; this is
necessary so that when the thread is started the dependencies have a
correct reference to the global settings.public java.util.concurrent.Future<NvdApiProcessor> call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<java.util.concurrent.Future<NvdApiProcessor>>java.lang.Exceptionpublic boolean isModified()
true if the process task is for the modified data;
otherwise falseCopyright© 2012-21 Jeremy Long. All Rights Reserved.