Class ProfileSession
- java.lang.Object
-
- org.flowable.engine.test.profiler.ProfileSession
-
public class ProfileSession extends Object
- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,List<CommandExecutionResult>>
commandExecutionResults
protected ThreadLocal<CommandExecutionResult>
currentCommandExecution
protected Date
endTime
protected String
name
protected Date
startTime
protected long
totalTime
-
Constructor Summary
Constructors Constructor Description ProfileSession(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommandExecution(String classFqn, CommandExecutionResult commandExecutionResult)
Map<String,CommandStats>
calculateSummaryStatistics()
void
clearCurrentCommandExecution()
Map<String,List<CommandExecutionResult>>
getCommandExecutions()
CommandExecutionResult
getCurrentCommandExecution()
Date
getEndTime()
String
getName()
Date
getStartTime()
long
getTotalTime()
void
setCommandExecutions(Map<String,List<CommandExecutionResult>> commandExecutionResults)
void
setCurrentCommandExecution(CommandExecutionResult commandExecutionResult)
void
setEndTime(Date endTimeStamp)
void
setName(String name)
void
setStartTime(Date startTime)
void
setTotalTime(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()
-
-