Package backupmanager
Class BackupProgress
java.lang.Object
backupmanager.BackupProgress
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
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
ConstructorsConstructorDescriptionBackupProgress(BackupStream backupStream, BackupAction backupAction, BackupProgress.STATE state) Bckup progress.BackupProgress(BackupStream backupStream, BackupAction backupAction, BackupProgress.STATE state, int n1, int n2, String msg) Bckup progress. - 
Method Summary
 
- 
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 backupn2- generally the id of the unit currently working onmsg- some sort of text, e.g. name of file.
 
 - 
 - 
Method Details
- 
getBackupStream
- Returns:
 - the backupStream
 
 - 
getBackupAction
- Returns:
 - the backupAction
 
 - 
getState
- Returns:
 - the state
 
 - 
getN1
public int getN1()- Returns:
 - the n1
 
 - 
getN2
public int getN2()- Returns:
 - the n2
 
 - 
getMsg
- Returns:
 - the msg
 
 - 
getPercent
public int getPercent()Get n1/n2 as a percentage.- Returns:
 
 
 -