Package backupmanager

Class BackupProgress

java.lang.Object
backupmanager.BackupProgress

public class BackupProgress extends Object
Class to send progress data to backup observers. The observer is primarily the dialog window, which will have a single observer for all streams and will have to farm out any notifications to it's appropriate sub components.
Author:
dg50
  • Constructor Details

    • BackupProgress

      public BackupProgress(BackupStream backupStream, BackupAction backupAction, BackupProgress.STATE state)
      Bckup progress.
      Parameters:
      backupStream -
      backupAction -
      state -
    • BackupProgress

      public BackupProgress(BackupStream backupStream, BackupAction backupAction, BackupProgress.STATE state, int n1, int n2, String msg)
      Bckup progress.
      Parameters:
      backupStream -
      backupAction -
      state -
      n1 - generally the total number of units to backup
      n2 - generally the id of the unit currently working on
      msg - some sort of text, e.g. name of file.
  • Method Details

    • getBackupStream

      public BackupStream getBackupStream()
      Returns:
      the backupStream
    • getBackupAction

      public BackupAction getBackupAction()
      Returns:
      the backupAction
    • getState

      public BackupProgress.STATE getState()
      Returns:
      the state
    • getN1

      public int getN1()
      Returns:
      the n1
    • getN2

      public int getN2()
      Returns:
      the n2
    • getMsg

      public String getMsg()
      Returns:
      the msg
    • getPercent

      public int getPercent()
      Get n1/n2 as a percentage.
      Returns: