| Constructor and Description |
|---|
ActionImpl(ActionId id,
long startTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCompletionTime()
Time when the Action completed
|
ActionId |
getId()
Get the Action ID for the action
|
long |
getLastUpdateTime()
Get the last update time of the Action when its progress status
was updated
|
long |
getStartTime()
Get Start Time of the action
|
ActionState |
getState()
Get the current state of the Action
|
void |
handleEvent(ActionEvent event)
Send a ActionEvent to the Action's StateMachine
|
void |
setCompletionTime(long completionTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setStartTime(long startTime) |
void |
setState(ActionState state)
Set the State of the Action
|
public ActionImpl(ActionId id, long startTime)
public ActionState getState()
Actionpublic void setState(ActionState state)
Actionpublic void handleEvent(ActionEvent event) throws InvalidStateTransitionException
ActionhandleEvent in interface Actionevent - ActionEventInvalidStateTransitionExceptionpublic ActionId getId()
Actionpublic long getStartTime()
ActiongetStartTime in interface Actionpublic void setStartTime(long startTime)
public long getLastUpdateTime()
ActiongetLastUpdateTime in interface Actionpublic void setLastUpdateTime(long lastUpdateTime)
public long getCompletionTime()
ActiongetCompletionTime in interface Actionpublic void setCompletionTime(long completionTime)
Copyright © 2022 Apache Software Foundation. All rights reserved.