Package org.hotrod.torcs
Class Torcs
- java.lang.Object
-
- org.hotrod.torcs.Torcs
-
@Component public class Torcs extends Object
-
-
Constructor Summary
Constructors Constructor Description Torcs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidallowLOBsInPlans(boolean allow)voiddeactivate()HighestResponseTimeRankinggetDefaultRanking()StringgetEstimatedExecutionPlan(QueryExecution execution)StringgetEstimatedExecutionPlan(QueryExecution execution, int variation)booleanisActive()booleanisLobsAllowedInPlans()voidrecord(DataSourceReference dsr, String sql, Map<Integer,IndexSetter> indexSetters, Map<String,NameSetter> nameSetters, int responseTime, Throwable t)voidregister(QueryExecutionObserver observer)voidreset()voidsetResetSchedule(long initial, long period)
-
-
-
Method Detail
-
register
public void register(QueryExecutionObserver observer)
-
setResetSchedule
public void setResetSchedule(long initial, long period)
-
activate
public void activate()
-
deactivate
public void deactivate()
-
isActive
public boolean isActive()
-
allowLOBsInPlans
public void allowLOBsInPlans(boolean allow)
-
isLobsAllowedInPlans
public boolean isLobsAllowedInPlans()
-
reset
public void reset()
-
getDefaultRanking
public HighestResponseTimeRanking getDefaultRanking()
-
record
public void record(DataSourceReference dsr, String sql, Map<Integer,IndexSetter> indexSetters, Map<String,NameSetter> nameSetters, int responseTime, Throwable t)
-
getEstimatedExecutionPlan
public String getEstimatedExecutionPlan(QueryExecution execution) throws SQLException, PlanRetrieverFactory.UnsupportedTorcsDatabaseException, CouldNotRetrievePlanException
-
getEstimatedExecutionPlan
public String getEstimatedExecutionPlan(QueryExecution execution, int variation) throws SQLException, PlanRetrieverFactory.UnsupportedTorcsDatabaseException, CouldNotRetrievePlanException
-
-