com.metamatrix.dqp.embedded.services
Class EmbeddedConfigurationService

java.lang.Object
  extended by com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
      extended by com.metamatrix.dqp.embedded.services.EmbeddedConfigurationService
All Implemented Interfaces:
ApplicationService, ClassLoaderManager, ConfigurationService

public class EmbeddedConfigurationService
extends EmbeddedBaseDQPService
implements ConfigurationService

A File based configuration service implementation Implementation notes - While loading the VDBs also keep track of Connector Bindings loaded separately - While loading the VDBs also keep track of Connector types loaded separately - The above list also should contain the list from server config file. - Onlu used get, save, delete of any configuration on public api

Since:
4.3

Field Summary
static java.lang.String PROPERTIES_URL
           
 
Fields inherited from class com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
SYSTEM_PHYSICAL_MODEL_NAME
 
Fields inherited from interface com.metamatrix.dqp.service.ConfigurationService
NEXT_VDB_VERSION, USER_DEFINED_FUNCTION_MODEL
 
Constructor Summary
EmbeddedConfigurationService()
           
 
Method Summary
 ConnectorBinding addConnectorBinding(java.lang.String deployedBindingName, ConnectorBinding binding, boolean replace)
          Add the connector binding to the persistent store
 VDBArchive addVDB(VDBArchive vdb, boolean replaceBindings)
          Add the VDB to the configuration
 void assignConnectorBinding(java.lang.String vdbName, java.lang.String version, java.lang.String modelName, ConnectorBinding[] bindings)
          Assign a connector binding to the Model
 void clearClassLoaderCache()
           
 void deleteConnectorBinding(java.lang.String deployedConnectorBindingName)
          Delete the connector binding from the persistent store
 void deleteConnectorType(java.lang.String deployedConnectorType)
          Delete the Given component type to the persistent store
 void deleteExtensionModule(java.lang.String extModuleName)
          Delete the extension module from the configuration with name supplied
 void deleteVDB(VDBArchive vdb)
          Delete the VDB from the underlying persistent mechanism used by this configuration service
 java.net.URL getBootStrapURL()
           
 java.lang.String getBufferMemorySize()
          Size of Memory in MB allocated to be used by the Resultset Management before disk buffering kicks in.
 AbstractClassLoaderManager getClassLoaderManager()
           
 java.util.Set<ServerConnection> getClientConnections()
          This returns the active client connections that have been made to the DQP
 java.lang.ClassLoader getCommonClassLoader(java.lang.String urls)
          Return the common class loader with the given urls appended
 java.net.URL getConfigFile()
          Gets the reference URL to the Configuration File for the DQP.
 ServerConnectionListener getConnectionListener()
          Client Connection Listener object for the service; This will get notifications about the connections currently available to DQP.
 java.lang.String getConnectorBatchSize()
          Gets the connector batch size
 ConnectorBinding getConnectorBinding(java.lang.String deployedBindingName)
          get the connector binding from the persistent store
 java.util.List getConnectorBindings()
          Get the list of connector bindings available in the configuration.
 ConnectorBindingType getConnectorType(java.lang.String connectorType)
          Get Component type for the given id
 java.util.List getConnectorTypes()
          Get list of all the connector types available in the System.
 java.util.Properties getDefaultProperties(ConnectorBinding binding)
          Get the default properties for the connector binding given.
 java.io.File getDiskBufferDirectory()
          Get the directory to use for the disk buffering
 java.net.URL getEncryptionKeyStore()
          Get the URL to the "metamatrixpki.keystore" file
 ExtensionModule getExtensionModule(java.lang.String extModuleName)
          Get the extension module by the given identifier
 java.util.List<ExtensionModule> getExtensionModules()
          Get the list of extension modules available in the store
 java.net.URL[] getExtensionPath()
          Retun the context class path to be used by all the extension modules to use.
 java.lang.String getInstanceIdenifier()
          Return some identifier which uniquely identifies the DQP.
 java.lang.String getLogLevel()
          Log Level
 java.lang.ClassLoader getPostDelegationClassLoader(java.lang.String urls)
          Return a distinct post delgation class loader - which may be cached.
 java.lang.String getProcessorBatchSize()
          Gets the processor batch size
 ConfigurationModelContainer getSystemConfiguration()
          Get the system Configuration object loaded from the configuration object, this is currently only needed to support the exportConfiguration admin call.
 java.util.Properties getSystemProperties()
          Get DQP properties
 java.net.URL getSystemVdb()
          Get the VDB contents for the "System.VDB"
 java.net.URL getUDFFile()
          Get the user defined functions file name
 VDBArchive getVDB(java.lang.String vdbName, java.lang.String vdbVersion)
          Get the list of VDB files available with the Configuration Service, this includes all status (active, inactive)
 java.net.URL[] getVDBLocations()
          Get path(s) for VDB(s) that are availble from the configuration to the DQP engine.
 java.util.List<VDBArchive> getVDBs()
          Get a list of available VDBS from the configuration
 java.io.File getWorkDir()
           
 void initializeService(java.util.Properties properties)
           
 boolean isFullyConfiguredVDB(VDBArchive vdb)
           
 void loadUDF()
          Load the User defined functions file
 void register(ConnectorBindingLifeCycleListener listener)
          Register a listener for the VDB life cycle events, and get notified for when vdb is loded and unloaded
 void register(VDBLifeCycleListener listener)
          Register a listener for the VDB life cycle events, and get notified for when vdb is loded and unloaded
 void saveConnectorType(ConnectorBindingType type)
          Add the Given component type to the persistent store
 void saveExtensionModule(ExtensionModule extModule)
          Save the given extension module
 void saveVDB(VDBArchive srcVdb, java.lang.String version)
          Save the given vdb file into underlying persistent mechanism used by this configuration service
 void setBootStrapURL(java.net.URL bootStrapURL)
           
 void setSystemProperty(java.lang.String key, java.lang.String value)
          Set System property (Contents of ServerConfig.xml file)
 void startService(ApplicationEnvironment environment)
           
 void stopService()
           
 void unloadUDF()
          Unload the UDF file at the end of the DQP, because the same JVM could be used to load another DQP and we do want the static function library hanging on to old function libraries
 void unregister(ConnectorBindingLifeCycleListener listener)
           
 void unregister(VDBLifeCycleListener listener)
           
 ConnectorBinding updateConnectorBinding(ConnectorBinding binding)
          Update the Connector Binding, the assumption here that we kept the name same
 void updateSystemProperties(java.util.Properties properties)
          Set several System properties (Contents of ServerConfig.xml file).
 boolean useDiskBuffering()
          Use disk for buffering for result set management during the processing
 boolean useExtensionClasspath()
          Use the extension classpath defined in the connector bindins and load jars in different class loader or in the same class loader as calling code
 
Methods inherited from class com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
getConfigurationService, initialize, isStarted, isValidVDB, lookupService, start, stop, vdbId, vdbId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.metamatrix.common.application.ApplicationService
initialize, start, stop
 

Field Detail

PROPERTIES_URL

public static final java.lang.String PROPERTIES_URL
See Also:
Constant Field Values
Constructor Detail

EmbeddedConfigurationService

public EmbeddedConfigurationService()
Method Detail

getBootStrapURL

public java.net.URL getBootStrapURL()

setBootStrapURL

public void setBootStrapURL(java.net.URL bootStrapURL)

getSystemVdb

public java.net.URL getSystemVdb()
Description copied from interface: ConfigurationService
Get the VDB contents for the "System.VDB"

Specified by:
getSystemVdb in interface ConfigurationService
Returns:
URL - URL to System.vdb file; null if one not found
Since:
4.3
See Also:
ConfigurationService.getSystemVdb()

getSystemProperties

public java.util.Properties getSystemProperties()
Description copied from interface: ConfigurationService
Get DQP properties

Specified by:
getSystemProperties in interface ConfigurationService
Returns:
Properties - properties
Since:
4.3
See Also:
ConfigurationService.getSystemProperties()

setSystemProperty

public void setSystemProperty(java.lang.String key,
                              java.lang.String value)
                       throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Set System property (Contents of ServerConfig.xml file)

Specified by:
setSystemProperty in interface ConfigurationService
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.setSystemProperty(java.lang.String, java.lang.String)

updateSystemProperties

public void updateSystemProperties(java.util.Properties properties)
                            throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Set several System properties (Contents of ServerConfig.xml file). Any properties not specified will remain unchanged.

Specified by:
updateSystemProperties in interface ConfigurationService
Parameters:
properties - The properties to set.
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.updateSystemProperties(java.util.Properties)

getSystemConfiguration

public ConfigurationModelContainer getSystemConfiguration()
                                                   throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get the system Configuration object loaded from the configuration object, this is currently only needed to support the exportConfiguration admin call.

Specified by:
getSystemConfiguration in interface ConfigurationService
Returns:
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getSystemConfiguration()

getConfigFile

public java.net.URL getConfigFile()
Description copied from interface: ConfigurationService
Gets the reference URL to the Configuration File for the DQP.

Specified by:
getConfigFile in interface ConfigurationService
Returns:
URL to configuration file; null otherwise
See Also:
ConfigurationService.getConfigFile()

getUDFFile

public java.net.URL getUDFFile()
Description copied from interface: ConfigurationService
Get the user defined functions file name

Specified by:
getUDFFile in interface ConfigurationService
Returns:
URL - URL to the User defined file; null if one not defined
Since:
4.3
See Also:
ConfigurationService.getUDFFile()

getCommonClassLoader

public java.lang.ClassLoader getCommonClassLoader(java.lang.String urls)
Description copied from interface: ClassLoaderManager
Return the common class loader with the given urls appended

Specified by:
getCommonClassLoader in interface ClassLoaderManager
Returns:

getPostDelegationClassLoader

public java.lang.ClassLoader getPostDelegationClassLoader(java.lang.String urls)
Description copied from interface: ClassLoaderManager
Return a distinct post delgation class loader - which may be cached.

Specified by:
getPostDelegationClassLoader in interface ClassLoaderManager
Returns:

getClassLoaderManager

public AbstractClassLoaderManager getClassLoaderManager()

getLogLevel

public java.lang.String getLogLevel()
Description copied from interface: ConfigurationService
Log Level

Specified by:
getLogLevel in interface ConfigurationService
Returns:
configured log level or default one supplied.
Since:
4.3
See Also:
ConfigurationService.getLogLevel()

getVDBs

public java.util.List<VDBArchive> getVDBs()
                                   throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get a list of available VDBS from the configuration

Specified by:
getVDBs in interface ConfigurationService
Returns:
list of VDBArchive
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getVDBs()

getVDB

public VDBArchive getVDB(java.lang.String vdbName,
                         java.lang.String vdbVersion)
                  throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get the list of VDB files available with the Configuration Service, this includes all status (active, inactive)

Specified by:
getVDB in interface ConfigurationService
Parameters:
vdbName - - Name of the VDB
Returns:
VDBArchive
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getVDB(java.lang.String, java.lang.String)

saveVDB

public void saveVDB(VDBArchive srcVdb,
                    java.lang.String version)
             throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Save the given vdb file into underlying persistent mechanism used by this configuration service

Specified by:
saveVDB in interface ConfigurationService
Parameters:
srcVdb - - VDB to be saved
version - - Version to be saved as; when used text "NEXT_VDB_VERSION" as version save as the next available version.
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
com.metamatrix.dqp.service.ConfigurationService#saveVDB(com.metamatrix.metadata.runtime.admin.vdb.VDBDefn)

addVDB

public VDBArchive addVDB(VDBArchive vdb,
                         boolean replaceBindings)
                  throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Add the VDB to the configuration

Specified by:
addVDB in interface ConfigurationService
Parameters:
vdb - - vdb to be added
replaceBindings - - flag which specifies action to be taken in case there are conflicts in connector bindings.
Returns:
- added VDB instance.
Throws:
MetaMatrixComponentException
See Also:
com.metamatrix.dqp.service.ConfigurationService#addVDB(com.metamatrix.common.vdb.api.VDBDefn, boolean)

deleteVDB

public void deleteVDB(VDBArchive vdb)
               throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Delete the VDB from the underlying persistent mechanism used by this configuration service

Specified by:
deleteVDB in interface ConfigurationService
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
com.metamatrix.dqp.service.ConfigurationService#deleteVDB(java.lang.String, java.lang.String)

assignConnectorBinding

public void assignConnectorBinding(java.lang.String vdbName,
                                   java.lang.String version,
                                   java.lang.String modelName,
                                   ConnectorBinding[] bindings)
                            throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Assign a connector binding to the Model

Specified by:
assignConnectorBinding in interface ConfigurationService
Parameters:
vdbName - - Name of the VDB
version - - version of the VDB
modelName - - Model Name
bindings - - bindings to be assigned
Throws:
MetaMatrixComponentException
See Also:
ConfigurationService.assignConnectorBinding(java.lang.String, java.lang.String, java.lang.String, com.metamatrix.common.config.api.ConnectorBinding[])

getConnectorBindings

public java.util.List getConnectorBindings()
                                    throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get the list of connector bindings available in the configuration.

Specified by:
getConnectorBindings in interface ConfigurationService
Returns:
list of ConnectorBinding
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getConnectorBindings()

getConnectorBinding

public ConnectorBinding getConnectorBinding(java.lang.String deployedBindingName)
                                     throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
get the connector binding from the persistent store

Specified by:
getConnectorBinding in interface ConfigurationService
Parameters:
deployedBindingName - - Connector Binding Name
Returns:
Connector binding by the name given.
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getConnectorBinding(java.lang.String)

getDefaultProperties

public java.util.Properties getDefaultProperties(ConnectorBinding binding)
Get the default properties for the connector binding given.

Specified by:
getDefaultProperties in interface ConfigurationService
Parameters:
binding -
Returns:
properties for the connector binding given

addConnectorBinding

public ConnectorBinding addConnectorBinding(java.lang.String deployedBindingName,
                                            ConnectorBinding binding,
                                            boolean replace)
                                     throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Add the connector binding to the persistent store

Specified by:
addConnectorBinding in interface ConfigurationService
Parameters:
deployedBindingName - - Connector Binding Name
binding - - Connector binding to Add
replace - - flag to replace in case a duplicate found.
Throws:
MetaMatrixComponentException
See Also:
ConfigurationService.addConnectorBinding(java.lang.String, com.metamatrix.common.config.api.ConnectorBinding, boolean)

updateConnectorBinding

public ConnectorBinding updateConnectorBinding(ConnectorBinding binding)
                                        throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Update the Connector Binding, the assumption here that we kept the name same

Specified by:
updateConnectorBinding in interface ConfigurationService
Parameters:
binding - - Connector Binding to be modified
Returns:
modified connector; usually same referenced object.
Throws:
MetaMatrixComponentException
See Also:
ConfigurationService.updateConnectorBinding(com.metamatrix.common.config.api.ConnectorBinding)

deleteConnectorBinding

public void deleteConnectorBinding(java.lang.String deployedConnectorBindingName)
                            throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Delete the connector binding from the persistent store

Specified by:
deleteConnectorBinding in interface ConfigurationService
Parameters:
deployedConnectorBindingName - - Connector Binding Name
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.deleteConnectorBinding(java.lang.String)

getConnectorTypes

public java.util.List getConnectorTypes()
                                 throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get list of all the connector types available in the System.

Specified by:
getConnectorTypes in interface ConfigurationService
Returns:
list of ComponentType
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getConnectorTypes()

getExtensionPath

public java.net.URL[] getExtensionPath()
Description copied from interface: ConfigurationService
Retun the context class path to be used by all the extension modules to use. if one not specified a default must be supplied. Usally this is directory where all the extension jars are stored or a URL

Specified by:
getExtensionPath in interface ConfigurationService
Returns:
String URL - url to extension path; null if extensions are not used
Since:
4.3
See Also:
ConfigurationService.getExtensionPath()

useExtensionClasspath

public boolean useExtensionClasspath()
Description copied from interface: ConfigurationService
Use the extension classpath defined in the connector bindins and load jars in different class loader or in the same class loader as calling code

Specified by:
useExtensionClasspath in interface ConfigurationService
Returns:
true - to load different class loader, false otherwise
See Also:
ConfigurationService.useExtensionClasspath()

getExtensionModule

public ExtensionModule getExtensionModule(java.lang.String extModuleName)
                                   throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get the extension module by the given identifier

Specified by:
getExtensionModule in interface ConfigurationService
Parameters:
extModuleName - - Module name
Returns:
ExtensionModule; null if not found
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getExtensionModule(java.lang.String)

getExtensionModules

public java.util.List<ExtensionModule> getExtensionModules()
                                                    throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get the list of extension modules available in the store

Specified by:
getExtensionModules in interface ConfigurationService
Returns:
list of Extension Modules ExtensionModule
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.getExtensionModules()

saveExtensionModule

public void saveExtensionModule(ExtensionModule extModule)
                         throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Save the given extension module

Specified by:
saveExtensionModule in interface ConfigurationService
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.saveExtensionModule(com.metamatrix.common.config.api.ExtensionModule)

deleteExtensionModule

public void deleteExtensionModule(java.lang.String extModuleName)
                           throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Delete the extension module from the configuration with name supplied

Specified by:
deleteExtensionModule in interface ConfigurationService
Parameters:
extModuleName - - extension module name
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.deleteExtensionModule(java.lang.String)

getConnectorType

public ConnectorBindingType getConnectorType(java.lang.String connectorType)
                                      throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Get Component type for the given id

Specified by:
getConnectorType in interface ConfigurationService
Returns:
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
com.metamatrix.dqp.service.ConfigurationService#getConnectorType(com.metamatrix.common.config.api.ComponentTypeID)

saveConnectorType

public void saveConnectorType(ConnectorBindingType type)
                       throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Add the Given component type to the persistent store

Specified by:
saveConnectorType in interface ConfigurationService
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
com.metamatrix.dqp.service.ConfigurationService#addConnectorType(com.metamatrix.common.config.api.ComponentType)

deleteConnectorType

public void deleteConnectorType(java.lang.String deployedConnectorType)
                         throws MetaMatrixComponentException
Description copied from interface: ConfigurationService
Delete the Given component type to the persistent store

Specified by:
deleteConnectorType in interface ConfigurationService
Parameters:
deployedConnectorType - - Name of the connector Type
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
ConfigurationService.deleteConnectorType(java.lang.String)

loadUDF

public void loadUDF()
             throws MetaMatrixComponentException
Load the User defined functions file

Specified by:
loadUDF in interface ConfigurationService
Throws:
MetaMatrixComponentException
Since:
4.3

unloadUDF

public void unloadUDF()
Unload the UDF file at the end of the DQP, because the same JVM could be used to load another DQP and we do want the static function library hanging on to old function libraries

Specified by:
unloadUDF in interface ConfigurationService

initializeService

public void initializeService(java.util.Properties properties)
                       throws ApplicationInitializationException
Specified by:
initializeService in class EmbeddedBaseDQPService
Throws:
ApplicationInitializationException
Since:
4.3
See Also:
EmbeddedBaseDQPService.initializeService(java.util.Properties)

startService

public void startService(ApplicationEnvironment environment)
                  throws ApplicationLifecycleException
Specified by:
startService in class EmbeddedBaseDQPService
Throws:
ApplicationLifecycleException
Since:
4.3
See Also:
EmbeddedBaseDQPService.startService(com.metamatrix.common.application.ApplicationEnvironment)

stopService

public void stopService()
                 throws ApplicationLifecycleException
Specified by:
stopService in class EmbeddedBaseDQPService
Throws:
ApplicationLifecycleException
Since:
4.3
See Also:
EmbeddedBaseDQPService.stopService()

getVDBLocations

public java.net.URL[] getVDBLocations()
Get path(s) for VDB(s) that are availble from the configuration to the DQP engine.

Specified by:
getVDBLocations in interface ConfigurationService
Returns:
URLs to the resources.

getEncryptionKeyStore

public java.net.URL getEncryptionKeyStore()
Description copied from interface: ConfigurationService
Get the URL to the "metamatrixpki.keystore" file

Specified by:
getEncryptionKeyStore in interface ConfigurationService
Returns:
URL to the "metamatrixpki.keystore" file; null if not defined
See Also:
ConfigurationService.getEncryptionKeyStore()

getConnectionListener

public ServerConnectionListener getConnectionListener()
Description copied from interface: ConfigurationService
Client Connection Listener object for the service; This will get notifications about the connections currently available to DQP.

Specified by:
getConnectionListener in interface ConfigurationService
Since:
4.3.2
See Also:
ConfigurationService.getConnectionListener()

getClientConnections

public java.util.Set<ServerConnection> getClientConnections()
Description copied from interface: ConfigurationService
This returns the active client connections that have been made to the DQP

Specified by:
getClientConnections in interface ConfigurationService
Returns:
list of connections which are currently available;never null
See Also:
ConfigurationService.getClientConnections()

isFullyConfiguredVDB

public boolean isFullyConfiguredVDB(VDBArchive vdb)
                             throws MetaMatrixComponentException
Specified by:
isFullyConfiguredVDB in interface ConfigurationService
Throws:
MetaMatrixComponentException

register

public void register(ConnectorBindingLifeCycleListener listener)
Register a listener for the VDB life cycle events, and get notified for when vdb is loded and unloaded

Specified by:
register in interface ConfigurationService
Parameters:
listener - - lister object

register

public void register(VDBLifeCycleListener listener)
Register a listener for the VDB life cycle events, and get notified for when vdb is loded and unloaded

Specified by:
register in interface ConfigurationService
Parameters:
listener - - lister object

useDiskBuffering

public boolean useDiskBuffering()
Use disk for buffering for result set management during the processing

Specified by:
useDiskBuffering in interface ConfigurationService
Returns:
true if yes to use buffering; false otherwise

getWorkDir

public java.io.File getWorkDir()

getDiskBufferDirectory

public java.io.File getDiskBufferDirectory()
Get the directory to use for the disk buffering

Specified by:
getDiskBufferDirectory in interface ConfigurationService
Returns:
must a return a location; and exist too.

getBufferMemorySize

public java.lang.String getBufferMemorySize()
Size of Memory in MB allocated to be used by the Resultset Management before disk buffering kicks in.

Specified by:
getBufferMemorySize in interface ConfigurationService
Returns:
must a return a location

getInstanceIdenifier

public java.lang.String getInstanceIdenifier()
Description copied from interface: ConfigurationService
Return some identifier which uniquely identifies the DQP. Usally this is an integer value which is set at the creation of the DQP

Specified by:
getInstanceIdenifier in interface ConfigurationService
Returns:
unique number for DQP in a given JVM
See Also:
ConfigurationService.getInstanceIdenifier()

getProcessorBatchSize

public java.lang.String getProcessorBatchSize()
Description copied from interface: ConfigurationService
Gets the processor batch size

Specified by:
getProcessorBatchSize in interface ConfigurationService
Returns:

getConnectorBatchSize

public java.lang.String getConnectorBatchSize()
Description copied from interface: ConfigurationService
Gets the connector batch size

Specified by:
getConnectorBatchSize in interface ConfigurationService
Returns:

unregister

public void unregister(VDBLifeCycleListener listener)
Specified by:
unregister in interface ConfigurationService

unregister

public void unregister(ConnectorBindingLifeCycleListener listener)
Specified by:
unregister in interface ConfigurationService

clearClassLoaderCache

public void clearClassLoaderCache()
                           throws MetaMatrixComponentException
Specified by:
clearClassLoaderCache in interface ConfigurationService
Throws:
MetaMatrixComponentException


Copyright © 2009. All Rights Reserved.