public class WildflyDataSourceManagementClient extends WildflyBaseClient
admin, ADMIN, DEFAULT_ADMIN, DEFAULT_ADMIN_PASSWORD, DEFAULT_HOST, DEFAULT_PORT, DEFAULT_REALM, host, HOST, HTTP_REMOTING_PROTOCOL, HTTPS_REMOTING_PROTOCOL, JBOSS_SERVER_NAME, password, PASSWORD, port, PORT, profile, PROFILE, protocol, PROTOCOL, realm, REALM, REFERENCE_SERVER_HOST, REFERENCE_SERVER_NAME, referenceServerHost, referenceServerName, SERVER_GROUP, serverGroup| Constructor and Description |
|---|
WildflyDataSourceManagementClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
createDataSource(WildflyDataSourceDef dataSourceDef)
Creates a data source.
|
void |
deleteDataSource(String name)
Deletes an existing data source.
|
void |
enableDataSource(String name,
boolean enable)
Enables/Disables a data source.
|
List<WildflyDataSourceDef> |
getDataSources()
Gets the definitions of the currently available data sources.
|
void |
updateDataSource(WildflyDataSourceDef dataSourceDef)
Updates an existing data source.
|
checkResponse, createControllerClient, createControllerClient, getHosts, getReferenceServerHost, getReferenceServerName, getServers, isFailure, isStandalone, loadConfig, safeClose, testConnectionpublic void createDataSource(WildflyDataSourceDef dataSourceDef) throws Exception
Exceptionpublic void updateDataSource(WildflyDataSourceDef dataSourceDef) throws Exception
Exceptionpublic List<WildflyDataSourceDef> getDataSources() throws Exception
Exceptionpublic void enableDataSource(String name, boolean enable) throws Exception
name - The data source name.enable - true: enables the data source, false: disables the data source.ExceptionCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.