@ApplicationScoped @Named(value="WildflyDataSourceProvider") public class WildflyDataSourceProvider extends Object implements DataSourceProvider
| Constructor and Description |
|---|
WildflyDataSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
DataSourceDeploymentInfo |
deploy(DataSourceDef dataSourceDef) |
DataSourceDeploymentInfo |
getDeploymentInfo(String uuid)
Gets the deployment information about a data source definition.
|
List<DataSourceDef> |
getDeployments()
Gets the list of data source definitions for the currently defined data sources in the Wildfly server.
|
List<DataSourceDeploymentInfo> |
getDeploymentsInfo()
Gets the deployment information for all the data sources currently defined on the Wildfly server.
|
void |
loadConfig(Properties properties) |
DataSource |
lookupDataSource(DataSourceDeploymentInfo deploymentInfo) |
DataSourceDeploymentInfo |
resync(DataSourceDef dataSourceDef,
DataSourceDeploymentInfo deploymentInfo) |
void |
undeploy(DataSourceDeploymentInfo deploymentInfo) |
void |
undeploy(String uuid)
Deletes a data source in the Widlfy server.
|
public List<DataSourceDef> getDeployments() throws Exception
getDeployments in interface DataSourceProviderException - exceptions may be thrown if e.g. communication with the Wildfly server fails, etc.public DataSourceDeploymentInfo deploy(DataSourceDef dataSourceDef) throws Exception
deploy in interface DataSourceProviderExceptionpublic DataSourceDeploymentInfo resync(DataSourceDef dataSourceDef, DataSourceDeploymentInfo deploymentInfo) throws Exception
resync in interface DataSourceProviderExceptionpublic void undeploy(String uuid) throws Exception
uuid - Identifier of the data source definition to be deleted.Exception - exceptions may be thrown if the data source couldn't be deleted.public void undeploy(DataSourceDeploymentInfo deploymentInfo) throws Exception
undeploy in interface DataSourceProviderExceptionpublic DataSourceDeploymentInfo getDeploymentInfo(String uuid) throws Exception
getDeploymentInfo in interface DataSourceProvideruuid - the data source definition identifier.Exception - exceptions may be thrown if e.g. communication with the Wildfly server fails, etc.public List<DataSourceDeploymentInfo> getDeploymentsInfo() throws Exception
getDeploymentsInfo in interface DataSourceProviderException - exceptions may be thrown if e.g. communication with the Wildfly server fails, etc.public DataSource lookupDataSource(DataSourceDeploymentInfo deploymentInfo) throws Exception
lookupDataSource in interface DataSourceProviderExceptionpublic void loadConfig(Properties properties)
loadConfig in interface DataSourceProviderCopyright © 2001–2016 JBoss by Red Hat. All rights reserved.