@ApplicationScoped @Named(value="WildflyDataSourceProvider") public class WildflyDataSourceProvider extends Object implements DataSourceProvider
| Constructor and Description |
|---|
WildflyDataSourceProvider() |
WildflyDataSourceProvider(WildflyDriverProvider driverProvider) |
| Modifier and Type | Method and Description |
|---|---|
DataSourceDeploymentInfo |
deploy(DataSourceDef dataSourceDef) |
protected String |
generateRandomUUID()
protected for helping tests programming.
|
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 |
hasStarted() |
protected Object |
jndiLookupDataSource(String jndi)
protected for helping tests programming.
|
void |
loadConfig(Properties properties) |
DataSource |
lookupDataSource(DataSourceDeploymentInfo deploymentInfo) |
DataSourceDeploymentInfo |
resync(DataSourceDef dataSourceDef,
DataSourceDeploymentInfo deploymentInfo) |
void |
setDataSourceMgmtClient(WildflyDataSourceManagementClient dataSourceMgmtClient) |
void |
undeploy(DataSourceDeploymentInfo deploymentInfo) |
public WildflyDataSourceProvider()
@Inject public WildflyDataSourceProvider(WildflyDriverProvider driverProvider)
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 DataSourceProviderExceptionprotected String generateRandomUUID()
public DataSourceDeploymentInfo resync(DataSourceDef dataSourceDef, DataSourceDeploymentInfo deploymentInfo) throws Exception
resync in interface DataSourceProviderExceptionpublic 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 DataSourceProviderpublic void hasStarted()
throws Exception
hasStarted in interface DataSourceProviderExceptionprotected Object jndiLookupDataSource(String jndi)
public void setDataSourceMgmtClient(WildflyDataSourceManagementClient dataSourceMgmtClient)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.