Class WildflyDriverManagementClient
- java.lang.Object
-
- org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
-
- org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyDriverManagementClient
-
public class WildflyDriverManagementClient extends WildflyBaseClient
Helper client for deploying/un-deploying drivers 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 WildflyDriverManagementClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy(String deploymentId, URI uri)Creates a driver by deploying the content for the jar file.List<WildflyDriverDef>getDeployedDrivers()Gets the definitions of the currently available drivers.voidloadConfig(Properties properties)voidundeploy(String deploymentId)Un deploys a previously deployed driver.-
Methods inherited from class org.kie.workbench.common.screens.datasource.management.backend.integration.wildfly.WildflyBaseClient
checkResponse, createControllerClient, createControllerClient, getHosts, getReferenceServerHost, getReferenceServerName, getServers, isFailure, isStandalone, safeClose, testConnection
-
-
-
-
Method Detail
-
loadConfig
public void loadConfig(Properties properties)
- Overrides:
loadConfigin classWildflyBaseClient
-
deploy
public void deploy(String deploymentId, URI uri) throws Exception
Creates a driver by deploying the content for the jar file.- Parameters:
deploymentId- Deployment id to be assigned for the deployed driver. The deploymentId must be a unique identifier, and may be used later for the un-deployment operation.uri- Uri for the .jar file containing the driver implementation.- Throws:
Exception- If the deployment operation fails an exception is thrown.
-
undeploy
public void undeploy(String deploymentId) throws Exception
Un deploys a previously deployed driver.- Parameters:
deploymentId- Deployment id for the driver to be un-deployed.- Throws:
Exception- If the un-deployment operation fails an exception is thrown.
-
getDeployedDrivers
public List<WildflyDriverDef> getDeployedDrivers() throws Exception
Gets the definitions of the currently available drivers.- Throws:
Exception
-
-