Package org.teiid.adminapi.jboss
Class AdminFactory.AdminImpl
- java.lang.Object
-
- org.teiid.adminapi.jboss.AdminFactory.AdminImpl
-
- All Implemented Interfaces:
Admin
- Enclosing class:
- AdminFactory
public class AdminFactory.AdminImpl extends Object implements Admin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.adminapi.Admin
Admin.Cache, Admin.SchemaObjectType, Admin.TranlatorPropertyType
-
-
Constructor Summary
Constructors Constructor Description AdminImpl(org.jboss.as.controller.client.ModelControllerClient connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName)
Assign a Role name to the Data Role in a given VDBvoid
addDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName)
Assign a Role name to the Data Role in a given VDBvoid
addSource(String vdbName, int vdbVersion, String modelName, String sourceName, String translatorName, String dsName)
Adds aTranslator
and Data source to aVDB
's Modelvoid
addSource(String vdbName, String vdbVersion, String modelName, String sourceName, String translatorName, String dsName)
Adds aTranslator
and Data source to aVDB
's Modelorg.jboss.dmr.ModelNode
buildUndeployRequest(String name, boolean force)
void
cancelRequest(String sessionId, long executionId)
Cancel Requestvoid
changeVDBConnectionType(String vdbName, int vdbVersion, VDB.ConnectionType type)
Change theVDB.ConnectionType
of theVDB
.void
changeVDBConnectionType(String vdbName, String vdbVersion, VDB.ConnectionType type)
Change theVDB.ConnectionType
of theVDB
.void
clearCache(String cacheType)
Clear the cache or caches specified by the cacheIdentifier.void
clearCache(String cacheType, String vdbName, int vdbVersion)
Clear the cache of the given VDB for provided cache typevoid
clearCache(String cacheType, String vdbName, String vdbVersion)
Clear the cache of the given VDB for provided cache typevoid
close()
Closes the admin connectionvoid
createDataSource(String deploymentName, String templateName, Properties properties)
Creates a JCA data source
Use this method to create JDBC driver based connection, XA-datasource or Resource Adapter.void
deleteDataSource(String deployedName)
Delete data source.void
deploy(String deployName, InputStream vdb)
Deploy a artifact (VDB, JAR, RAR files)void
deploy(String deployName, InputStream vdb, boolean persist)
Deploy a artifact (VDB, JAR, RAR files)void
deployVDBZip(URL url)
Deploy a .vdb or .zip vdb.void
flush()
Collection<? extends CacheStatistics>
getCacheStats(String cacheType)
Get the Cache Statistics for the given typeCollection<String>
getCacheTypes()
Get the Caches that correspond to the specified identifier patternProperties
getDataSource(String deployedName)
Given the deployed name of the data source, this will return all the configuration properties used to create the datasource.Collection<String>
getDataSourceNames()
/subsystem=datasources:read-children-names(child-type=data-source) /subsystem=resource-adapters/resource-adapter={rar-file}:read-resourceSet<String>
getDataSourceTemplateNames()
Get the Datasource templates available in the configuration.List<String>
getDeployments()
Get existing deployments on in the sysemCollection<? extends EngineStatistics>
getEngineStats()
Get the Engine Statistics for the given typeSet<String>
getInstalledJDBCDrivers()
String
getProfileName()
String
getQueryPlan(String sessionId, long executionId)
Get the Query Plan for the given session with provided execution id.Collection<? extends Request>
getRequests()
Get the all Requests that are currently in processCollection<? extends Request>
getRequestsForSession(String sessionId)
Get the Requests for the given sessionString
getSchema(String vdbName, int vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern)
Retrieve the schema of the given modelString
getSchema(String vdbName, String vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern)
Retrieve the schema of the given modelCollection<? extends Session>
getSessions()
Get all the current Sessions.Collection<PropertyDefinition>
getTemplatePropertyDefinitions(String templateName)
pattern on CLI /subsystem=datasources/data-source=foo:read-resource-descriptionCollection<? extends Transaction>
getTransactions()
Get all transaction matching the identifier.Translator
getTranslator(String deployedName)
Get the translator by the given the deployed name.Collection<? extends PropertyDefinition>
getTranslatorPropertyDefinitions(String translatorName)
Deprecated.Collection<? extends PropertyDefinition>
getTranslatorPropertyDefinitions(String translatorName, Admin.TranlatorPropertyType type)
Get all of the available configuration Properties for the specified translatorCollection<? extends Translator>
getTranslators()
Get the translators that are available in the configurationVDB
getVDB(String vdbName, int vdbVersion)
Get the VDBVDB
getVDB(String vdbName, String vdbVersion)
Get the VDBList<? extends VDB>
getVDBs()
Get the VDBs that are currently deployed in the systemList<? extends VDB>
getVDBs(boolean singleInstance)
Get the VDBs that are currently deployed in the systemCollection<? extends WorkerPoolStatistics>
getWorkerPoolStats()
Get the Worker Pool statistics in runtime engine.void
markDataSourceAvailable(String jndiName)
Tell the engine that the given source is available.void
removeDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName)
Remove a Role name to the Data Role in a given VDBvoid
removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName)
Remove a Role name to the Data Role in a given VDBvoid
removeSource(String vdbName, int vdbVersion, String modelName, String sourceName)
Removes aTranslator
and Data source from aVDB
's Modelvoid
removeSource(String vdbName, String vdbVersion, String modelName, String sourceName)
Removes aTranslator
and Data source from aVDB
's Modelvoid
restart()
Restart the Servervoid
restartVDB(String vdbName, int vdbVersion, String... models)
Restart the VDB.void
restartVDB(String vdbName, String vdbVersion, String... models)
Restart the VDB.void
setAnyAuthenticatedForDataRole(String vdbName, int vdbVersion, String dataRole, boolean anyAuthenticated)
Set the any authenticated flag on the Data Role in a given VDBvoid
setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated)
Set the any authenticated flag on the Data Role in a given VDBvoid
setProfileName(String name)
Set the profile name.void
terminateSession(String sessionId)
Terminate the Sessionvoid
terminateTransaction(String transactionId)
Mark the given global transaction as rollback only.void
undeploy(String deployedName)
Undeploy artifact (VDB, JAR, RAR files)void
undeploy(String deployedName, boolean force)
void
updateSource(String vdbName, int vdbVersion, String sourceName, String translatorName, String dsName)
Update a source'sTranslator
and Data sourcevoid
updateSource(String vdbName, String vdbVersion, String sourceName, String translatorName, String dsName)
Update a source'sTranslator
and Data source
-
-
-
Method Detail
-
setProfileName
public void setProfileName(String name)
Description copied from interface:Admin
Set the profile name. A null value will set the default profile name.- Specified by:
setProfileName
in interfaceAdmin
-
clearCache
public void clearCache(String cacheType) throws AdminException
Description copied from interface:Admin
Clear the cache or caches specified by the cacheIdentifier.- Specified by:
clearCache
in interfaceAdmin
- Parameters:
cacheType
- Cache Type No wild cards currently supported, must be explicit- Throws:
AdminException
-
clearCache
public void clearCache(String cacheType, String vdbName, String vdbVersion) throws AdminException
Description copied from interface:Admin
Clear the cache of the given VDB for provided cache type- Specified by:
clearCache
in interfaceAdmin
- Parameters:
cacheType
- Cache Type No wild cards currently supported, must be explicitvdbName
- - Name of the VDBvdbVersion
- - VDB version- Throws:
AdminException
-
close
public void close()
Description copied from interface:Admin
Closes the admin connection
-
getInstalledJDBCDrivers
public Set<String> getInstalledJDBCDrivers() throws AdminException
- Throws:
AdminException
-
getProfileName
public String getProfileName()
-
createDataSource
public void createDataSource(String deploymentName, String templateName, Properties properties) throws AdminException
Description copied from interface:Admin
Creates a JCA data source
Use this method to create JDBC driver based connection, XA-datasource or Resource Adapter. Template Name defines the type of connection, if the template name is ends with "-xa" it is considered to be a XA based data source.- Specified by:
createDataSource
in interfaceAdmin
- Parameters:
deploymentName
- - This becomes the pool name, as well as the jndi name of the sourcetemplateName
- - type of source. SeeAdmin.getDataSourceNames()
for all available types.properties
- - All properties needed to create a data source, like connection-url, user, password to see all the properties useAdmin.getTemplatePropertyDefinitions(String)
to retrieve the full list. The transaction-support property can be set to LocalTransaction for sources that support local transactions.- Throws:
AdminException
-
getDataSource
public Properties getDataSource(String deployedName) throws AdminException
Description copied from interface:Admin
Given the deployed name of the data source, this will return all the configuration properties used to create the datasource. If sensitive information like passwords are masked, they will NOT be decrypted. "driver-name" property on the returned properties defines the template name used to create this data source.- Specified by:
getDataSource
in interfaceAdmin
- Throws:
AdminException
-
deleteDataSource
public void deleteDataSource(String deployedName) throws AdminException
Description copied from interface:Admin
Delete data source.- Specified by:
deleteDataSource
in interfaceAdmin
- Throws:
AdminException
-
undeploy
public void undeploy(String deployedName) throws AdminException
Description copied from interface:Admin
Undeploy artifact (VDB, JAR, RAR files)- Specified by:
undeploy
in interfaceAdmin
- Throws:
AdminException
-
undeploy
public void undeploy(String deployedName, boolean force) throws AdminException
- Throws:
AdminException
-
buildUndeployRequest
public org.jboss.dmr.ModelNode buildUndeployRequest(String name, boolean force) throws org.jboss.as.cli.operation.OperationFormatException
- Throws:
org.jboss.as.cli.operation.OperationFormatException
-
deployVDBZip
public void deployVDBZip(URL url) throws AdminException
Description copied from interface:Admin
Deploy a .vdb or .zip vdb. The deployment name will be taken from the url file name.- Specified by:
deployVDBZip
in interfaceAdmin
- Throws:
AdminException
-
deploy
public void deploy(String deployName, InputStream vdb) throws AdminException
Description copied from interface:Admin
Deploy a artifact (VDB, JAR, RAR files)- Specified by:
deploy
in interfaceAdmin
- Parameters:
deployName
- Name of the VDB file to save under- Throws:
AdminException
-
deploy
public void deploy(String deployName, InputStream vdb, boolean persist) throws AdminException
Description copied from interface:Admin
Deploy a artifact (VDB, JAR, RAR files)- Specified by:
deploy
in interfaceAdmin
- Parameters:
deployName
- Name of the VDB file to save underpersist
- the deployed artifact is persisted or not- Throws:
AdminException
-
getCacheStats
public Collection<? extends CacheStatistics> getCacheStats(String cacheType) throws AdminException
Description copied from interface:Admin
Get the Cache Statistics for the given type- Specified by:
getCacheStats
in interfaceAdmin
- Parameters:
cacheType
- Cache Type- Returns:
- Collection of
CacheStatistics
- Throws:
AdminException
-
getEngineStats
public Collection<? extends EngineStatistics> getEngineStats() throws AdminException
Description copied from interface:Admin
Get the Engine Statistics for the given type- Specified by:
getEngineStats
in interfaceAdmin
- Returns:
- Collection of
EngineStatistics
- Throws:
AdminException
-
getCacheTypes
public Collection<String> getCacheTypes() throws AdminException
Description copied from interface:Admin
Get the Caches that correspond to the specified identifier pattern- Specified by:
getCacheTypes
in interfaceAdmin
- Returns:
- Collection of
String
- Throws:
AdminException
-
getDataSourceNames
public Collection<String> getDataSourceNames() throws AdminException
/subsystem=datasources:read-children-names(child-type=data-source) /subsystem=resource-adapters/resource-adapter={rar-file}:read-resource- Specified by:
getDataSourceNames
in interfaceAdmin
- Throws:
AdminException
- See Also:
Admin.getDataSourceNames()
-
getDeployments
public List<String> getDeployments()
Description copied from interface:Admin
Get existing deployments on in the sysem- Specified by:
getDeployments
in interfaceAdmin
-
getDataSourceTemplateNames
public Set<String> getDataSourceTemplateNames() throws AdminException
Description copied from interface:Admin
Get the Datasource templates available in the configuration.- Specified by:
getDataSourceTemplateNames
in interfaceAdmin
- Returns:
- Set of template names.
- Throws:
AdminException
-
getWorkerPoolStats
public Collection<? extends WorkerPoolStatistics> getWorkerPoolStats() throws AdminException
Description copied from interface:Admin
Get the Worker Pool statistics in runtime engine.- Specified by:
getWorkerPoolStats
in interfaceAdmin
- Returns:
- Collection of
WorkerPoolStatistics
- Throws:
AdminException
-
cancelRequest
public void cancelRequest(String sessionId, long executionId) throws AdminException
Description copied from interface:Admin
Cancel Request- Specified by:
cancelRequest
in interfaceAdmin
- Parameters:
sessionId
- session Identifier for the request.executionId
- request Identifier- Throws:
AdminException
-
getRequests
public Collection<? extends Request> getRequests() throws AdminException
Description copied from interface:Admin
Get the all Requests that are currently in process- Specified by:
getRequests
in interfaceAdmin
- Returns:
- Collection of
Request
- Throws:
AdminException
-
getRequestsForSession
public Collection<? extends Request> getRequestsForSession(String sessionId) throws AdminException
Description copied from interface:Admin
Get the Requests for the given session- Specified by:
getRequestsForSession
in interfaceAdmin
- Returns:
- Collection of
Request
- Throws:
AdminException
-
getSessions
public Collection<? extends Session> getSessions() throws AdminException
Description copied from interface:Admin
Get all the current Sessions.- Specified by:
getSessions
in interfaceAdmin
- Returns:
- Collection of
Session
- Throws:
AdminException
-
getTemplatePropertyDefinitions
public Collection<PropertyDefinition> getTemplatePropertyDefinitions(String templateName) throws AdminException
pattern on CLI /subsystem=datasources/data-source=foo:read-resource-description- Specified by:
getTemplatePropertyDefinitions
in interfaceAdmin
- Parameters:
templateName
- - Name of the connector- Returns:
- Throws:
AdminException
-
getTranslatorPropertyDefinitions
@Deprecated public Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName) throws AdminException
Deprecated.Description copied from interface:Admin
Get all of the available configuration Properties for the specified translator- Specified by:
getTranslatorPropertyDefinitions
in interfaceAdmin
- Parameters:
translatorName
- - Name of the translator- Returns:
- Throws:
AdminException
- See Also:
Admin.getTranslatorPropertyDefinitions(java.lang.String)
-
getTranslatorPropertyDefinitions
public Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName, Admin.TranlatorPropertyType type) throws AdminException
Description copied from interface:Admin
Get all of the available configuration Properties for the specified translator- Specified by:
getTranslatorPropertyDefinitions
in interfaceAdmin
- Parameters:
translatorName
- - Name of the translatortype
- - Type of property definition (import, override, extension-metadata)- Returns:
- Throws:
AdminException
-
getTransactions
public Collection<? extends Transaction> getTransactions() throws AdminException
Description copied from interface:Admin
Get all transaction matching the identifier.- Specified by:
getTransactions
in interfaceAdmin
- Returns:
- Throws:
AdminException
-
terminateSession
public void terminateSession(String sessionId) throws AdminException
Description copied from interface:Admin
Terminate the Session- Specified by:
terminateSession
in interfaceAdmin
- Parameters:
sessionId
- Session IdentifierSession
. No wild cards currently supported, must be explicit- Throws:
AdminException
-
terminateTransaction
public void terminateTransaction(String transactionId) throws AdminException
Description copied from interface:Admin
Mark the given global transaction as rollback only.- Specified by:
terminateTransaction
in interfaceAdmin
- Throws:
AdminException
-
getTranslator
public Translator getTranslator(String deployedName) throws AdminException
Description copied from interface:Admin
Get the translator by the given the deployed name.- Specified by:
getTranslator
in interfaceAdmin
- Parameters:
deployedName
- - name of the deployed translator- Returns:
- null if not found
- Throws:
AdminException
-
getTranslators
public Collection<? extends Translator> getTranslators() throws AdminException
Description copied from interface:Admin
Get the translators that are available in the configuration- Specified by:
getTranslators
in interfaceAdmin
- Returns:
- Collection of
Translator
- Throws:
AdminException
-
getVDB
public VDB getVDB(String vdbName, String vdbVersion) throws AdminException
Description copied from interface:Admin
Get the VDB- Specified by:
getVDB
in interfaceAdmin
- Returns:
- Throws:
AdminException
-
getVDBs
public List<? extends VDB> getVDBs() throws AdminException
Description copied from interface:Admin
Get the VDBs that are currently deployed in the system- Specified by:
getVDBs
in interfaceAdmin
- Returns:
- Collection of
VDB
s. There could be multiple VDBs with the same name in the Collection but they will differ by VDB version. - Throws:
AdminException
-
getVDBs
public List<? extends VDB> getVDBs(boolean singleInstance) throws AdminException
Description copied from interface:Admin
Get the VDBs that are currently deployed in the system- Specified by:
getVDBs
in interfaceAdmin
- Parameters:
singleInstance
-
- true to return the VDB list from only a single server instance, which is the same asAdmin.getVDBs()
.
- false to get all VDBs from all servers in the domain- Returns:
- Collection of
VDB
s. - Throws:
AdminException
-
addDataRoleMapping
public void addDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
Description copied from interface:Admin
Assign a Role name to the Data Role in a given VDB- Specified by:
addDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
clearCache
public void clearCache(String cacheType, String vdbName, int vdbVersion) throws AdminException
Description copied from interface:Admin
Clear the cache of the given VDB for provided cache type- Specified by:
clearCache
in interfaceAdmin
- Parameters:
cacheType
- Cache Type No wild cards currently supported, must be explicitvdbName
- - Name of the VDBvdbVersion
- - VDB version- Throws:
AdminException
-
addDataRoleMapping
public void addDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
Description copied from interface:Admin
Assign a Role name to the Data Role in a given VDB- Specified by:
addDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
removeDataRoleMapping
public void removeDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
Description copied from interface:Admin
Remove a Role name to the Data Role in a given VDB- Specified by:
removeDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
setAnyAuthenticatedForDataRole
public void setAnyAuthenticatedForDataRole(String vdbName, int vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
Description copied from interface:Admin
Set the any authenticated flag on the Data Role in a given VDB- Specified by:
setAnyAuthenticatedForDataRole
in interfaceAdmin
- Throws:
AdminException
-
changeVDBConnectionType
public void changeVDBConnectionType(String vdbName, int vdbVersion, VDB.ConnectionType type) throws AdminException
Description copied from interface:Admin
Change theVDB.ConnectionType
of theVDB
.- Specified by:
changeVDBConnectionType
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDB- Throws:
AdminException
-
updateSource
public void updateSource(String vdbName, int vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
Description copied from interface:Admin
Update a source'sTranslator
and Data source- Specified by:
updateSource
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDBsourceName
- source namedsName
- data source name that can found in the JNDI map.- Throws:
AdminException
-
addSource
public void addSource(String vdbName, int vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
Description copied from interface:Admin
Adds aTranslator
and Data source to aVDB
's Model- Specified by:
addSource
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDBmodelName
- Name of the ModelsourceName
- source namedsName
- data source name that can found in the JNDI map.- Throws:
AdminException
-
getVDB
public VDB getVDB(String vdbName, int vdbVersion) throws AdminException
Description copied from interface:Admin
Get the VDB- Specified by:
getVDB
in interfaceAdmin
- Returns:
- Throws:
AdminException
-
removeSource
public void removeSource(String vdbName, int vdbVersion, String modelName, String sourceName) throws AdminException
Description copied from interface:Admin
Removes aTranslator
and Data source from aVDB
's Model- Specified by:
removeSource
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDBmodelName
- Name of the ModelsourceName
- source name- Throws:
AdminException
-
restartVDB
public void restartVDB(String vdbName, int vdbVersion, String... models) throws AdminException
Description copied from interface:Admin
Restart the VDB. This issues reload of the metadata.- Specified by:
restartVDB
in interfaceAdmin
models
- names for which metadata needs to be reloaded, if null or not supplied all models reloaded- Throws:
AdminException
-
getSchema
public String getSchema(String vdbName, int vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
Description copied from interface:Admin
Retrieve the schema of the given model- Specified by:
getSchema
in interfaceAdmin
allowedTypes
-EnumSet
Type of schema objects to retrieve, null means ALL the schema object typestypeNamePattern
- RegEx pattern to filter to names of tables, procedures that are being read. Null means no filter.- Throws:
AdminException
-
removeDataRoleMapping
public void removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
Description copied from interface:Admin
Remove a Role name to the Data Role in a given VDB- Specified by:
removeDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
setAnyAuthenticatedForDataRole
public void setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
Description copied from interface:Admin
Set the any authenticated flag on the Data Role in a given VDB- Specified by:
setAnyAuthenticatedForDataRole
in interfaceAdmin
- Throws:
AdminException
-
changeVDBConnectionType
public void changeVDBConnectionType(String vdbName, String vdbVersion, VDB.ConnectionType type) throws AdminException
Description copied from interface:Admin
Change theVDB.ConnectionType
of theVDB
.- Specified by:
changeVDBConnectionType
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDB- Throws:
AdminException
-
updateSource
public void updateSource(String vdbName, String vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
Description copied from interface:Admin
Update a source'sTranslator
and Data source- Specified by:
updateSource
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDBsourceName
- source namedsName
- data source name that can found in the JNDI map.- Throws:
AdminException
-
addSource
public void addSource(String vdbName, String vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
Description copied from interface:Admin
Adds aTranslator
and Data source to aVDB
's Model- Specified by:
addSource
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDBmodelName
- Name of the ModelsourceName
- source namedsName
- data source name that can found in the JNDI map.- Throws:
AdminException
-
removeSource
public void removeSource(String vdbName, String vdbVersion, String modelName, String sourceName) throws AdminException
Description copied from interface:Admin
Removes aTranslator
and Data source from aVDB
's Model- Specified by:
removeSource
in interfaceAdmin
- Parameters:
vdbName
- Name of the VDBvdbVersion
- Version of the VDBmodelName
- Name of the ModelsourceName
- source name- Throws:
AdminException
-
markDataSourceAvailable
public void markDataSourceAvailable(String jndiName) throws AdminException
Description copied from interface:Admin
Tell the engine that the given source is available. Pending dynamic vdb metadata loads will be resumed.- Specified by:
markDataSourceAvailable
in interfaceAdmin
- Throws:
AdminException
-
restartVDB
public void restartVDB(String vdbName, String vdbVersion, String... models) throws AdminException
Description copied from interface:Admin
Restart the VDB. This issues reload of the metadata.- Specified by:
restartVDB
in interfaceAdmin
models
- names for which metadata needs to be reloaded, if null or not supplied all models reloaded- Throws:
AdminException
-
getSchema
public String getSchema(String vdbName, String vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
Description copied from interface:Admin
Retrieve the schema of the given model- Specified by:
getSchema
in interfaceAdmin
allowedTypes
-EnumSet
Type of schema objects to retrieve, null means ALL the schema object typestypeNamePattern
- RegEx pattern to filter to names of tables, procedures that are being read. Null means no filter.- Throws:
AdminException
-
getQueryPlan
public String getQueryPlan(String sessionId, long executionId) throws AdminException
Description copied from interface:Admin
Get the Query Plan for the given session with provided execution id.- Specified by:
getQueryPlan
in interfaceAdmin
- Returns:
- Throws:
AdminException
-
restart
public void restart()
Description copied from interface:Admin
Restart the Server
-
flush
public void flush()
-
-