Package org.alfresco.repo.action
Class RunningAction
- java.lang.Object
-
- org.alfresco.repo.action.RunningAction
-
public class RunningAction extends java.lang.ObjectResponsible for tracking the invocation of an action.- Author:
- Alex Miller
-
-
Constructor Summary
Constructors Constructor Description RunningAction(Action action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActionName()longgetElapsedTime()java.util.UUIDgetId()java.lang.StringgetThread()booleanhasError()voidsetException(java.lang.Throwable e)Called by theActionServiceImplif the action generates an exception during invocation.
-
-
-
Constructor Detail
-
RunningAction
public RunningAction(Action action)
- Parameters:
action- The action being run
-
-
Method Detail
-
getActionName
public java.lang.String getActionName()
- Returns:
- The name of the action this object is tracking
-
getThread
public java.lang.String getThread()
- Returns:
- The name of thread the action is being run on
-
getId
public java.util.UUID getId()
- Returns:
- The generated id for the action invocation
-
getElapsedTime
public long getElapsedTime()
- Returns:
- The time since the action was started
-
setException
public void setException(java.lang.Throwable e)
Called by theActionServiceImplif the action generates an exception during invocation.
-
hasError
public boolean hasError()
- Returns:
- true, if setException was called
-
-