Class CommandProgressImpl

  • All Implemented Interfaces:
    Serializable, org.glassfish.api.admin.CommandProgress, org.glassfish.api.admin.ProgressStatus

    public class CommandProgressImpl
    extends org.glassfish.api.admin.progress.ProgressStatusImpl
    implements org.glassfish.api.admin.CommandProgress, Serializable
    Basic and probably only implementation of CommandProgress.
    Author:
    mmares
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  CommandProgressImpl.LastChangedMessage  
      • Nested classes/interfaces inherited from class org.glassfish.api.admin.progress.ProgressStatusBase

        org.glassfish.api.admin.progress.ProgressStatusBase.ChildProgressStatus
    • Field Summary

      • Fields inherited from class org.glassfish.api.admin.progress.ProgressStatusBase

        children, completed, currentStepCount, id, name, parent, totalStepCount
      • Fields inherited from interface org.glassfish.api.admin.CommandProgress

        EVENT_PROGRESSSTATUS_CHANGE, EVENT_PROGRESSSTATUS_STATE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void complete()  
      void complete​(String message)  
      org.glassfish.api.admin.progress.ProgressStatusMirroringImpl createMirroringChild​(int allocatedSteps)  
      protected void fireEvent​(org.glassfish.api.admin.progress.ProgressStatusEvent event)  
      Date getEndTime()  
      String getId()  
      String getLastMessage()  
      String getName()  
      Date getStartTime()  
      boolean isSpinnerActive()  
      void setEventBroker​(org.glassfish.api.admin.AdminCommandEventBroker eventBroker)  
      • Methods inherited from class org.glassfish.api.admin.progress.ProgressStatusImpl

        doCreateChild
      • Methods inherited from class org.glassfish.api.admin.progress.ProgressStatusBase

        allocateStapsForChildProcess, completeSilently, computeCompletePortion, computeCompleteSteps, computeSumSteps, createChild, createChild, createChild, findById, getChildProgressStatuses, getChildren, getCurrentStepCount, getParrent, getRemainingStepCount, getTotalStepCount, isComplete, progress, progress, progress, progress, setCurrentStepCount, setTotalStepCount, toString
      • Methods inherited from interface org.glassfish.api.admin.CommandProgress

        computeCompletePortion, computeSumSteps
      • Methods inherited from interface org.glassfish.api.admin.ProgressStatus

        createChild, createChild, getRemainingStepCount, getTotalStepCount, isComplete, progress, progress, progress, progress, setCurrentStepCount, setTotalStepCount
    • Constructor Detail

      • CommandProgressImpl

        public CommandProgressImpl​(String name,
                                   String id)
    • Method Detail

      • fireEvent

        protected void fireEvent​(org.glassfish.api.admin.progress.ProgressStatusEvent event)
        Overrides:
        fireEvent in class org.glassfish.api.admin.progress.ProgressStatusBase
      • setEventBroker

        public void setEventBroker​(org.glassfish.api.admin.AdminCommandEventBroker eventBroker)
        Specified by:
        setEventBroker in interface org.glassfish.api.admin.CommandProgress
      • createMirroringChild

        public org.glassfish.api.admin.progress.ProgressStatusMirroringImpl createMirroringChild​(int allocatedSteps)
        Specified by:
        createMirroringChild in interface org.glassfish.api.admin.CommandProgress
      • getEndTime

        public Date getEndTime()
        Specified by:
        getEndTime in interface org.glassfish.api.admin.CommandProgress
      • getStartTime

        public Date getStartTime()
        Specified by:
        getStartTime in interface org.glassfish.api.admin.CommandProgress
      • getId

        public String getId()
        Specified by:
        getId in interface org.glassfish.api.admin.CommandProgress
        Specified by:
        getId in interface org.glassfish.api.admin.ProgressStatus
        Overrides:
        getId in class org.glassfish.api.admin.progress.ProgressStatusBase
      • getName

        public String getName()
        Specified by:
        getName in interface org.glassfish.api.admin.CommandProgress
        Overrides:
        getName in class org.glassfish.api.admin.progress.ProgressStatusBase
      • getLastMessage

        public String getLastMessage()
        Specified by:
        getLastMessage in interface org.glassfish.api.admin.CommandProgress
      • complete

        public void complete()
        Specified by:
        complete in interface org.glassfish.api.admin.ProgressStatus
        Overrides:
        complete in class org.glassfish.api.admin.progress.ProgressStatusBase
      • complete

        public void complete​(String message)
        Specified by:
        complete in interface org.glassfish.api.admin.ProgressStatus
        Overrides:
        complete in class org.glassfish.api.admin.progress.ProgressStatusBase
      • isSpinnerActive

        public boolean isSpinnerActive()
        Specified by:
        isSpinnerActive in interface org.glassfish.api.admin.CommandProgress