public class ProfileSession extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,List<CommandExecutionResult>> |
commandExecutionResults |
protected ThreadLocal<CommandExecutionResult> |
currentCommandExecution |
protected Date |
endTime |
protected String |
name |
protected Date |
startTime |
protected long |
totalTime |
Constructor and Description |
---|
ProfileSession(String name) |
Modifier and Type | Method and 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) |
protected String name
protected Date startTime
protected Date endTime
protected long totalTime
protected ThreadLocal<CommandExecutionResult> currentCommandExecution
protected Map<String,List<CommandExecutionResult>> commandExecutionResults
public ProfileSession(String name)
public CommandExecutionResult getCurrentCommandExecution()
public void setCurrentCommandExecution(CommandExecutionResult commandExecutionResult)
public void clearCurrentCommandExecution()
public void addCommandExecution(String classFqn, CommandExecutionResult commandExecutionResult)
public String getName()
public void setName(String name)
public Date getStartTime()
public void setStartTime(Date startTime)
public Date getEndTime()
public void setEndTime(Date endTimeStamp)
public long getTotalTime()
public void setTotalTime(long totalTime)
public Map<String,List<CommandExecutionResult>> getCommandExecutions()
public void setCommandExecutions(Map<String,List<CommandExecutionResult>> commandExecutionResults)
public Map<String,CommandStats> calculateSummaryStatistics()
Copyright © 2017 Alfresco. All rights reserved.