com.metamatrix.dqp.embedded.services
Class EmbeddedVDBService

java.lang.Object
  extended by com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
      extended by com.metamatrix.dqp.embedded.services.EmbeddedVDBService
All Implemented Interfaces:
ApplicationService, VDBLifeCycleListener, VDBService

public class EmbeddedVDBService
extends EmbeddedBaseDQPService
implements VDBService, VDBLifeCycleListener

A VDBService implementation for Embedded DQP.

Since:
4.3

Field Summary
 
Fields inherited from class com.metamatrix.dqp.embedded.services.EmbeddedBaseDQPService
SYSTEM_PHYSICAL_MODEL_NAME
 
Constructor Summary
EmbeddedVDBService()
           
 
Method Summary
 void changeVDBStatus(java.lang.String vdbName, java.lang.String vdbVersion, int status)
          Change the status of the VDB
 java.util.List<VDBArchive> getAvailableVDBs()
          Get the list of VDBs available from the service
 java.util.List getConnectorBindingNames(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String modelName)
          This should changed to connectorBindingNames.
 java.lang.String getConnectorName(java.lang.String connectorBindingID)
           
 int getFileVisibility(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String pathInVDB)
          Get visibility of the file at the given path in the vdb.
 int getModelVisibility(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String modelName)
          Get model visibility
 java.util.List<java.lang.String> getMultiSourceModels(java.lang.String vdbName, java.lang.String vdbVersion)
          Get all multi-source model names (models that can be bound to multiple connector bindings) for this VDB name and version.
 java.io.InputStream getVDBResource(java.lang.String vdbName, java.lang.String vdbVersion)
          Get VDB resource contents
 int getVDBStatus(java.lang.String vdbName, java.lang.String vdbVersion)
          Get the Status of VDB
 void initializeService(java.util.Properties properties)
           
 void loaded(java.lang.String vdbName, java.lang.String vdbVersion)
          A new VDB is loaded/added to the system
 void startService(ApplicationEnvironment environment)
           
 void stopService()
           
 void unloaded(java.lang.String vdbName, java.lang.String vdbVersion)
          VDB is unloaded/deleted from the system
 
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
 

Constructor Detail

EmbeddedVDBService

public EmbeddedVDBService()
Method Detail

getConnectorBindingNames

public java.util.List getConnectorBindingNames(java.lang.String vdbName,
                                               java.lang.String vdbVersion,
                                               java.lang.String modelName)
                                        throws MetaMatrixComponentException
This should changed to connectorBindingNames.

Specified by:
getConnectorBindingNames in interface VDBService
Parameters:
vdbName - VDB name
vdbVersion - VDB version
modelName - Model name
Returns:
list of String names of connectors
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
com.metamatrix.dqp.service.VDBService#getConnectorBindings(java.lang.String, java.lang.String, java.lang.String)

getModelVisibility

public int getModelVisibility(java.lang.String vdbName,
                              java.lang.String vdbVersion,
                              java.lang.String modelName)
                       throws MetaMatrixComponentException
Description copied from interface: VDBService
Get model visibility

Specified by:
getModelVisibility in interface VDBService
Parameters:
vdbName - VDB name
vdbVersion - VDB version
modelName - The name of the model
Returns:
Visibility constant, as defined in this class
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.getModelVisibility(java.lang.String, java.lang.String, java.lang.String)

getFileVisibility

public int getFileVisibility(java.lang.String vdbName,
                             java.lang.String vdbVersion,
                             java.lang.String pathInVDB)
                      throws MetaMatrixComponentException
Description copied from interface: VDBService
Get visibility of the file at the given path in the vdb.

Specified by:
getFileVisibility in interface VDBService
Parameters:
vdbName - VDB name
vdbVersion - VDB version
pathInVDB - The path to the model in the VDB
Returns:
Visibility constant, as defined in this class
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.getFileVisibility(java.lang.String, java.lang.String, java.lang.String)

getVDBResource

public java.io.InputStream getVDBResource(java.lang.String vdbName,
                                          java.lang.String vdbVersion)
                                   throws MetaMatrixComponentException
Description copied from interface: VDBService
Get VDB resource contents

Specified by:
getVDBResource in interface VDBService
Parameters:
vdbName - VDB name
vdbVersion - VDB version
Returns:
VDB resource file name
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.getVDBResource(java.lang.String, java.lang.String)

getMultiSourceModels

public java.util.List<java.lang.String> getMultiSourceModels(java.lang.String vdbName,
                                                             java.lang.String vdbVersion)
                                                      throws MetaMatrixComponentException
Description copied from interface: VDBService
Get all multi-source model names (models that can be bound to multiple connector bindings) for this VDB name and version.

Specified by:
getMultiSourceModels in interface VDBService
Parameters:
vdbName - VDB name
vdbVersion - VDB version
Returns:
List of model names that are multi-source models.
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.getMultiSourceModels(java.lang.String, java.lang.String)

getAvailableVDBs

public java.util.List<VDBArchive> getAvailableVDBs()
                                            throws MetaMatrixComponentException
Description copied from interface: VDBService
Get the list of VDBs available from the service

Specified by:
getAvailableVDBs in interface VDBService
Returns:
List of com.metamatrix.metadata.runtime.admin.vdb.VDBDefn
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.getAvailableVDBs()

getVDBStatus

public int getVDBStatus(java.lang.String vdbName,
                        java.lang.String vdbVersion)
                 throws MetaMatrixComponentException
Description copied from interface: VDBService
Get the Status of VDB

Specified by:
getVDBStatus in interface VDBService
Parameters:
vdbName - - Name of the VDB
vdbVersion - - Version of the VDB
Returns:
int Current status of VDB
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.getVDBStatus(java.lang.String, java.lang.String)

changeVDBStatus

public void changeVDBStatus(java.lang.String vdbName,
                            java.lang.String vdbVersion,
                            int status)
                     throws MetaMatrixComponentException
Description copied from interface: VDBService
Change the status of the VDB

Specified by:
changeVDBStatus in interface VDBService
Parameters:
vdbName - - Name of the VDB
vdbVersion - - Version of the VDB
status - -
Throws:
MetaMatrixComponentException
Since:
4.3
See Also:
VDBService.changeVDBStatus(java.lang.String, java.lang.String, int)

getConnectorName

public java.lang.String getConnectorName(java.lang.String connectorBindingID)
Specified by:
getConnectorName in interface VDBService

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.start(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()

loaded

public void loaded(java.lang.String vdbName,
                   java.lang.String vdbVersion)
Description copied from interface: VDBLifeCycleListener
A new VDB is loaded/added to the system

Specified by:
loaded in interface VDBLifeCycleListener
Parameters:
vdbName - - name of the VDB
vdbVersion - - version of the VDB

unloaded

public void unloaded(java.lang.String vdbName,
                     java.lang.String vdbVersion)
Description copied from interface: VDBLifeCycleListener
VDB is unloaded/deleted from the system

Specified by:
unloaded in interface VDBLifeCycleListener
Parameters:
vdbName - - name of the VDB
vdbVersion - - version of the VDB


Copyright © 2009. All Rights Reserved.