com.application.areca.context
Class ProcessReport

java.lang.Object
  extended by com.application.areca.context.ProcessReport

public class ProcessReport
extends java.lang.Object

Contains reporting data.
ProcessReports are created during backup/recovery/merge processes.

Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  long dataFlowStart
          Start date used to compute the data flow
protected  long dataFlowStop
          Stop date used to compute the data flow
protected  int deletedFiles
          Number of files that have not been found in the source directory --> That means that they have been deleted from the disk
protected  int filteredEntries
          Number of files which have been filtered
protected  boolean hasErrors
          Tells whether the process has errors (true by default - set to "false" during commit)
protected  boolean hasWarnings
          Tells whether the process has warnings
protected  int ignoredFiles
          Ignored files (because not modified)
protected  RecoveryResult recoveryResult
          Archives which have been restored during the recovery/merge process
protected  int savedFiles
          Number of really stored files
protected  long startMillis
          Process start date (ms)
protected  AbstractRecoveryTarget target
           
protected  int unfilteredDirectories
          Number of processed directories
protected  int unfilteredFiles
          Number of processed files
 
Constructor Summary
ProcessReport(AbstractRecoveryTarget target)
           
 
Method Summary
 void addDeletedFile()
           
 void addIgnoredFile()
           
 void addSavedFile()
           
 long getDataFlowStart()
           
 long getDataFlowStop()
           
 long getDataFlowTimeInSecond()
           
 int getDeletedFiles()
           
 int getFilteredEntries()
           
 int getIgnoredFiles()
           
 int getProcessedEntries()
           
 RecoveryResult getRecoveryResult()
           
 int getSavedFiles()
           
 java.util.GregorianCalendar getStartDate()
           
 long getStartMillis()
           
 AbstractRecoveryTarget getTarget()
           
 int getUnfilteredDirectories()
           
 int getUnfilteredFiles()
           
 boolean hasErrors()
           
 boolean hasWarnings()
           
 void reset()
          Resets all counters ...
 void setDeletedFiles(int deletedFiles)
           
 void setFilteredEntries(int filteredEntries)
           
 void setHasErrors(boolean hasErrors)
           
 void setHasWarnings(boolean hasWarnings)
           
 void setRecoveryResult(RecoveryResult recoveryResult)
           
 void setUnfilteredDirectories(int unfilteredDirectories)
           
 void setUnfilteredFiles(int unfilteredFiles)
           
 void startDataFlowTimer()
           
 void stopDataFlowTimer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ignoredFiles

protected int ignoredFiles
Ignored files (because not modified)


savedFiles

protected int savedFiles
Number of really stored files


filteredEntries

protected int filteredEntries
Number of files which have been filtered


deletedFiles

protected int deletedFiles
Number of files that have not been found in the source directory --> That means that they have been deleted from the disk


unfilteredDirectories

protected int unfilteredDirectories
Number of processed directories


dataFlowStart

protected long dataFlowStart
Start date used to compute the data flow


dataFlowStop

protected long dataFlowStop
Stop date used to compute the data flow


unfilteredFiles

protected int unfilteredFiles
Number of processed files


recoveryResult

protected RecoveryResult recoveryResult
Archives which have been restored during the recovery/merge process


startMillis

protected long startMillis
Process start date (ms)


target

protected AbstractRecoveryTarget target

hasErrors

protected boolean hasErrors
Tells whether the process has errors (true by default - set to "false" during commit)


hasWarnings

protected boolean hasWarnings
Tells whether the process has warnings

Constructor Detail

ProcessReport

public ProcessReport(AbstractRecoveryTarget target)
Method Detail

getTarget

public AbstractRecoveryTarget getTarget()

reset

public void reset()
Resets all counters ... except the duration counter


getRecoveryResult

public RecoveryResult getRecoveryResult()

setRecoveryResult

public void setRecoveryResult(RecoveryResult recoveryResult)

getStartDate

public java.util.GregorianCalendar getStartDate()

getIgnoredFiles

public int getIgnoredFiles()

startDataFlowTimer

public void startDataFlowTimer()

stopDataFlowTimer

public void stopDataFlowTimer()

getDataFlowTimeInSecond

public long getDataFlowTimeInSecond()

getProcessedEntries

public int getProcessedEntries()

getSavedFiles

public int getSavedFiles()

addSavedFile

public void addSavedFile()

addIgnoredFile

public void addIgnoredFile()

addDeletedFile

public void addDeletedFile()

setFilteredEntries

public void setFilteredEntries(int filteredEntries)

getStartMillis

public long getStartMillis()

getFilteredEntries

public int getFilteredEntries()

getUnfilteredDirectories

public int getUnfilteredDirectories()

getUnfilteredFiles

public int getUnfilteredFiles()

setUnfilteredDirectories

public void setUnfilteredDirectories(int unfilteredDirectories)

setUnfilteredFiles

public void setUnfilteredFiles(int unfilteredFiles)

getDataFlowStart

public long getDataFlowStart()

getDataFlowStop

public long getDataFlowStop()

hasErrors

public boolean hasErrors()

setHasErrors

public void setHasErrors(boolean hasErrors)

hasWarnings

public boolean hasWarnings()

setHasWarnings

public void setHasWarnings(boolean hasWarnings)

getDeletedFiles

public int getDeletedFiles()

setDeletedFiles

public void setDeletedFiles(int deletedFiles)