Class ProfileSession
- java.lang.Object
-
- org.activiti.engine.test.profiler.ProfileSession
-
public class ProfileSession extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<CommandExecutionResult>>commandExecutionResultsprotected ThreadLocal<CommandExecutionResult>currentCommandExecutionprotected DateendTimeprotected Stringnameprotected DatestartTimeprotected longtotalTime
-
Constructor Summary
Constructors Constructor Description ProfileSession(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCommandExecution(String classFqn, CommandExecutionResult commandExecutionResult)Map<String,CommandStats>calculateSummaryStatistics()voidclearCurrentCommandExecution()Map<String,List<CommandExecutionResult>>getCommandExecutions()CommandExecutionResultgetCurrentCommandExecution()DategetEndTime()StringgetName()DategetStartTime()longgetTotalTime()voidsetCommandExecutions(Map<String,List<CommandExecutionResult>> commandExecutionResults)voidsetCurrentCommandExecution(CommandExecutionResult commandExecutionResult)voidsetEndTime(Date endTimeStamp)voidsetName(String name)voidsetStartTime(Date startTime)voidsetTotalTime(long totalTime)
-
-
-
Field Detail
-
name
protected String name
-
startTime
protected Date startTime
-
endTime
protected Date endTime
-
totalTime
protected long totalTime
-
currentCommandExecution
protected ThreadLocal<CommandExecutionResult> currentCommandExecution
-
commandExecutionResults
protected Map<String,List<CommandExecutionResult>> commandExecutionResults
-
-
Constructor Detail
-
ProfileSession
public ProfileSession(String name)
-
-
Method Detail
-
getCurrentCommandExecution
public CommandExecutionResult getCurrentCommandExecution()
-
setCurrentCommandExecution
public void setCurrentCommandExecution(CommandExecutionResult commandExecutionResult)
-
clearCurrentCommandExecution
public void clearCurrentCommandExecution()
-
addCommandExecution
public void addCommandExecution(String classFqn, CommandExecutionResult commandExecutionResult)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getStartTime
public Date getStartTime()
-
setStartTime
public void setStartTime(Date startTime)
-
getEndTime
public Date getEndTime()
-
setEndTime
public void setEndTime(Date endTimeStamp)
-
getTotalTime
public long getTotalTime()
-
setTotalTime
public void setTotalTime(long totalTime)
-
getCommandExecutions
public Map<String,List<CommandExecutionResult>> getCommandExecutions()
-
setCommandExecutions
public void setCommandExecutions(Map<String,List<CommandExecutionResult>> commandExecutionResults)
-
calculateSummaryStatistics
public Map<String,CommandStats> calculateSummaryStatistics()
-
-