@ApplicationScoped @Named(value="WildflyDriverProvider") public class WildflyDriverProvider extends Object implements DriverProvider
| Constructor and Description |
|---|
WildflyDriverProvider() |
WildflyDriverProvider(MavenArtifactResolver artifactResolver) |
| Modifier and Type | Method and Description |
|---|---|
DriverDeploymentInfo |
deploy(DriverDef driverDef)
Deploys a driver definition on the Wildfly server.
|
DriverDeploymentInfo |
getDeploymentInfo(String uuid)
Gets the deployment information about a driver definition.
|
List<DriverDef> |
getDeployments()
Gets the list of driver definitions for the currently deployed drivers.
|
List<DriverDeploymentInfo> |
getDeploymentsInfo()
Gets the deployment information for all the drivers currently deployed on the Wildfly server.
|
void |
hasStarted() |
void |
loadConfig(Properties properties) |
DriverDeploymentInfo |
resync(DriverDef driverDef,
DriverDeploymentInfo deploymentInfo) |
void |
setDriverMgmtClient(WildflyDriverManagementClient driverMgmtClient)
Intended for testing purposes.
|
void |
undeploy(DriverDeploymentInfo deploymentInfo) |
public WildflyDriverProvider()
@Inject public WildflyDriverProvider(MavenArtifactResolver artifactResolver)
public DriverDeploymentInfo deploy(DriverDef driverDef) throws Exception
deploy in interface DriverProviderdriverDef - A driver definition to be deployed.Exception - exceptions may be thrown if was not possible to deploy the driver.public DriverDeploymentInfo resync(DriverDef driverDef, DriverDeploymentInfo deploymentInfo) throws Exception
resync in interface DriverProviderExceptionpublic void undeploy(DriverDeploymentInfo deploymentInfo) throws Exception
undeploy in interface DriverProviderExceptionpublic DriverDeploymentInfo getDeploymentInfo(String uuid) throws Exception
getDeploymentInfo in interface DriverProvideruuid - the driver definition identifier.Exception - exceptions may be thrown if e.g. communication with the Wildfly server fails, etc.public List<DriverDef> getDeployments() throws Exception
Exception - exceptions may be thrown if e.g. communication with the Wildfly server fails, etc.public List<DriverDeploymentInfo> getDeploymentsInfo() throws Exception
getDeploymentsInfo in interface DriverProviderException - exceptions may be thrown if e.g. communication with the Wildfly server fails, etc.public void loadConfig(Properties properties)
loadConfig in interface DriverProviderpublic void hasStarted()
throws Exception
hasStarted in interface DriverProviderExceptionpublic void setDriverMgmtClient(WildflyDriverManagementClient driverMgmtClient)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.