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()
Action
public void setState(ActionState state)
Action
public void handleEvent(ActionEvent event) throws InvalidStateTransitionException
Action
handleEvent
in interface Action
event
- ActionEventInvalidStateTransitionException
public ActionId getId()
Action
public long getStartTime()
Action
getStartTime
in interface Action
public void setStartTime(long startTime)
public long getLastUpdateTime()
Action
getLastUpdateTime
in interface Action
public void setLastUpdateTime(long lastUpdateTime)
public long getCompletionTime()
Action
getCompletionTime
in interface Action
public void setCompletionTime(long completionTime)
Copyright © 2022 Apache Software Foundation. All rights reserved.