|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ntnu.item.jt.system.ThreadHandler
public class ThreadHandler
Responsible for handling threaded parallel malware scan. Keeps track of a set of scanners and records which have replied.
Scanner.run()
Constructor Summary | |
---|---|
ThreadHandler(ArrayList<Scanner> scanners)
Instantiates a ThreadHandler. |
Method Summary | |
---|---|
ArrayList<ScanResult> |
executeMalware(File malwareSample)
Starts scanner threads which executes a malware and attempts to read the real-time anti-virus log file. |
ArrayList<ScanResult> |
performScan(File malwareSample)
Starts scan threads and waits for them to report back. |
void |
reportResult(AVUpdateResult rsr)
Callback function for threads responsible for performing update of one AV engine. |
void |
reportResult(ScanResult sr)
Callback method for scan threads. |
ArrayList<AVUpdateResult> |
updateScanners()
Update virus definitions for the scanners associated with this thread handler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadHandler(ArrayList<Scanner> scanners)
scanners
- the list of scanners to be used for scan operations.Method Detail |
---|
public void reportResult(ScanResult sr)
ScanThreadCallback
reportResult
in interface ScanThreadCallback
sr
- result of the scan for the reporting engine.public void reportResult(AVUpdateResult rsr)
AVUpdateThreadCallback
reportResult
in interface AVUpdateThreadCallback
rsr
- object containing a description of the update result.public ArrayList<AVUpdateResult> updateScanners()
Scanner.updateAV()
,
Scanner.startThreadedAVUpdate(AVUpdateThreadCallback)
public ArrayList<ScanResult> executeMalware(File malwareSample)
malwareSample
- referece to the file to be executed.
Scanner.executeMalwareSample(File, boolean, boolean)
,
Scanner.startThreadedMalwareExecution(File, boolean, ScanThreadCallback)
public ArrayList<ScanResult> performScan(File malwareSample)
malwareSample
- malware sample to be scanned.
Scanner.scan(File, boolean, boolean)
,
Scanner.startThreadedScan(File, boolean, ScanThreadCallback)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |