|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.jmx.SqlSimpleFactoryMXBean
org.sqlproc.engine.spring.jmx.SpringEngineFactoryJmx
@ManagedResource(objectName="sql-processor:type=Engine",
description="The simplified JMX interface for the SQL Engine factory.")
public class SpringEngineFactoryJmxThe 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.
| Constructor Summary | |
|---|---|
SpringEngineFactoryJmx()
|
|
| Methods inherited from class org.sqlproc.engine.jmx.SqlSimpleFactoryMXBean |
|---|
setSqlEngineFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringEngineFactoryJmx()
| Method Detail |
|---|
@ManagedOperation(description="In the case the SQL Query Engines are not initialized, a new static instances are established in the cache.") @ManagedOperationParameters(value=) public int initQueryEngines(String names)
initQueryEngines in class SqlSimpleFactoryMXBean@ManagedOperation(description="In the case the SQL CRUD Engines are not initialized, a new static instances are established in the cache.") @ManagedOperationParameters(value=) public int initCrudEngines(String names)
initCrudEngines in class SqlSimpleFactoryMXBean@ManagedOperation(description="In the case the SQL Procedure Engines are not initialized, a new static instances are established in the cache.") @ManagedOperationParameters(value=) public int initProcedureEngines(String names)
initProcedureEngines in class SqlSimpleFactoryMXBean@ManagedOperation(description="In the case any dynamic SQL Query Engine is in the cache, the static one is re-established.") @ManagedOperationParameters(value=) public int resetQueryEngines(String names)
resetQueryEngines in class SqlSimpleFactoryMXBean@ManagedOperation(description="In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established.") @ManagedOperationParameters(value=) public int resetCrudEngines(String names)
resetCrudEngines in class SqlSimpleFactoryMXBean@ManagedOperation(description="In the case any dynamic SQL Procedure Engine is in the cache, the static one is re-established.") @ManagedOperationParameters(value=) public int resetProcedureEngines(String names)
resetProcedureEngines in class SqlSimpleFactoryMXBean
@ManagedOperation(description="A new dynamic SQL Query Engine instance is established in the cache. The static one is suppressed.")
@ManagedOperationParameters(value={,})
public void newQueryEngine(String name,
String sqlStatement)
throws SqlEngineException
newQueryEngine in class SqlSimpleFactoryMXBeanSqlEngineException
@ManagedOperation(description="A new dynamic SQL CRUD Engine instance is established in the cache. The static one is suppressed.")
@ManagedOperationParameters(value={,})
public void newCrudEngine(String name,
String sqlStatement)
newCrudEngine in class SqlSimpleFactoryMXBean
@ManagedOperation(description="A new dynamic SQL Procedure Engine instance is established in the cache. The static one is suppressed.")
@ManagedOperationParameters(value={,})
public void newProcedureEngine(String name,
String sqlStatement)
newProcedureEngine in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the collection of names of all initialized/constructed static SQL Engine instances.") public List<String> getNames()
getNames in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the collection of names of all initialized/constructed dynamic SQL Engine instances.") public List<String> getDynamicNames()
getDynamicNames in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the processing cache used for the selected SQL Query Engine.") public List<String> getQueryEngineProcessingCache(String name)
getQueryEngineProcessingCache in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the processing cache used for the selected SQL CRUD Engine.") public List<String> getCrudEngineProcessingCache(String name)
getCrudEngineProcessingCache in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the processing cache used for the selected SQL Procedure Engine.") public List<String> getProcedureEngineProcessingCache(String name)
getProcedureEngineProcessingCache in class SqlSimpleFactoryMXBean
@ManagedOperation(description="Clears the processing cache used for the selected SQL Query Engine.")
public int resetQueryEngineProcessingCache(String name,
String names)
resetQueryEngineProcessingCache in class SqlSimpleFactoryMXBean
@ManagedOperation(description="Clears the processing cache used for the selected SQL CRUD Engine.")
public int resetCrudEngineProcessingCache(String name,
String names)
resetCrudEngineProcessingCache in class SqlSimpleFactoryMXBean
@ManagedOperation(description="Clears the processing cache used for the selected SQL Procedure Engine.")
public int resetProcedureEngineProcessingCache(String name,
String names)
resetProcedureEngineProcessingCache in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the collection of names of all initialized/constructed static SQL Engine instances.") public boolean isLazyInit()
isLazyInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Sets the indicator to speed up the initialization process.") @ManagedOperationParameters(value=) public void setLazyInit(boolean lazyInit)
setLazyInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the indicator the initialization process should be done asynchronously.") public Boolean getAsyncInit()
getAsyncInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Sets the indicator the initialization process should be done asynchronously") @ManagedOperationParameters(value=) public void setAsyncInit(Boolean asyncInit)
setAsyncInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the initialization threshold. The engines, which usage is at least this number should be initialized directly.") public Integer getInitTreshold()
getInitTreshold in class SqlSimpleFactoryMXBean@ManagedOperation(description="Sets the initialization threshold. The engines, which usage is at least this number should be initialized directly.") @ManagedOperationParameters(value=) public void setInitTreshold(Integer initTreshold)
setInitTreshold in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the indicator that the most frequently used engines should be initialized preferentially.") public Boolean getInitInUsageOrder()
getInitInUsageOrder in class SqlSimpleFactoryMXBean@ManagedOperation(description="Sets the indicator that the most frequently used engines should be initialized preferentially.") @ManagedOperationParameters(value=) public void setInitInUsageOrder(Boolean initInUsageOrder)
setInitInUsageOrder in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the container of the Query Engines\' names, which has to be initialized.") public List<String> getQueryEnginesToInit()
getQueryEnginesToInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the container of the CRUD Engines\' names, which has to be initialized.") public List<String> getCrudEnginesToInit()
getCrudEnginesToInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the container of the Procedure Engines\' names, which has to be initialized.") public List<String> getProcedureEnginesToInit()
getProcedureEnginesToInit in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the Query Engine usage number.") @ManagedOperationParameters(value=) public int getQueryEngineUsage(String name)
getQueryEngineUsage in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the CRUD Engine usage number.") @ManagedOperationParameters(value=) public int getCrudEngineUsage(String name)
getCrudEngineUsage in class SqlSimpleFactoryMXBean@ManagedOperation(description="Returns the Procedure Engine usage number.") @ManagedOperationParameters(value=) public int getProcedureEngineUsage(String name)
getProcedureEngineUsage in class SqlSimpleFactoryMXBean@ManagedOperation(description="Resets the Query Engine usage number.") @ManagedOperationParameters(value=) public int resetQueryEngineUsage(String name)
resetQueryEngineUsage in class SqlSimpleFactoryMXBean@ManagedOperation(description="Resets the CRUD Engine usage number.") @ManagedOperationParameters(value=) public int resetCrudEngineUsage(String name)
resetCrudEngineUsage in class SqlSimpleFactoryMXBean@ManagedOperation(description="Resets the Procedure Engine usage number.") @ManagedOperationParameters(value=) public int resetProcedureEngineUsage(String name)
resetProcedureEngineUsage in class SqlSimpleFactoryMXBean@ManagedOperation(description="Loads the persisted configuration.") public void loadConfiguration()
loadConfiguration in class SqlSimpleFactoryMXBean@ManagedOperation(description="Persists the configuration into the external file.") public void storeConfiguration()
storeConfiguration in class SqlSimpleFactoryMXBean@ManagedOperation(description="Resets the state of the dynamic configuration instance.") public void clearConfiguration()
clearConfiguration in class SqlSimpleFactoryMXBean@ManagedOperation(description="Reset the engines\' usage counters.") public void clearConfigurationUsage()
clearConfigurationUsage in class SqlSimpleFactoryMXBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||