Class WildflyDataSourceManagementClient
- java.lang.Object
-
- org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
-
- org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyDataSourceManagementClient
-
public class WildflyDataSourceManagementClient extends WildflyBaseClient
Helper client for creating/modifying/deletion of data sources on a Wildfly server.
-
-
Field Summary
-
Fields inherited from class org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.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 Summary
Constructors Constructor Description WildflyDataSourceManagementClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateDataSource(WildflyDataSourceDef dataSourceDef)Creates a data source.voiddeleteDataSource(String name)Deletes an existing data source.voidenableDataSource(String name, boolean enable)Enables/Disables a data source.List<WildflyDataSourceDef>getDataSources()Gets the definitions of the currently available data sources.voidupdateDataSource(WildflyDataSourceDef dataSourceDef)Updates an existing data source.-
Methods inherited from class org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
checkResponse, createControllerClient, createControllerClient, getHosts, getReferenceServerHost, getReferenceServerName, getServers, isFailure, isStandalone, loadConfig, safeClose, testConnection
-
-
-
-
Method Detail
-
createDataSource
public void createDataSource(WildflyDataSourceDef dataSourceDef) throws Exception
Creates a data source.- Throws:
Exception
-
updateDataSource
public void updateDataSource(WildflyDataSourceDef dataSourceDef) throws Exception
Updates an existing data source.- Throws:
Exception
-
getDataSources
public List<WildflyDataSourceDef> getDataSources() throws Exception
Gets the definitions of the currently available data sources.- Throws:
Exception
-
enableDataSource
public void enableDataSource(String name, boolean enable) throws Exception
Enables/Disables a data source.- Parameters:
name- The data source name.enable- true: enables the data source, false: disables the data source.- Throws:
Exception
-
-