org.sqlproc.engine.spring.jmx
Class SpringEngineFactoryJmx

java.lang.Object
  extended by org.sqlproc.engine.jmx.SqlSimpleFactoryJmx
      extended by org.sqlproc.engine.spring.jmx.SpringEngineFactoryJmx
All Implemented Interfaces:
SqlSimpleFactoryMXBean

@ManagedResource(objectName="sql-processor:type=Engine",
                 description="The simplified JMX interface for the SQL Engine factory.")
public class SpringEngineFactoryJmx
extends SqlSimpleFactoryJmx
implements SqlSimpleFactoryMXBean

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.

Author:
Vladimir Hudec

Field Summary
 
Fields inherited from class org.sqlproc.engine.jmx.SqlSimpleFactoryJmx
OK
 
Constructor Summary
SpringEngineFactoryJmx()
           
 
Method Summary
 String getCrudEngineProcessingCache(String name)
          
 String getDynamicNames()
          
 String getNames()
          
 String getProcedureEngineProcessingCache(String name)
          
 String getQueryEngineProcessingCache(String name)
          
 String initCrudEngines(String names)
          
 String initProcedureEngines(String names)
          
 String initQueryEngines(String names)
          
 boolean isLazyInit()
          
 String newCrudEngine(String name, String sqlStatement)
          
 String newProcedureEngine(String name, String sqlStatement)
          
 String newQueryEngine(String name, String sqlStatement)
          
 String resetCrudEngineProcessingCache(String name, String names)
          
 String resetCrudEngines(String names)
          
 String resetProcedureEngineProcessingCache(String name, String names)
          
 String resetProcedureEngines(String names)
          
 String resetQueryEngineProcessingCache(String name, String names)
          
 String resetQueryEngines(String names)
          
 
Methods inherited from class org.sqlproc.engine.jmx.SqlSimpleFactoryJmx
setSqlEngineFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringEngineFactoryJmx

public SpringEngineFactoryJmx()
Method Detail

initQueryEngines

@ManagedOperation(description="In the case the SQL Query Engines are not initialized, a new static instances are established in the cache.")
@ManagedOperationParameters(value=)
public String initQueryEngines(String names)

Specified by:
initQueryEngines in interface SqlSimpleFactoryMXBean
Overrides:
initQueryEngines in class SqlSimpleFactoryJmx

initCrudEngines

@ManagedOperation(description="In the case the SQL CRUD Engines are not initialized, a new static instances are established in the cache.")
@ManagedOperationParameters(value=)
public String initCrudEngines(String names)

Specified by:
initCrudEngines in interface SqlSimpleFactoryMXBean
Overrides:
initCrudEngines in class SqlSimpleFactoryJmx

initProcedureEngines

@ManagedOperation(description="In the case the SQL Procedure Engines are not initialized, a new static instances are established in the cache.")
@ManagedOperationParameters(value=)
public String initProcedureEngines(String names)

Specified by:
initProcedureEngines in interface SqlSimpleFactoryMXBean
Overrides:
initProcedureEngines in class SqlSimpleFactoryJmx

resetQueryEngines

@ManagedOperation(description="In the case any dynamic SQL Query Engine is in the cache, the static one is re-established.")
@ManagedOperationParameters(value=)
public String resetQueryEngines(String names)

Specified by:
resetQueryEngines in interface SqlSimpleFactoryMXBean
Overrides:
resetQueryEngines in class SqlSimpleFactoryJmx

resetCrudEngines

@ManagedOperation(description="In the case any dynamic SQL CRUD Engine is in the cache, the static one is re-established.")
@ManagedOperationParameters(value=)
public String resetCrudEngines(String names)

Specified by:
resetCrudEngines in interface SqlSimpleFactoryMXBean
Overrides:
resetCrudEngines in class SqlSimpleFactoryJmx

resetProcedureEngines

@ManagedOperation(description="In the case any dynamic SQL Procedure Engine is in the cache, the static one is re-established.")
@ManagedOperationParameters(value=)
public String resetProcedureEngines(String names)

Specified by:
resetProcedureEngines in interface SqlSimpleFactoryMXBean
Overrides:
resetProcedureEngines in class SqlSimpleFactoryJmx

newQueryEngine

@ManagedOperation(description="A new dynamic SQL Query Engine instance is established in the cache. The static one is suppressed.")
@ManagedOperationParameters(value={,})
public String newQueryEngine(String name,
                                                                         String sqlStatement)
                      throws SqlEngineException

Specified by:
newQueryEngine in interface SqlSimpleFactoryMXBean
Overrides:
newQueryEngine in class SqlSimpleFactoryJmx
Throws:
SqlEngineException

newCrudEngine

@ManagedOperation(description="A new dynamic SQL CRUD Engine instance is established in the cache. The static one is suppressed.")
@ManagedOperationParameters(value={,})
public String newCrudEngine(String name,
                                                                        String sqlStatement)

Specified by:
newCrudEngine in interface SqlSimpleFactoryMXBean
Overrides:
newCrudEngine in class SqlSimpleFactoryJmx

newProcedureEngine

@ManagedOperation(description="A new dynamic SQL Procedure Engine instance is established in the cache. The static one is suppressed.")
@ManagedOperationParameters(value={,})
public String newProcedureEngine(String name,
                                                                             String sqlStatement)

Specified by:
newProcedureEngine in interface SqlSimpleFactoryMXBean
Overrides:
newProcedureEngine in class SqlSimpleFactoryJmx

getNames

@ManagedOperation(description="Returns the collection of names of all initialized/constructed static SQL Engine instances.")
public String getNames()

Specified by:
getNames in interface SqlSimpleFactoryMXBean
Overrides:
getNames in class SqlSimpleFactoryJmx

getDynamicNames

@ManagedOperation(description="Returns the collection of names of all initialized/constructed dynamic SQL Engine instances.")
public String getDynamicNames()

Specified by:
getDynamicNames in interface SqlSimpleFactoryMXBean
Overrides:
getDynamicNames in class SqlSimpleFactoryJmx

isLazyInit

@ManagedOperation(description="Returns the collection of names of all initialized/constructed static SQL Engine instances.")
public boolean isLazyInit()

Specified by:
isLazyInit in interface SqlSimpleFactoryMXBean
Overrides:
isLazyInit in class SqlSimpleFactoryJmx

getQueryEngineProcessingCache

@ManagedOperation(description="Returns the processing cache used for the selected SQL Query Engine.")
public String getQueryEngineProcessingCache(String name)

Specified by:
getQueryEngineProcessingCache in interface SqlSimpleFactoryMXBean
Overrides:
getQueryEngineProcessingCache in class SqlSimpleFactoryJmx

getCrudEngineProcessingCache

@ManagedOperation(description="Returns the processing cache used for the selected SQL CRUD Engine.")
public String getCrudEngineProcessingCache(String name)

Specified by:
getCrudEngineProcessingCache in interface SqlSimpleFactoryMXBean
Overrides:
getCrudEngineProcessingCache in class SqlSimpleFactoryJmx

getProcedureEngineProcessingCache

@ManagedOperation(description="Returns the processing cache used for the selected SQL Procedure Engine.")
public String getProcedureEngineProcessingCache(String name)

Specified by:
getProcedureEngineProcessingCache in interface SqlSimpleFactoryMXBean
Overrides:
getProcedureEngineProcessingCache in class SqlSimpleFactoryJmx

resetQueryEngineProcessingCache

@ManagedOperation(description="Clears the processing cache used for the selected SQL Query Engine.")
public String resetQueryEngineProcessingCache(String name,
                                                               String names)

Specified by:
resetQueryEngineProcessingCache in interface SqlSimpleFactoryMXBean
Overrides:
resetQueryEngineProcessingCache in class SqlSimpleFactoryJmx

resetCrudEngineProcessingCache

@ManagedOperation(description="Clears the processing cache used for the selected SQL CRUD Engine.")
public String resetCrudEngineProcessingCache(String name,
                                                              String names)

Specified by:
resetCrudEngineProcessingCache in interface SqlSimpleFactoryMXBean
Overrides:
resetCrudEngineProcessingCache in class SqlSimpleFactoryJmx

resetProcedureEngineProcessingCache

@ManagedOperation(description="Clears the processing cache used for the selected SQL Procedure Engine.")
public String resetProcedureEngineProcessingCache(String name,
                                                                   String names)

Specified by:
resetProcedureEngineProcessingCache in interface SqlSimpleFactoryMXBean
Overrides:
resetProcedureEngineProcessingCache in class SqlSimpleFactoryJmx


Copyright © 2015. All rights reserved.