|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.server.dqp.service.PlatformVDBService
public class PlatformVDBService
Implementation of VDBService used in a "normal" server environment.
Constructor Summary | |
---|---|
PlatformVDBService(org.teiid.dqp.internal.cache.DQPContextCache cache)
|
Method Summary | |
---|---|
void |
changeVDBStatus(java.lang.String vdbName,
java.lang.String vdbVersion,
int status)
Change the status of the VDB |
java.lang.String |
getActiveVDBVersion(java.lang.String vdbName,
java.lang.String vdbVersion)
|
java.util.List |
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)
Get connector bindings for a particular vdb model. |
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 |
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. |
VDBArchive |
getVDB(java.lang.String vdbName,
java.lang.String vdbVersion)
|
java.io.InputStream |
getVDBResource(java.lang.String vdbName,
java.lang.String vdbVersion)
|
int |
getVDBStatus(java.lang.String vdbName,
java.lang.String vdbVersion)
|
void |
initialize(java.util.Properties props)
Initialize the service with the specified properties. |
boolean |
isActiveVDB(java.lang.String vdbName,
java.lang.String vdbVersion)
|
void |
processEvent(RuntimeMetadataEvent event)
|
void |
start(ApplicationEnvironment environment)
Start the service with the specified environment. |
void |
stop()
Stop the service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlatformVDBService(org.teiid.dqp.internal.cache.DQPContextCache cache)
Method Detail |
---|
public boolean isActiveVDB(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
MetaMatrixComponentException
public java.util.List getConnectorBindingNames(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String modelName) throws MetaMatrixComponentException
VDBService
VDBConfiguration#getMultiSourceModels(String, String)
method can be used to determine which models are multi-source models.
getConnectorBindingNames
in interface VDBService
vdbName
- VDB namevdbVersion
- VDB versionmodelName
- Model name
String
names of connectors
MetaMatrixComponentException
public int getModelVisibility(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String modelName) throws MetaMatrixComponentException
VDBService
getModelVisibility
in interface VDBService
vdbName
- VDB namevdbVersion
- VDB versionmodelName
- The name of the model
MetaMatrixComponentException
public int getFileVisibility(java.lang.String vdbName, java.lang.String vdbVersion, java.lang.String pathInVDB) throws MetaMatrixComponentException
VDBService
getFileVisibility
in interface VDBService
vdbName
- VDB namevdbVersion
- VDB versionpathInVDB
- The path to the model in the VDB
MetaMatrixComponentException
com.metamatrix.dqp.service.VDBConfiguration#getFileVisibility(java.lang.String, java.lang.String, java.lang.String)
public void initialize(java.util.Properties props) throws ApplicationInitializationException
ApplicationService
initialize
in interface ApplicationService
props
- Initialialization properties
ApplicationInitializationException
- If an error occurs during initializationpublic void start(ApplicationEnvironment environment) throws ApplicationLifecycleException
ApplicationService
start
in interface ApplicationService
environment
- Environment
ApplicationLifecycleException
- If an error occurs while startingpublic void stop() throws ApplicationLifecycleException
ApplicationService
stop
in interface ApplicationService
ApplicationLifecycleException
- If an error occurs while startingpublic java.lang.String getConnectorName(java.lang.String connectorBindingID) throws MetaMatrixComponentException
getConnectorName
in interface VDBService
MetaMatrixComponentException
public void processEvent(RuntimeMetadataEvent event)
processEvent
in interface RuntimeMetadataListener
RuntimeMetadataListener.processEvent(com.metamatrix.metadata.runtime.event.RuntimeMetadataEvent)
public java.util.List getMultiSourceModels(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
VDBService
getMultiSourceModels
in interface VDBService
vdbName
- VDB namevdbVersion
- VDB version
MetaMatrixComponentException
com.metamatrix.dqp.service.VDBConfiguration#getMultiSourceModels(java.lang.String, java.lang.String)
public java.io.InputStream getVDBResource(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
MetaMatrixComponentException
com.metamatrix.dqp.service.VDBService#getVDBResource(java.lang.String, java.lang.String)
public int getVDBStatus(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
MetaMatrixComponentException
com.metamatrix.dqp.service.VDBService#getVDBStatus(java.lang.String, java.lang.String)
public void changeVDBStatus(java.lang.String vdbName, java.lang.String vdbVersion, int status) throws ApplicationLifecycleException, MetaMatrixComponentException
VDBService
changeVDBStatus
in interface VDBService
vdbName
- - Name of the VDBvdbVersion
- - Version of the VDBstatus
- -
ApplicationLifecycleException
MetaMatrixComponentException
VDBService.changeVDBStatus(java.lang.String, java.lang.String, int)
public java.util.List getAvailableVDBs() throws MetaMatrixComponentException
VDBService
getAvailableVDBs
in interface VDBService
com.metamatrix.metadata.runtime.admin.vdb.VDBDefn
MetaMatrixComponentException
VDBService.getAvailableVDBs()
public java.lang.String getActiveVDBVersion(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException, VirtualDatabaseException
getActiveVDBVersion
in interface VDBService
MetaMatrixComponentException
VirtualDatabaseException
public VDBArchive getVDB(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
getVDB
in interface VDBService
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |