Package org.teiid.runtime
Class EmbeddedAdminImpl
- java.lang.Object
-
- org.teiid.runtime.EmbeddedAdminImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.adminapi.Admin
Admin.Cache, Admin.SchemaObjectType, Admin.TranlatorPropertyType
-
-
Constructor Summary
Constructors Constructor Description EmbeddedAdminImpl(EmbeddedServer embeddedServer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName)
void
addDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName)
void
addSource(String vdbName, int vdbVersion, String modelName, String sourceName, String translatorName, String dsName)
void
addSource(String vdbName, String vdbVersion, String modelName, String sourceName, String translatorName, String dsName)
void
cancelRequest(String sessionId, long executionId)
void
changeVDBConnectionType(String vdbName, int vdbVersion, VDB.ConnectionType type)
void
changeVDBConnectionType(String vdbName, String vdbVersion, VDB.ConnectionType type)
void
clearCache(String cacheType)
void
clearCache(String cacheType, String vdbName, int vdbVersion)
void
clearCache(String cacheType, String vdbName, String vdbVersion)
void
close()
void
createDataSource(String deploymentName, String templateName, Properties properties)
void
deleteDataSource(String deployedName)
void
deploy(String deployName, InputStream content)
void
deploy(String deployName, InputStream content, boolean peristent)
void
deployVDBZip(URL url)
Collection<? extends CacheStatistics>
getCacheStats(String cacheType)
Collection<String>
getCacheTypes()
Properties
getDataSource(String deployedName)
Collection<String>
getDataSourceNames()
Set<String>
getDataSourceTemplateNames()
List<String>
getDeployments()
Collection<? extends EngineStatistics>
getEngineStats()
String
getQueryPlan(String sessionId, long executionId)
Collection<? extends Request>
getRequests()
Collection<? extends Request>
getRequestsForSession(String sessionId)
String
getSchema(String vdbName, int vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern)
String
getSchema(String vdbName, String vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern)
Collection<? extends Session>
getSessions()
Collection<? extends PropertyDefinition>
getTemplatePropertyDefinitions(String templateName)
Collection<? extends Transaction>
getTransactions()
Translator
getTranslator(String deployedName)
Collection<? extends PropertyDefinition>
getTranslatorPropertyDefinitions(String translatorName)
Collection<? extends PropertyDefinition>
getTranslatorPropertyDefinitions(String translatorName, Admin.TranlatorPropertyType type)
Collection<? extends Translator>
getTranslators()
VDB
getVDB(String vdbName, int vdbVersion)
VDB
getVDB(String vdbName, String vdbVersion)
Collection<? extends VDB>
getVDBs()
Collection<? extends VDB>
getVDBs(boolean singleInstance)
Collection<? extends WorkerPoolStatistics>
getWorkerPoolStats()
void
markDataSourceAvailable(String jndiName)
static String
prettyFormat(String input)
void
removeDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName)
void
removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName)
void
removeSource(String vdbName, int vdbVersion, String modelName, String sourceName)
void
removeSource(String vdbName, String vdbVersion, String modelName, String sourceName)
void
restart()
void
restartVDB(String vdbName, int vdbVersion, String... models)
void
restartVDB(String vdbName, String vdbVersion, String... models)
void
setAnyAuthenticatedForDataRole(String vdbName, int vdbVersion, String dataRole, boolean anyAuthenticated)
void
setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated)
void
setProfileName(String name)
void
terminateSession(String sessionId)
void
terminateTransaction(String transactionId)
void
undeploy(String deployedName)
void
updateSource(String vdbName, int vdbVersion, String sourceName, String translatorName, String dsName)
void
updateSource(String vdbName, String vdbVersion, String sourceName, String translatorName, String dsName)
-
-
-
Constructor Detail
-
EmbeddedAdminImpl
public EmbeddedAdminImpl(EmbeddedServer embeddedServer)
-
-
Method Detail
-
setProfileName
public void setProfileName(String name)
- Specified by:
setProfileName
in interfaceAdmin
-
clearCache
public void clearCache(String cacheType, String vdbName, int vdbVersion) throws AdminException
- Specified by:
clearCache
in interfaceAdmin
- Throws:
AdminException
-
addDataRoleMapping
public void addDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
- Specified by:
addDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
removeDataRoleMapping
public void removeDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
- Specified by:
removeDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
setAnyAuthenticatedForDataRole
public void setAnyAuthenticatedForDataRole(String vdbName, int vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
- Specified by:
setAnyAuthenticatedForDataRole
in interfaceAdmin
- Throws:
AdminException
-
changeVDBConnectionType
public void changeVDBConnectionType(String vdbName, int vdbVersion, VDB.ConnectionType type) throws AdminException
- Specified by:
changeVDBConnectionType
in interfaceAdmin
- Throws:
AdminException
-
updateSource
public void updateSource(String vdbName, int vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
- Specified by:
updateSource
in interfaceAdmin
- Throws:
AdminException
-
addSource
public void addSource(String vdbName, int vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
- Specified by:
addSource
in interfaceAdmin
- Throws:
AdminException
-
getVDB
public VDB getVDB(String vdbName, int vdbVersion) throws AdminException
- Specified by:
getVDB
in interfaceAdmin
- Throws:
AdminException
-
removeSource
public void removeSource(String vdbName, int vdbVersion, String modelName, String sourceName) throws AdminException
- Specified by:
removeSource
in interfaceAdmin
- Throws:
AdminException
-
restartVDB
public void restartVDB(String vdbName, int vdbVersion, String... models) throws AdminException
- Specified by:
restartVDB
in interfaceAdmin
- Throws:
AdminException
-
getSchema
public String getSchema(String vdbName, int vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
- Specified by:
getSchema
in interfaceAdmin
- Throws:
AdminException
-
removeSource
public void removeSource(String vdbName, String vdbVersion, String modelName, String sourceName) throws AdminException
- Specified by:
removeSource
in interfaceAdmin
- Throws:
AdminException
-
addSource
public void addSource(String vdbName, String vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
- Specified by:
addSource
in interfaceAdmin
- Throws:
AdminException
-
updateSource
public void updateSource(String vdbName, String vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
- Specified by:
updateSource
in interfaceAdmin
- Throws:
AdminException
-
changeVDBConnectionType
public void changeVDBConnectionType(String vdbName, String vdbVersion, VDB.ConnectionType type) throws AdminException
- Specified by:
changeVDBConnectionType
in interfaceAdmin
- Throws:
AdminException
-
deployVDBZip
public void deployVDBZip(URL url) throws AdminProcessingException
- Specified by:
deployVDBZip
in interfaceAdmin
- Throws:
AdminProcessingException
-
deploy
public void deploy(String deployName, InputStream content) throws AdminException
- Specified by:
deploy
in interfaceAdmin
- Throws:
AdminException
-
deploy
public void deploy(String deployName, InputStream content, boolean peristent) throws AdminException
- Specified by:
deploy
in interfaceAdmin
- Throws:
AdminException
-
undeploy
public void undeploy(String deployedName) throws AdminException
- Specified by:
undeploy
in interfaceAdmin
- Throws:
AdminException
-
getVDBs
public Collection<? extends VDB> getVDBs() throws AdminException
- Specified by:
getVDBs
in interfaceAdmin
- Throws:
AdminException
-
getVDBs
public Collection<? extends VDB> getVDBs(boolean singleInstance) throws AdminException
- Specified by:
getVDBs
in interfaceAdmin
- Throws:
AdminException
-
getVDB
public VDB getVDB(String vdbName, String vdbVersion) throws AdminException
- Specified by:
getVDB
in interfaceAdmin
- Throws:
AdminException
-
restartVDB
public void restartVDB(String vdbName, String vdbVersion, String... models) throws AdminException
- Specified by:
restartVDB
in interfaceAdmin
- Throws:
AdminException
-
getTranslators
public Collection<? extends Translator> getTranslators() throws AdminException
- Specified by:
getTranslators
in interfaceAdmin
- Throws:
AdminException
-
getTranslator
public Translator getTranslator(String deployedName) throws AdminException
- Specified by:
getTranslator
in interfaceAdmin
- Throws:
AdminException
-
getWorkerPoolStats
public Collection<? extends WorkerPoolStatistics> getWorkerPoolStats() throws AdminException
- Specified by:
getWorkerPoolStats
in interfaceAdmin
- Throws:
AdminException
-
getCacheTypes
public Collection<String> getCacheTypes() throws AdminException
- Specified by:
getCacheTypes
in interfaceAdmin
- Throws:
AdminException
-
getSessions
public Collection<? extends Session> getSessions() throws AdminException
- Specified by:
getSessions
in interfaceAdmin
- Throws:
AdminException
-
getRequests
public Collection<? extends Request> getRequests() throws AdminException
- Specified by:
getRequests
in interfaceAdmin
- Throws:
AdminException
-
getRequestsForSession
public Collection<? extends Request> getRequestsForSession(String sessionId) throws AdminException
- Specified by:
getRequestsForSession
in interfaceAdmin
- Throws:
AdminException
-
getTemplatePropertyDefinitions
public Collection<? extends PropertyDefinition> getTemplatePropertyDefinitions(String templateName) throws AdminException
- Specified by:
getTemplatePropertyDefinitions
in interfaceAdmin
- Throws:
AdminException
-
getTranslatorPropertyDefinitions
public Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName) throws AdminException
- Specified by:
getTranslatorPropertyDefinitions
in interfaceAdmin
- Throws:
AdminException
-
getTranslatorPropertyDefinitions
public Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName, Admin.TranlatorPropertyType type) throws AdminException
- Specified by:
getTranslatorPropertyDefinitions
in interfaceAdmin
- Throws:
AdminException
-
getTransactions
public Collection<? extends Transaction> getTransactions() throws AdminException
- Specified by:
getTransactions
in interfaceAdmin
- Throws:
AdminException
-
clearCache
public void clearCache(String cacheType) throws AdminException
- Specified by:
clearCache
in interfaceAdmin
- Throws:
AdminException
-
clearCache
public void clearCache(String cacheType, String vdbName, String vdbVersion) throws AdminException
- Specified by:
clearCache
in interfaceAdmin
- Throws:
AdminException
-
getCacheStats
public Collection<? extends CacheStatistics> getCacheStats(String cacheType) throws AdminException
- Specified by:
getCacheStats
in interfaceAdmin
- Throws:
AdminException
-
getEngineStats
public Collection<? extends EngineStatistics> getEngineStats() throws AdminException
- Specified by:
getEngineStats
in interfaceAdmin
- Throws:
AdminException
-
terminateSession
public void terminateSession(String sessionId) throws AdminException
- Specified by:
terminateSession
in interfaceAdmin
- Throws:
AdminException
-
cancelRequest
public void cancelRequest(String sessionId, long executionId) throws AdminException
- Specified by:
cancelRequest
in interfaceAdmin
- Throws:
AdminException
-
terminateTransaction
public void terminateTransaction(String transactionId) throws AdminException
- Specified by:
terminateTransaction
in interfaceAdmin
- Throws:
AdminException
-
addDataRoleMapping
public void addDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
- Specified by:
addDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
removeDataRoleMapping
public void removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
- Specified by:
removeDataRoleMapping
in interfaceAdmin
- Throws:
AdminException
-
setAnyAuthenticatedForDataRole
public void setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
- Specified by:
setAnyAuthenticatedForDataRole
in interfaceAdmin
- Throws:
AdminException
-
createDataSource
public void createDataSource(String deploymentName, String templateName, Properties properties) throws AdminException
- Specified by:
createDataSource
in interfaceAdmin
- Throws:
AdminException
-
getDataSource
public Properties getDataSource(String deployedName) throws AdminException
- Specified by:
getDataSource
in interfaceAdmin
- Throws:
AdminException
-
deleteDataSource
public void deleteDataSource(String deployedName) throws AdminException
- Specified by:
deleteDataSource
in interfaceAdmin
- Throws:
AdminException
-
getDataSourceNames
public Collection<String> getDataSourceNames() throws AdminException
- Specified by:
getDataSourceNames
in interfaceAdmin
- Throws:
AdminException
-
getDataSourceTemplateNames
public Set<String> getDataSourceTemplateNames() throws AdminException
- Specified by:
getDataSourceTemplateNames
in interfaceAdmin
- Throws:
AdminException
-
markDataSourceAvailable
public void markDataSourceAvailable(String jndiName) throws AdminException
- Specified by:
markDataSourceAvailable
in interfaceAdmin
- Throws:
AdminException
-
getSchema
public String getSchema(String vdbName, String vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
- Specified by:
getSchema
in interfaceAdmin
- Throws:
AdminException
-
prettyFormat
public static String prettyFormat(String input) throws TransformerException
- Throws:
TransformerException
-
getQueryPlan
public String getQueryPlan(String sessionId, long executionId) throws AdminException
- Specified by:
getQueryPlan
in interfaceAdmin
- Throws:
AdminException
-
getDeployments
public List<String> getDeployments() throws AdminException
- Specified by:
getDeployments
in interfaceAdmin
- Throws:
AdminException
-
-