public class DefaultMetadataInstance extends Object implements MetadataInstance
MetadataInstance.Condition, MetadataInstance.ConnectivityType
DEFAULT_ADMIN_PASSWORD, DEFAULT_ADMIN_PORT, DEFAULT_ADMIN_USER, DEFAULT_INSTANCE_PROTOCOL, DEFAULT_JDBC_PASSWORD, DEFAULT_JDBC_PORT, DEFAULT_JDBC_USER, HOST, NO_LIMIT, NO_OFFSET, PING_VDB, PING_VDB_NAME
AMPERSAND, AT, BR, CLASS, CLOSE_ANGLE_BRACKET, CLOSE_BRACE, CLOSE_BRACKET, CLOSE_PRE_CMT, CLOSE_PRE_TAG, CLOSE_SQUARE_BRACKET, COLON, COMMA, CONNECTION_SUFFIX, CURRENT_FOLDER_SYMBOL, DDL, DEFAULT_LOCAL_WORKSPACE_NAME, DIVIDE, DOLLAR_SIGN, DOT, DOT_CHAR, DOT_DOT, DOT_KOMODO, DOUBLE_BACK_SLASH, DRIVE_SEPARATOR, EMPTY_ARRAY, EMPTY_STRING, ENUM, EQUALS, FILE_EXTENSION_SEPARATOR, FILE_NAME_WILDCARD, FINAL, FORWARD_SLASH, HASH, HYPHEN, INTERFACE, JAR, JAVA, JAVA_IO_TMPDIR, JBOSS_SERVER_TMP_DIR, KOMODO, LINE_SEPARATOR, LINE_SEPARATOR_PROPERTY_NAME, LOG, MINUS, MULTIPLY, NBSP, NEW_LINE, OPEN_ANGLE_BRACKET, OPEN_BRACE, OPEN_BRACKET, OPEN_PRE_CMT, OPEN_PRE_TAG, OPEN_SQUARE_BRACKET, PARENT_FOLDER_SYMBOL, PERCENT, PIPE, PLUS, PREFIX_PATTERN, PRIVATE, PUBLIC, QUESTION_MARK, QUOTE_MARK, SEMI_COLON, SERVICE_VDB_SUFFIX, SERVICE_VDB_VIEW_MODEL, SERVICE_VDB_VIEW_SUFFIX, SOURCES, SPACE, SPEECH_MARK, SRC, STAR, STATIC, TAB, TARGET, UNDERSCORE, UNDERSCORE_CHAR, VDB_DEPLOYMENT_SUFFIX, VDB_PREFIX, XML, XML_SUFFIX, ZIP, ZIP_SUFFIX
Constructor and Description |
---|
DefaultMetadataInstance(TeiidConnectionProvider connectionProvider) |
public DefaultMetadataInstance(TeiidConnectionProvider connectionProvider)
public static DataTypeService dataTypeService()
public static MetadataVersion metadataVersion()
public org.teiid.adminapi.Admin admin() throws org.teiid.adminapi.AdminException
org.teiid.adminapi.AdminException
protected static KException handleError(Throwable e)
KException
if necessary.e
- the error being handled (cannot be null
)null
)protected void checkStarted() throws KException
KException
public MetadataInstance.Condition getCondition()
getCondition
in interface MetadataInstance
public void refresh() throws KException
refresh
in interface MetadataInstance
KException
public void notify(MetadataClientEvent event)
notify
in interface MetadataInstance
public void addObserver(MetadataObserver observer)
addObserver
in interface MetadataInstance
public void removeObserver(MetadataObserver observer)
removeObserver
in interface MetadataInstance
public MetadataVersion getVersion()
getVersion
in interface MetadataInstance
public DataTypeService getDataTypeService()
getDataTypeService
in interface MetadataInstance
public Outcome ping(MetadataInstance.ConnectivityType connectivityType)
ping
in interface MetadataInstance
public QSResult query(String vdb, String query, int offset, int limit) throws KException
query
in interface MetadataInstance
KException
public Collection<ConnectionDriver> getDataSourceDrivers() throws KException
getDataSourceDrivers
in interface MetadataInstance
KException
public void deployDataSourceDriver(String driverName, File driverFile) throws KException
deployDataSourceDriver
in interface MetadataInstance
KException
public void undeployDataSourceDriver(String driverName) throws KException
undeployDataSourceDriver
in interface MetadataInstance
KException
public boolean dataSourceExists(String name) throws KException
dataSourceExists
in interface MetadataInstance
KException
public TeiidDataSource getOrCreateDataSource(String displayName, String dsName, String typeName, Properties properties) throws KException
getOrCreateDataSource
in interface MetadataInstance
KException
public TeiidDataSource getDataSource(String name) throws KException
getDataSource
in interface MetadataInstance
KException
public void deleteDataSource(String dsName) throws KException
deleteDataSource
in interface MetadataInstance
KException
public Collection<TeiidDataSource> getDataSources() throws KException
getDataSources
in interface MetadataInstance
KException
public TeiidTranslator getTranslator(String name) throws KException
getTranslator
in interface MetadataInstance
KException
public Collection<TeiidTranslator> getTranslators() throws KException
getTranslators
in interface MetadataInstance
KException
public Collection<String> getVdbNames() throws KException
getVdbNames
in interface MetadataInstance
KException
public boolean hasVdb(String name) throws KException
hasVdb
in interface MetadataInstance
KException
public boolean isVdbActive(String vdbName) throws KException
isVdbActive
in interface MetadataInstance
KException
public boolean isVdbLoading(String vdbName) throws KException
isVdbLoading
in interface MetadataInstance
KException
public boolean hasVdbFailed(String vdbName) throws KException
hasVdbFailed
in interface MetadataInstance
KException
public boolean wasVdbRemoved(String vdbName) throws KException
wasVdbRemoved
in interface MetadataInstance
KException
public List<String> retrieveVdbValidityErrors(String vdbName) throws KException
retrieveVdbValidityErrors
in interface MetadataInstance
KException
public Collection<TeiidVdb> getVdbs() throws KException
getVdbs
in interface MetadataInstance
KException
public TeiidVdb getVdb(String name) throws KException
getVdb
in interface MetadataInstance
KException
public void deployDynamicVdb(String vdbName, String deploymentName, InputStream inStream) throws KException
deployDynamicVdb
in interface MetadataInstance
KException
public void undeployDynamicVdb(String vdbName) throws KException
undeployDynamicVdb
in interface MetadataInstance
KException
public String getSchema(String vdbName, String vdbVersion, String modelName) throws KException
getSchema
in interface MetadataInstance
KException
public Set<String> getDataSourceTemplateNames() throws KException
getDataSourceTemplateNames
in interface MetadataInstance
KException
public Collection<TeiidPropertyDefinition> getTemplatePropertyDefns(String templateName) throws KException
getTemplatePropertyDefns
in interface MetadataInstance
KException
public static org.teiid.query.sql.LanguageObject parse(String sql) throws KException
LanguageObject
treesql
- LanguageObject
sKException
Copyright © 2013–2019. All rights reserved.