Package org.alfresco.repo.action
Class RunningAction
java.lang.Object
org.alfresco.repo.action.RunningAction
Responsible for tracking the invocation of an action.
- Author:
- Alex Miller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()booleanhasError()voidCalled by theActionServiceImplif the action generates an exception during invocation.
-
Constructor Details
-
RunningAction
- Parameters:
action- The action being run
-
-
Method Details
-
getActionName
- Returns:
- The name of the action this object is tracking
-
getThread
- Returns:
- The name of thread the action is being run on
-
getId
- Returns:
- The generated id for the action invocation
-
getElapsedTime
public long getElapsedTime()- Returns:
- The time since the action was started
-
setException
Called by theActionServiceImplif the action generates an exception during invocation. -
hasError
public boolean hasError()- Returns:
- true, if setException was called
-