public class SimulationInformation extends Object
addInformation(String)
.Modifier and Type | Field and Description |
---|---|
protected File |
file |
protected Properties |
info |
Constructor and Description |
---|
SimulationInformation(File file)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAllExportSize(long size) |
void |
addAllExportTime(long time) |
void |
addExportException(String exportName,
Throwable eee) |
void |
addExportSize(String exportName,
long size) |
void |
addExportTime(String exportName,
long time) |
void |
addInformation(String info)
Add additional simulation information.
|
void |
addRuleInitTime(String ruleName,
long time)
Add rule init time.
|
void |
addRulePostTime(String ruleName,
long time)
Add rule post operation time.
|
void |
addRulePreTime(String ruleName,
long time)
Add rule pre operation time time.
|
protected void |
addRuleTime(String keyName,
String ruleName,
long time)
Add rule time.
|
protected String |
exceptionToString(Throwable eee) |
long |
getAllExportSize() |
long |
getAllExportTime() |
String |
getException() |
protected Map<String,String> |
getExportExceptions()
Get all export exception in map.
|
long |
getExportSize(String exportName) |
protected Map<String,Long> |
getExportSizes()
Get all export size in map.
|
Map<String,Long> |
getExportTime()
Deprecated.
since 3.2.0.5, use
getExportTimes() instead |
long |
getExportTime(String exportName) |
protected Map<String,Long> |
getExportTimes()
Get all export time in map.
|
String |
getInfomation()
Deprecated.
since 3.2.0.5, use
getInformation() instead |
protected String |
getInformation()
Get other information.
|
protected long |
getLong(String prop) |
String |
getOptimizationUsage() |
long |
getRuleInitTime(String ruleName)
Get rule init operation time.
|
protected Set<String> |
getRuleNames()
Get rules names.
|
long |
getRulePostTime(String ruleName)
Get rule post operation time.
|
long |
getRulePreTime(String ruleName)
Get rule pre operation time.
|
protected long |
getRuleTime(String prefixName,
String ruleName)
Get rule operation time.
|
Date |
getSimulationEnd()
Get the date of simulation start.
|
Date |
getSimulationStart()
Get the date of simulation start.
|
String |
getStatistic() |
boolean |
hasError()
Return
true if an exception has been set. |
void |
reloadLocal()
Si les simulations ont été effectuée à distance, l'instance de SimulationInformation doit
se recharger avec les nouvelles informations à jour en fin de simulation.
|
void |
setException(Throwable eee) |
protected void |
setInfo(String key,
String value) |
void |
setOptimizationUsage(String v) |
void |
setSimulationEnd(Date date) |
void |
setSimulationStart(Date date) |
void |
setStatistic(String v) |
protected void |
store() |
String |
toString() |
protected Properties info
protected File file
public SimulationInformation(File file)
file
- simulation information output filepublic void reloadLocal()
protected void store()
public Date getSimulationStart()
public void setSimulationStart(Date date)
public Date getSimulationEnd()
public void setSimulationEnd(Date date)
public void addExportTime(String exportName, long time)
public void addExportSize(String exportName, long size)
public void addAllExportTime(long time)
public void addAllExportSize(long size)
protected Map<String,Long> getExportTimes()
protected Map<String,Long> getExportSizes()
protected Map<String,String> getExportExceptions()
public Map<String,Long> getExportTime()
getExportTimes()
insteadprotected long getLong(String prop)
public long getExportTime(String exportName)
public long getExportSize(String exportName)
public long getAllExportTime()
public long getAllExportSize()
protected void addRuleTime(String keyName, String ruleName, long time)
keyName
- (ie #RULE_TIME_INIT
, #RULE_TIME_PRE
, #RULE_TIME_POST
)ruleName
- rule nametime
- time to addpublic void addRuleInitTime(String ruleName, long time)
ruleName
- rule nametime
- time to addpublic void addRulePreTime(String ruleName, long time)
ruleName
- rule nametime
- time to addpublic void addRulePostTime(String ruleName, long time)
ruleName
- rule nametime
- time to addpublic long getRuleInitTime(String ruleName)
ruleName
- rule namepublic long getRulePreTime(String ruleName)
ruleName
- rule namepublic long getRulePostTime(String ruleName)
ruleName
- rule nameprotected long getRuleTime(String prefixName, String ruleName)
ruleName
- rule nameprotected Set<String> getRuleNames()
public String getStatistic()
public void setStatistic(String v)
public String getOptimizationUsage()
public void setOptimizationUsage(String v)
public String getException()
public void setException(Throwable eee)
public boolean hasError()
true
if an exception has been set.true
if there is an exceptionpublic String getInfomation()
getInformation()
insteadprotected String getInformation()
public void addInformation(String info)
info
- new infoCopyright © 1999–2020 CodeLutin. All rights reserved.