edu.ntnu.item.jt.system
Class AVUpdateResult

java.lang.Object
  extended by edu.ntnu.item.jt.system.AVUpdateResult

public class AVUpdateResult
extends Object

Container for information regarding the result of a antivirus engine update information.

Author:
Jøran Vagnby Lillesand

Field Summary
static int FULL_LOG_RETURNED
          Indicates that the whole log file has been returned for manual analysis.
static int LOG_NOT_SUPPORTED
          Indicates that the XML states that the update operation does not report to log.
static int NO_LOG_FOUND
          Indicates that no update log file was found.
static int NOT_INITIATED
          Indicates that the update operation was not initiated.
static int OPERATION_TIMEOUT
          Indicates that the operation timed out.
static int SUCCESS_INDICATOR_NOT_FOUND
          Indicates that the given success indicator was not found in the log file.
static int UPDATE_NOT_SUPPORTED
          Indicates that the XML states that the engine does not support automatic update through PowerScan.
static int UPDATE_SUCCESSFUL
          Indicates that the update operation was successful.
 
Constructor Summary
protected AVUpdateResult(Scanner scanner)
          Constructor for AVUpdateResult.
 
Method Summary
 String getAVEngineName()
          Get the name of the AV engine involved in this update operation.
 int getResultState()
          Get the result state of the update operation.
 ArrayList<String> getResultString()
           
 Scanner getScanner()
          Get the scanner object involved in the update operation.
 void setResultState(int resultState)
          Set he result state of the update operation
 void setResultString(ArrayList<String> resultString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_INITIATED

public static final int NOT_INITIATED
Indicates that the update operation was not initiated.

See Also:
Constant Field Values

UPDATE_SUCCESSFUL

public static final int UPDATE_SUCCESSFUL
Indicates that the update operation was successful.

See Also:
Constant Field Values

SUCCESS_INDICATOR_NOT_FOUND

public static final int SUCCESS_INDICATOR_NOT_FOUND
Indicates that the given success indicator was not found in the log file.

See Also:
Constant Field Values

NO_LOG_FOUND

public static final int NO_LOG_FOUND
Indicates that no update log file was found.

See Also:
Constant Field Values

FULL_LOG_RETURNED

public static final int FULL_LOG_RETURNED
Indicates that the whole log file has been returned for manual analysis.

See Also:
Constant Field Values

LOG_NOT_SUPPORTED

public static final int LOG_NOT_SUPPORTED
Indicates that the XML states that the update operation does not report to log.

See Also:
Constant Field Values

UPDATE_NOT_SUPPORTED

public static final int UPDATE_NOT_SUPPORTED
Indicates that the XML states that the engine does not support automatic update through PowerScan.

See Also:
Constant Field Values

OPERATION_TIMEOUT

public static final int OPERATION_TIMEOUT
Indicates that the operation timed out.

See Also:
Constant Field Values
Constructor Detail

AVUpdateResult

protected AVUpdateResult(Scanner scanner)
Constructor for AVUpdateResult. Protected as only internal classes should generate results.

Parameters:
scanner - the scanner involved in the update operation.
Method Detail

getResultString

public ArrayList<String> getResultString()

setResultString

public void setResultString(ArrayList<String> resultString)

getAVEngineName

public String getAVEngineName()
Get the name of the AV engine involved in this update operation.

Returns:
name of the AV engine.

getScanner

public Scanner getScanner()
Get the scanner object involved in the update operation.

Returns:
scanner object involved in the update operation.

getResultState

public int getResultState()
Get the result state of the update operation.

Returns:
state of the update operation.

setResultState

public void setResultState(int resultState)
Set he result state of the update operation

Parameters:
resultState - state of the update operation.