FileDocCategorySizeDatePackage
UpdateProgressManager.javaAPI DocGlassfish v2 API3892Fri May 04 22:35:04 BST 2007com.sun.enterprise.tools.upgrade.common

UpdateProgressManager

public class UpdateProgressManager extends Object
author
prakash

Fields Summary
private Vector
upgradeUpdateListeners
private static UpdateProgressManager
updateProgressManager
private boolean
continueUpgrade
Constructors Summary
private UpdateProgressManager()
Creates a new instance of UpdateProgressManager

    
           
      
        upgradeUpdateListeners = new java.util.Vector();
    
Methods Summary
public voidaddUpgradeUpdateListener(UpgradeUpdateListener listener)

        this.upgradeUpdateListeners.addElement(listener);
    
public booleancanContinueUpgrade()

        return this.continueUpgrade;
    
public static com.sun.enterprise.tools.upgrade.common.UpdateProgressManagergetProgressManager()

        if(updateProgressManager == null)
            updateProgressManager = new UpdateProgressManager();
        return updateProgressManager;
    
public voidprocessUpgradeUpdateEvent(int progressState)

        UpgradeUpdateEvent de = new UpgradeUpdateEvent(this, progressState);
        de.setProgressState(progressState);
        for(int i=0 ; i<this.upgradeUpdateListeners.size(); i++){
            ((UpgradeUpdateListener)upgradeUpdateListeners.elementAt(i)).upgradeProcessUpdate(de);
        }
    
public voidremoveUpgradeUpdateListener(UpgradeUpdateListener listener)

        this.upgradeUpdateListeners.removeElement(listener);
    
public voidsetContinueUpgrade(boolean state)

        this.continueUpgrade = state;