public class CommandProgressImpl extends ProgressStatusImpl implements CommandProgress, Serializable
CommandProgress.| Modifier and Type | Class and Description |
|---|---|
class |
CommandProgressImpl.LastChangedMessage |
ProgressStatusBase.ChildProgressStatuschildren, completed, currentStepCount, id, name, parent, totalStepCountEVENT_PROGRESSSTATUS_CHANGE, EVENT_PROGRESSSTATUS_STATE| Constructor and Description |
|---|
CommandProgressImpl(String name,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Indicates the command is complete and no further progress status will
be delivered.
|
void |
complete(String message)
Indicates the command is complete and no further progress status will
be delivered.
|
ProgressStatusMirroringImpl |
createMirroringChild(int allocatedSteps)
Creates child for mirroring (supplemental commands)
|
protected void |
fireEvent(ProgressStatusEvent event)
Fires
ProgressStatusEvent to parent. |
Date |
getEndTime()
Timestamp of command complete event or
null for running command |
String |
getId()
Id is unique for any ProgressStatuses.
|
String |
getLastMessage() |
String |
getName() |
Date |
getStartTime()
Timestamp of command creation
|
boolean |
isSpinnerActive() |
void |
setEventBroker(AdminCommandEventBroker eventBroker) |
doCreateChildallocateStapsForChildProcess, completeSilently, computeCompletePortion, computeCompleteSteps, computeSumSteps, createChild, createChild, createChild, findById, getChildProgressStatuses, getChildren, getCurrentStepCount, getParrent, getRemainingStepCount, getTotalStepCount, isComplete, progress, progress, progress, progress, setCurrentStepCount, setTotalStepCount, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeCompletePortion, computeSumStepscreateChild, createChild, getRemainingStepCount, getTotalStepCount, isComplete, progress, progress, progress, progress, setCurrentStepCount, setTotalStepCountprotected void fireEvent(ProgressStatusEvent event)
ProgressStatusBaseProgressStatusEvent to parent.fireEvent in class ProgressStatusBasepublic void setEventBroker(AdminCommandEventBroker eventBroker)
setEventBroker in interface CommandProgresspublic ProgressStatusMirroringImpl createMirroringChild(int allocatedSteps)
CommandProgresscreateMirroringChild in interface CommandProgresspublic Date getEndTime()
CommandProgressnull for running commandgetEndTime in interface CommandProgresspublic Date getStartTime()
CommandProgressgetStartTime in interface CommandProgresspublic String getId()
ProgressStatusgetId in interface CommandProgressgetId in interface ProgressStatusgetId in class ProgressStatusBasepublic String getName()
getName in interface CommandProgressgetName in class ProgressStatusBasepublic String getLastMessage()
getLastMessage in interface CommandProgresspublic void complete()
ProgressStatuscomplete() on all child ProgressStatus objects.
If this method is not invoked prior to the command completing the CLI
framework will implicitly invoke complete() for the ProgressStatus
associated with the command.complete in interface ProgressStatuscomplete in class ProgressStatusBasepublic void complete(String message)
ProgressStatuscomplete() on all child ProgressStatus objects.
If this method is not invoked prior to the command completing the CLI
framework will implicitly invoke complete() for the ProgressStatus
associated with the command.complete in interface ProgressStatuscomplete in class ProgressStatusBasemessage - to be displayed to the user.public boolean isSpinnerActive()
isSpinnerActive in interface CommandProgressCopyright © 2017. All rights reserved.