Class CommandProgressImpl

java.lang.Object
org.glassfish.api.admin.progress.ProgressStatusBase
org.glassfish.api.admin.progress.ProgressStatusImpl
com.sun.enterprise.admin.progress.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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     

    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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    complete(String message)
     
    org.glassfish.api.admin.progress.ProgressStatusMirroringImpl
    createMirroringChild(int allocatedSteps)
     
    protected void
    fireEvent(org.glassfish.api.admin.progress.ProgressStatusEvent event)
     
     
     
     
     
     
    boolean
     
    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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    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 Details

    • CommandProgressImpl

      public CommandProgressImpl(String name, String id)
  • Method Details

    • 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