|
||||||||||
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()
|
Method Summary | |
---|---|
void |
changeVDBStatus(java.lang.String vdbName,
java.lang.String vdbVersion,
int status)
Change the status of the VDB |
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. |
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 |
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()
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
VDBService
getVDBResource
in interface VDBService
vdbName
- VDB namevdbVersion
- VDB version
MetaMatrixComponentException
VDBService.getVDBResource(java.lang.String, java.lang.String)
public int getVDBStatus(java.lang.String vdbName, java.lang.String vdbVersion) throws MetaMatrixComponentException
VDBService
getVDBStatus
in interface VDBService
vdbName
- - Name of the VDBvdbVersion
- - Version of the VDB
MetaMatrixComponentException
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |