Admin.Cache, Admin.SchemaObjectType, Admin.TranlatorPropertyType| Constructor and Description |
|---|
EmbeddedAdminImpl(EmbeddedServer embeddedServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataRoleMapping(String vdbName,
int vdbVersion,
String dataRole,
String mappedRoleName)
Assign a Role name to the Data Role in a given VDB
|
void |
addDataRoleMapping(String vdbName,
String vdbVersion,
String dataRole,
String mappedRoleName)
Assign a Role name to the Data Role in a given VDB
|
void |
addSource(String vdbName,
int vdbVersion,
String modelName,
String sourceName,
String translatorName,
String dsName)
Adds a
Translator and Data source to a VDB's Model |
void |
addSource(String vdbName,
String vdbVersion,
String modelName,
String sourceName,
String translatorName,
String dsName)
Adds a
Translator and Data source to a VDB's Model |
void |
cancelRequest(String sessionId,
long executionId)
Cancel Request
|
void |
changeVDBConnectionType(String vdbName,
int vdbVersion,
VDB.ConnectionType type)
Change the
VDB.ConnectionType of the VDB. |
void |
changeVDBConnectionType(String vdbName,
String vdbVersion,
VDB.ConnectionType type)
Change the
VDB.ConnectionType of the VDB. |
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 type
|
void |
clearCache(String cacheType,
String vdbName,
String vdbVersion)
Clear the cache of the given VDB for provided cache type
|
void |
close()
Closes the admin connection
|
void |
createDataSource(String deploymentName,
String templateName,
Properties properties)
Creates a JCA data source
|
void |
deleteDataSource(String deployedName)
Delete data source.
|
void |
deploy(String deployName,
InputStream content)
Deploy a artifact (VDB, JAR, RAR files)
|
void |
deploy(String deployName,
InputStream content,
boolean peristent)
Deploy a artifact (VDB, JAR, RAR files)
|
Collection<? extends CacheStatistics> |
getCacheStats(String cacheType)
Get the Cache Statistics for the given type
|
Collection<String> |
getCacheTypes()
Get the Caches that correspond to the specified identifier pattern
|
Properties |
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()
Returns the all names of all the data sources available in the configuration.
|
Set<String> |
getDataSourceTemplateNames()
Get the Datasource templates available in the configuration.
|
List<String> |
getDeployments()
Get existing deployments on in the sysem
|
Collection<? extends EngineStatistics> |
getEngineStats()
Get the Engine Statistics for the given type
|
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 process
|
Collection<? extends Request> |
getRequestsForSession(String sessionId)
Get the Requests for the given session
|
String |
getSchema(String vdbName,
int vdbVersion,
String modelName,
EnumSet<Admin.SchemaObjectType> allowedTypes,
String typeNamePattern)
Retrieve the schema of the given model
|
String |
getSchema(String vdbName,
String vdbVersion,
String modelName,
EnumSet<Admin.SchemaObjectType> allowedTypes,
String typeNamePattern)
Retrieve the schema of the given model
|
Collection<? extends Session> |
getSessions()
Get all the current Sessions.
|
Collection<? extends PropertyDefinition> |
getTemplatePropertyDefinitions(String templateName)
Get all of the available configuration Properties for the specified connector
|
Collection<? 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)
Get all of the available configuration Properties for the specified translator
|
Collection<? extends PropertyDefinition> |
getTranslatorPropertyDefinitions(String translatorName,
Admin.TranlatorPropertyType type)
Get all of the available configuration Properties for the specified translator
|
Collection<? extends Translator> |
getTranslators()
Get the translators that are available in the configuration
|
VDB |
getVDB(String vdbName,
int vdbVersion)
Get the VDB
|
VDB |
getVDB(String vdbName,
String vdbVersion)
Get the VDB
|
Collection<? extends VDB> |
getVDBs()
Get the VDBs that currently deployed in the system
|
Collection<? extends WorkerPoolStatistics> |
getWorkerPoolStats()
Get the Worker Pool statistics in runtime engine.
|
void |
markDataSourceAvailable(String jndiName)
Tell the engine that the given source is available.
|
static String |
prettyFormat(String input) |
void |
removeDataRoleMapping(String vdbName,
int vdbVersion,
String dataRole,
String mappedRoleName)
Remove a Role name to the Data Role in a given VDB
|
void |
removeDataRoleMapping(String vdbName,
String vdbVersion,
String dataRole,
String mappedRoleName)
Remove a Role name to the Data Role in a given VDB
|
void |
removeSource(String vdbName,
int vdbVersion,
String modelName,
String sourceName)
Removes a
Translator and Data source from a VDB's Model |
void |
removeSource(String vdbName,
String vdbVersion,
String modelName,
String sourceName)
Removes a
Translator and Data source from a VDB's Model |
void |
restart()
Restart the Server
|
void |
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 VDB
|
void |
setAnyAuthenticatedForDataRole(String vdbName,
String vdbVersion,
String dataRole,
boolean anyAuthenticated)
Set the any authenticated flag on the Data Role in a given VDB
|
void |
setProfileName(String name)
Set the profile name.
|
void |
terminateSession(String sessionId)
Terminate the Session
|
void |
terminateTransaction(String transactionId)
Mark the given global transaction as rollback only.
|
void |
undeploy(String deployedName)
Undeploy artifact (VDB, JAR, RAR files)
|
void |
updateSource(String vdbName,
int vdbVersion,
String sourceName,
String translatorName,
String dsName)
Update a source's
Translator and Data source |
void |
updateSource(String vdbName,
String vdbVersion,
String sourceName,
String translatorName,
String dsName)
Update a source's
Translator and Data source |
public EmbeddedAdminImpl(EmbeddedServer embeddedServer)
public void setProfileName(String name)
AdminsetProfileName in interface Adminpublic void clearCache(String cacheType, String vdbName, int vdbVersion) throws AdminException
AdminclearCache in interface AdmincacheType - Cache Type
No wild cards currently supported, must be explicitvdbName - - Name of the VDBvdbVersion - - VDB versionAdminExceptionpublic void addDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
AdminaddDataRoleMapping in interface AdminAdminExceptionpublic void removeDataRoleMapping(String vdbName, int vdbVersion, String dataRole, String mappedRoleName) throws AdminException
AdminremoveDataRoleMapping in interface AdminAdminExceptionpublic void setAnyAuthenticatedForDataRole(String vdbName, int vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
AdminsetAnyAuthenticatedForDataRole in interface AdminAdminExceptionpublic void changeVDBConnectionType(String vdbName, int vdbVersion, VDB.ConnectionType type) throws AdminException
AdminVDB.ConnectionType of the VDB.changeVDBConnectionType in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBAdminExceptionpublic void updateSource(String vdbName, int vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
AdminTranslator and Data sourceupdateSource in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBsourceName - source namedsName - data source name that can found in the JNDI map.AdminExceptionpublic void addSource(String vdbName, int vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
AdminTranslator and Data source to a VDB's ModeladdSource in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBmodelName - Name of the ModelsourceName - source namedsName - data source name that can found in the JNDI map.AdminExceptionpublic VDB getVDB(String vdbName, int vdbVersion) throws AdminException
AdmingetVDB in interface AdminAdminExceptionpublic void removeSource(String vdbName, int vdbVersion, String modelName, String sourceName) throws AdminException
AdminTranslator and Data source from a VDB's ModelremoveSource in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBmodelName - Name of the ModelsourceName - source nameAdminExceptionpublic void restartVDB(String vdbName, int vdbVersion, String... models) throws AdminException
AdminrestartVDB in interface Adminmodels - names for which metadata needs to be reloaded, if null or not supplied all models reloadedAdminExceptionpublic String getSchema(String vdbName, int vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
AdmingetSchema in interface AdmintypeNamePattern - RegEx pattern to filter to names of tables, procedures that are being read. Null means no filter.AdminExceptionpublic void removeSource(String vdbName, String vdbVersion, String modelName, String sourceName) throws AdminException
AdminTranslator and Data source from a VDB's ModelremoveSource in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBmodelName - Name of the ModelsourceName - source nameAdminExceptionpublic void addSource(String vdbName, String vdbVersion, String modelName, String sourceName, String translatorName, String dsName) throws AdminException
AdminTranslator and Data source to a VDB's ModeladdSource in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBmodelName - Name of the ModelsourceName - source namedsName - data source name that can found in the JNDI map.AdminExceptionpublic void updateSource(String vdbName, String vdbVersion, String sourceName, String translatorName, String dsName) throws AdminException
AdminTranslator and Data sourceupdateSource in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBsourceName - source namedsName - data source name that can found in the JNDI map.AdminExceptionpublic void changeVDBConnectionType(String vdbName, String vdbVersion, VDB.ConnectionType type) throws AdminException
AdminVDB.ConnectionType of the VDB.changeVDBConnectionType in interface AdminvdbName - Name of the VDBvdbVersion - Version of the VDBAdminExceptionpublic void deploy(String deployName, InputStream content) throws AdminException
Admindeploy in interface AdmindeployName - Name of the VDB file to save underAdminExceptionpublic void deploy(String deployName, InputStream content, boolean peristent) throws AdminException
Admindeploy in interface AdmindeployName - Name of the VDB file to save underperistent - the deployed artifact is persisted or notAdminExceptionpublic void undeploy(String deployedName) throws AdminException
Adminundeploy in interface AdminAdminExceptionpublic Collection<? extends VDB> getVDBs() throws AdminException
AdmingetVDBs in interface AdminVDBs. There could be multiple VDBs with the
same name in the Collection but they will differ by VDB version.AdminExceptionpublic VDB getVDB(String vdbName, String vdbVersion) throws AdminException
AdmingetVDB in interface AdminAdminExceptionpublic void restartVDB(String vdbName, String vdbVersion, String... models) throws AdminException
AdminrestartVDB in interface Adminmodels - names for which metadata needs to be reloaded, if null or not supplied all models reloadedAdminExceptionpublic Collection<? extends Translator> getTranslators() throws AdminException
AdmingetTranslators in interface AdminTranslatorAdminExceptionpublic Translator getTranslator(String deployedName) throws AdminException
AdmingetTranslator in interface AdmindeployedName - - name of the deployed translatorAdminExceptionpublic Collection<? extends WorkerPoolStatistics> getWorkerPoolStats() throws AdminException
AdmingetWorkerPoolStats in interface AdminWorkerPoolStatisticsAdminExceptionpublic Collection<String> getCacheTypes() throws AdminException
AdmingetCacheTypes in interface AdminStringAdminExceptionpublic Collection<? extends Session> getSessions() throws AdminException
AdmingetSessions in interface AdminSessionAdminExceptionpublic Collection<? extends Request> getRequests() throws AdminException
AdmingetRequests in interface AdminRequestAdminExceptionpublic Collection<? extends Request> getRequestsForSession(String sessionId) throws AdminException
AdmingetRequestsForSession in interface AdminRequestAdminExceptionpublic Collection<? extends PropertyDefinition> getTemplatePropertyDefinitions(String templateName) throws AdminException
AdmingetTemplatePropertyDefinitions in interface AdmintemplateName - - Name of the connectorAdminExceptionpublic Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName) throws AdminException
AdmingetTranslatorPropertyDefinitions in interface AdmintranslatorName - - Name of the translatorAdminExceptiongetTranslatorPropertyDefinitionspublic Collection<? extends PropertyDefinition> getTranslatorPropertyDefinitions(String translatorName, Admin.TranlatorPropertyType type) throws AdminException
AdmingetTranslatorPropertyDefinitions in interface AdmintranslatorName - - Name of the translatortype - - Type of property definition (import, override, extension-metadata)AdminExceptionpublic Collection<? extends Transaction> getTransactions() throws AdminException
AdmingetTransactions in interface AdminAdminExceptionpublic void clearCache(String cacheType) throws AdminException
AdminclearCache in interface AdmincacheType - Cache Type
No wild cards currently supported, must be explicitAdminExceptionpublic void clearCache(String cacheType, String vdbName, String vdbVersion) throws AdminException
AdminclearCache in interface AdmincacheType - Cache Type
No wild cards currently supported, must be explicitvdbName - - Name of the VDBvdbVersion - - VDB versionAdminExceptionpublic Collection<? extends CacheStatistics> getCacheStats(String cacheType) throws AdminException
AdmingetCacheStats in interface AdmincacheType - Cache TypeCacheStatisticsAdminExceptionpublic Collection<? extends EngineStatistics> getEngineStats() throws AdminException
AdmingetEngineStats in interface AdminEngineStatisticsAdminExceptionpublic void terminateSession(String sessionId) throws AdminException
AdminterminateSession in interface AdminAdminExceptionpublic void cancelRequest(String sessionId, long executionId) throws AdminException
AdmincancelRequest in interface AdminsessionId - session Identifier for the request.executionId - request IdentifierAdminExceptionpublic void terminateTransaction(String transactionId) throws AdminException
AdminterminateTransaction in interface AdminAdminExceptionpublic void close()
Adminpublic void addDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
AdminaddDataRoleMapping in interface AdminAdminExceptionpublic void removeDataRoleMapping(String vdbName, String vdbVersion, String dataRole, String mappedRoleName) throws AdminException
AdminremoveDataRoleMapping in interface AdminAdminExceptionpublic void setAnyAuthenticatedForDataRole(String vdbName, String vdbVersion, String dataRole, boolean anyAuthenticated) throws AdminException
AdminsetAnyAuthenticatedForDataRole in interface AdminAdminExceptionpublic void createDataSource(String deploymentName, String templateName, Properties properties) throws AdminException
AdmincreateDataSource in interface AdmindeploymentName - - name of the sourcetemplateName - - template of data sourceproperties - - propertiesAdminExceptionpublic Properties getDataSource(String deployedName) throws AdminException
AdmingetDataSource in interface AdminAdminExceptionpublic void deleteDataSource(String deployedName) throws AdminException
AdmindeleteDataSource in interface AdminAdminExceptionpublic Collection<String> getDataSourceNames() throws AdminException
AdmingetDataSourceNames in interface AdminAdminExceptionpublic Set<String> getDataSourceTemplateNames() throws AdminException
AdmingetDataSourceTemplateNames in interface AdminAdminExceptionpublic void markDataSourceAvailable(String jndiName) throws AdminException
AdminmarkDataSourceAvailable in interface AdminAdminExceptionpublic String getSchema(String vdbName, String vdbVersion, String modelName, EnumSet<Admin.SchemaObjectType> allowedTypes, String typeNamePattern) throws AdminException
AdmingetSchema in interface AdmintypeNamePattern - RegEx pattern to filter to names of tables, procedures that are being read. Null means no filter.AdminExceptionpublic static String prettyFormat(String input) throws TransformerException
TransformerExceptionpublic String getQueryPlan(String sessionId, long executionId) throws AdminException
AdmingetQueryPlan in interface AdminAdminExceptionpublic void restart()
Adminpublic List<String> getDeployments() throws AdminException
AdmingetDeployments in interface AdminAdminExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.