|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.jmx.SqlSimpleFactoryJmx
public class SqlSimpleFactoryJmx
The implementation of 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 | |
|---|---|
static String |
OK
|
private SqlEngineFactory |
sqlEngineFactory
The SQL Engine factory instance |
| Constructor Summary | |
|---|---|
SqlSimpleFactoryJmx()
|
|
| Method Summary | |
|---|---|
private String |
collectionToString(Collection<String> collection)
|
String |
getCrudEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL CRUD Engine |
String |
getDynamicNames()
Returns the collection of names of all initialized/constructed dynamic SQL Engine instances. |
String |
getNames()
Returns the collection of names of all initialized/constructed static SQL Engine instances. |
String |
getProcedureEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL Procedure Engine |
String |
getQueryEngineProcessingCache(String name)
Returns the processing cache used for the selected SQL Query Engine |
String |
initCrudEngines(String names)
In the case the SQL CRUD Engines are not initialized, a new static instances are established in the cache. |
String |
initProcedureEngines(String names)
In the case the SQL Procedure Engines are not initialized, a new static instances are established in the cache. |
String |
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 |
String |
newCrudEngine(String name,
String sqlStatement)
A new dynamic SQL CRUD Engine instance is established in the cache. |
String |
newProcedureEngine(String name,
String sqlStatement)
A new dynamic SQL Procedure Engine instance is established in the cache. |
String |
newQueryEngine(String name,
String sqlStatement)
A new dynamic SQL Query Engine instance is established in the cache. |
String |
resetCrudEngineProcessingCache(String name,
String names)
Clears the processing cache used for the selected SQL CRUD Engine |
String |
resetCrudEngines(String names)
In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established. |
String |
resetProcedureEngineProcessingCache(String name,
String names)
Clears the processing cache used for the selected SQL Procedure Engine |
String |
resetProcedureEngines(String names)
In the case a dynamic SQL Procedure Engine is in the cache, the static one is re-established. |
String |
resetQueryEngineProcessingCache(String name,
String names)
Clears the processing cache used for the selected SQL Query Engine |
String |
resetQueryEngines(String names)
In the case any dynamic SQL Query Engine is in the cache, the static one is re-established. |
void |
setSqlEngineFactory(SqlEngineFactory sqlEngineFactory)
Sets the SQL Engine factory instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SqlEngineFactory sqlEngineFactory
public static final String OK
| Constructor Detail |
|---|
public SqlSimpleFactoryJmx()
| Method Detail |
|---|
public String initQueryEngines(String names)
initQueryEngines in interface SqlSimpleFactoryMXBeannames - the names of the required SQL Query Engines instances
public String initCrudEngines(String names)
initCrudEngines in interface SqlSimpleFactoryMXBeannames - the names of the required SQL CRUD Engines instances
public String initProcedureEngines(String names)
initProcedureEngines in interface SqlSimpleFactoryMXBeannames - the names of the required SQL Procedure Engines instances
public String resetQueryEngines(String names)
resetQueryEngines in interface SqlSimpleFactoryMXBeannames - the names of the required SQL Query Engines instances
public String resetCrudEngines(String names)
resetCrudEngines in interface SqlSimpleFactoryMXBeannames - the names of the required SQL CRUD Engines instances
public String resetProcedureEngines(String names)
resetProcedureEngines in interface SqlSimpleFactoryMXBeannames - the names of the required SQL Procedure Engines instances
public String newQueryEngine(String name,
String sqlStatement)
throws SqlEngineException
newQueryEngine in interface SqlSimpleFactoryMXBeanname - the name of the required SQL Query Engine instancesqlStatement - the new SQL statement, which is going to replace the original one
SqlEngineException
public String newCrudEngine(String name,
String sqlStatement)
newCrudEngine in interface SqlSimpleFactoryMXBeanname - the name of the required SQL CRUD Engine instancesqlStatement - the new SQL statement, which is going to replace the original one
public String newProcedureEngine(String name,
String sqlStatement)
newProcedureEngine in interface SqlSimpleFactoryMXBeanname - the name of the required SQL Procedure Engine instancesqlStatement - the new SQL statement, which is going to replace the original one
public String getNames()
getNames in interface SqlSimpleFactoryMXBeanpublic String getDynamicNames()
getDynamicNames in interface SqlSimpleFactoryMXBeanprivate String collectionToString(Collection<String> collection)
public boolean isLazyInit()
isLazyInit in interface SqlSimpleFactoryMXBeanpublic void setSqlEngineFactory(SqlEngineFactory sqlEngineFactory)
sqlEngineFactory - the SQL Engine factory instancepublic String getQueryEngineProcessingCache(String name)
getQueryEngineProcessingCache in interface SqlSimpleFactoryMXBeanname - the name of the required SQL Query Engine
public String getCrudEngineProcessingCache(String name)
getCrudEngineProcessingCache in interface SqlSimpleFactoryMXBeanname - the name of the required SQL CRUD Engine
public String getProcedureEngineProcessingCache(String name)
getProcedureEngineProcessingCache in interface SqlSimpleFactoryMXBeanname - the name of the required SQL Procedure Engine
public String resetQueryEngineProcessingCache(String name,
String names)
resetQueryEngineProcessingCache in interface SqlSimpleFactoryMXBeanname - the name of the required SQL Query Enginenames - the names of the processing cache entries to be cleared
public String resetCrudEngineProcessingCache(String name,
String names)
resetCrudEngineProcessingCache in interface SqlSimpleFactoryMXBeanname - the name of the required SQL CRUD Enginenames - the names of the processing cache entries to be cleared
public String resetProcedureEngineProcessingCache(String name,
String names)
resetProcedureEngineProcessingCache in interface SqlSimpleFactoryMXBeanname - the name of the required SQL Procedure Enginenames - the names of the processing cache entries to be cleared
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||