|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.jmx.SqlSimpleFactoryMXBean
public class SqlSimpleFactoryMXBean
The simplified JMX interface for the SQL Engine factory.
The factory can be based on Spring DI framework for example.
For more info please see the Tutorials.
| Field Summary | |
|---|---|
private SqlEngineFactory |
sqlEngineFactory
The SQL Engine factory instance |
| Constructor Summary | |
|---|---|
SqlSimpleFactoryMXBean()
|
|
| Method Summary | |
|---|---|
void |
clearConfiguration()
Resets the state of the dynamic configuration instance. |
void |
clearConfigurationUsage()
Reset the engines' usage counters. |
Boolean |
getAsyncInit()
Returns the indicator the initialization process should be done asynchronously |
private SqlEngineConfiguration |
getConfiguration()
Returns the dynamic SQL Processor configuration ant checks it's not null |
List<String> |
getCrudEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL CRUD Engine |
List<String> |
getCrudEnginesToInit()
Returns the container of the CRUD Engines' names, which has to be initialized. |
int |
getCrudEngineUsage(String name)
Returns the CRUD Engine usage number. |
List<String> |
getDynamicNames()
Returns the collection of names of all initialized/constructed dynamic SQL Engine instances. |
Boolean |
getInitInUsageOrder()
Returns the indicator that the most frequently used engines should be initialized preferentially |
Integer |
getInitTreshold()
Returns the initialization threshold. |
List<String> |
getNames()
Returns the collection of names of all initialized/constructed static SQL Engine instances. |
List<String> |
getProcedureEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL Procedure Engine |
List<String> |
getProcedureEnginesToInit()
Returns the container of the Procedure Engines' names, which has to be initialized. |
int |
getProcedureEngineUsage(String name)
Returns the Procedure Engine usage number. |
List<String> |
getQueryEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL Query Engine |
List<String> |
getQueryEnginesToInit()
Returns the container of the Query Engines' names, which has to be initialized. |
int |
getQueryEngineUsage(String name)
Returns the Query Engine usage number. |
int |
initCrudEngines(String names)
In the case the SQL CRUD Engines are not initialized, a new static instances are established in the cache. |
int |
initProcedureEngines(String names)
In the case the SQL Procedure Engines are not initialized, a new static instances are established in the cache. |
int |
initQueryEngines(String names)
In the case the SQL Query Engines are not initialized, a new static instances are established in the cache. |
boolean |
isLazyInit()
Returns the indicator to speed up the initialization process |
void |
loadConfiguration()
Loads the persisted configuration. |
void |
newCrudEngine(String name,
String sqlStatement)
A new dynamic SQL CRUD Engine instance is established in the cache. |
void |
newProcedureEngine(String name,
String sqlStatement)
A new dynamic SQL Procedure Engine instance is established in the cache. |
void |
newQueryEngine(String name,
String sqlStatement)
A new dynamic SQL Query Engine instance is established in the cache. |
int |
resetCrudEngineProcessingCache(String name,
String names)
Clears the processing cache used for the selected SQL CRUD Engine |
int |
resetCrudEngines(String names)
In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established. |
int |
resetCrudEngineUsage(String name)
Resets the CRUD Engine usage number. |
int |
resetProcedureEngineProcessingCache(String name,
String names)
Clears the processing cache used for the selected SQL Procedure Engine |
int |
resetProcedureEngines(String names)
In the case a dynamic SQL Procedure Engine is in the cache, the static one is re-established. |
int |
resetProcedureEngineUsage(String name)
Resets the Procedure Engine usage number. |
int |
resetQueryEngineProcessingCache(String name,
String names)
Clears the processing cache used for the selected SQL Query Engine |
int |
resetQueryEngines(String names)
In the case any dynamic SQL Query Engine is in the cache, the static one is re-established. |
int |
resetQueryEngineUsage(String name)
Resets the Query Engine usage number. |
void |
setAsyncInit(Boolean asyncInit)
Sets the indicator the initialization process should be done asynchronously |
void |
setInitInUsageOrder(Boolean initInUsageOrder)
Sets the indicator that the most frequently used engines should be initialized preferentially |
void |
setInitTreshold(Integer initTreshold)
Sets the initialization threshold. |
void |
setLazyInit(boolean lazyInit)
Sets the indicator to speed up the initialization process |
void |
setSqlEngineFactory(SqlEngineFactory sqlEngineFactory)
Sets the SQL Engine factory instance |
void |
storeConfiguration()
Persists the configuration into the external file. |
private List<String> |
toList(List<SqlEngineConfiguration.NameValue> namevals)
Converts list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SqlEngineFactory sqlEngineFactory
| Constructor Detail |
|---|
public SqlSimpleFactoryMXBean()
| Method Detail |
|---|
public int initQueryEngines(String names)
names - the names of the required SQL Query Engines instances
public int initCrudEngines(String names)
names - the names of the required SQL CRUD Engines instances
public int initProcedureEngines(String names)
names - the names of the required SQL Procedure Engines instances
public int resetQueryEngines(String names)
names - the names of the required SQL Query Engines instances
public int resetCrudEngines(String names)
names - the names of the required SQL CRUD Engines instances
public int resetProcedureEngines(String names)
names - the names of the required SQL Procedure Engines instances
public void newQueryEngine(String name,
String sqlStatement)
throws SqlEngineException
name - the name of the required SQL Query Engine instancesqlStatement - the new SQL statement, which is going to replace the original one
SqlEngineException
public void newCrudEngine(String name,
String sqlStatement)
name - the name of the required SQL CRUD Engine instancesqlStatement - the new SQL statement, which is going to replace the original one
public void newProcedureEngine(String name,
String sqlStatement)
name - the name of the required SQL Procedure Engine instancesqlStatement - the new SQL statement, which is going to replace the original onepublic List<String> getNames()
public List<String> getDynamicNames()
public List<String> getQueryEngineProcessingCache(String name)
name - the name of the required SQL Query Engine
public List<String> getCrudEngineProcessingCache(String name)
name - the name of the required SQL CRUD Engine
public List<String> getProcedureEngineProcessingCache(String name)
name - the name of the required SQL Procedure Engine
public int resetQueryEngineProcessingCache(String name,
String names)
name - the name of the required SQL Query Enginenames - the names of the processing cache entries to be cleared
public int resetCrudEngineProcessingCache(String name,
String names)
name - the name of the required SQL CRUD Enginenames - the names of the processing cache entries to be cleared
public int resetProcedureEngineProcessingCache(String name,
String names)
name - the name of the required SQL Procedure Enginenames - the names of the processing cache entries to be cleared
private SqlEngineConfiguration getConfiguration()
public boolean isLazyInit()
public void setLazyInit(boolean lazyInit)
lazyInit - the indicator to speed up the initialization processpublic Boolean getAsyncInit()
public void setAsyncInit(Boolean asyncInit)
asyncInit - the indicator the initialization process should be done asynchronouslypublic Integer getInitTreshold()
public void setInitTreshold(Integer initTreshold)
initTreshold - the initialization threshold. The engines, which usage is at least this number should be initialized
directlypublic Boolean getInitInUsageOrder()
public void setInitInUsageOrder(Boolean initInUsageOrder)
initInUsageOrder - the indicator that the most frequently used engines should be initialized preferentiallypublic void loadConfiguration()
public void storeConfiguration()
public void clearConfiguration()
public void clearConfigurationUsage()
private List<String> toList(List<SqlEngineConfiguration.NameValue> namevals)
namevals - the input list
public List<String> getQueryEnginesToInit()
public List<String> getCrudEnginesToInit()
public List<String> getProcedureEnginesToInit()
public int getQueryEngineUsage(String name)
name - the name of the SQL Query Engine
public int getCrudEngineUsage(String name)
name - the name of the SQL CRUD Engine
public int getProcedureEngineUsage(String name)
name - the name of the SQL Procedure Engine
public int resetQueryEngineUsage(String name)
name - the name of the SQL Query Engine
public int resetCrudEngineUsage(String name)
name - the name of the SQL CRUD Engine
public int resetProcedureEngineUsage(String name)
name - the name of the SQL Procedure Engine
public void setSqlEngineFactory(SqlEngineFactory sqlEngineFactory)
sqlEngineFactory - the SQL Engine factory instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||