public class NvdApiProcessor extends java.lang.Object implements java.util.concurrent.Callable<NvdApiProcessor>
| Constructor and Description |
|---|
NvdApiProcessor(CveDB cveDB,
java.io.File jsonFile)
Create a new processor to put the NVD data into the database.
|
NvdApiProcessor(CveDB cveDB,
java.io.File jsonFile,
long startTime)
Create a new processor to put the NVD data into the database.
|
| Modifier and Type | Method and Description |
|---|---|
NvdApiProcessor |
call() |
long |
getDurationMillis()
Calculates how long the update process took.
|
public NvdApiProcessor(CveDB cveDB, java.io.File jsonFile, long startTime)
cveDB - a reference to the database.jsonFile - the JSON data file to inject.startTime - the start time of the update process.public NvdApiProcessor(CveDB cveDB, java.io.File jsonFile)
cveDB - a reference to the databasejsonFile - the JSON data file to inject.public NvdApiProcessor call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<NvdApiProcessor>java.lang.Exceptionpublic long getDurationMillis()
Copyright© 2012-21 Jeremy Long. All Rights Reserved.