@Service @Singleton public class JdbcConnectionPoolDeployer extends Object implements ResourceDeployer
| Constructor and Description |
|---|
JdbcConnectionPoolDeployer() |
| Modifier and Type | Method and Description |
|---|---|
void |
actualDeployResource(Object resource,
PoolInfo poolInfo)
Deploy the resource into the server's runtime naming context
|
boolean |
canDeploy(boolean postApplicationDeployment,
Collection<Resource> allResources,
Resource resource)
A deployer can indicate whether a particular resource can be deployed before
application deployment
Used in case of application-scoped-resources
eg: Embedded RAR resources are created after application (that has embedded .rar)
deployment.
|
ConnectorConnectionPool |
createConnectorConnectionPool(JdbcConnectionPool adminPool,
PoolInfo poolInfo) |
void |
deployResource(Object resource)
Deploy the resource into the server's runtime naming context
|
void |
deployResource(Object resource,
String applicationName,
String moduleName)
Deploy the resource into the server's runtime naming context
This API is used in cases where the "config" bean is not
yet persisted in domain.xml and is part of the "config" transaction.
|
void |
disableResource(Object resource)
Disable the resource in the server's runtime naming context
|
void |
enableResource(Object resource)
Enable the resource in the server's runtime naming context
|
Class[] |
getProxyClassesForDynamicReconfiguration()
List of classes which need to be proxied for dynamic-reconfiguration
|
boolean |
handles(Object resource)
Indicates whether a particular resource deployer can handle the
resource in question
|
void |
redeployResource(Object resource)
Redeploy the resource into the server's runtime naming context
|
boolean |
supportsDynamicReconfiguration()
Indicates whether the resource deployer can handle
transparent-dynamic-reconfiguration of resource
|
void |
undeployResource(Object resource)
Undeploy the resource from the server's runtime naming context
|
void |
undeployResource(Object resource,
String applicationName,
String moduleName)
Undeploy the resource from the server's runtime naming context
|
void |
validatePreservedResource(Application oldApp,
Application newApp,
Resource resource,
Resources allResources) |
public void deployResource(Object resource, String applicationName, String moduleName) throws Exception
deployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)applicationName - application-namemoduleName - module-nameException - thrown if failpublic void deployResource(Object resource) throws Exception
deployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)Exception - thrown if failpublic boolean canDeploy(boolean postApplicationDeployment,
Collection<Resource> allResources,
Resource resource)
canDeploy in interface ResourceDeployerpostApplicationDeployment - post-application-deploymentallResources - resources collection in which the resource being validated is present.resource - resource to be validatedpublic void actualDeployResource(Object resource, PoolInfo poolInfo)
resource - a resource objectException - thrown if failpublic void undeployResource(Object resource, String applicationName, String moduleName) throws Exception
undeployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)applicationName - application-namemoduleName - module-nameException - thrown if failpublic void undeployResource(Object resource) throws Exception
undeployResource in interface ResourceDeployerresource - a resource object (eg. JmsResource)Exception - thrown if failpublic boolean handles(Object resource)
handles in interface ResourceDeployerresource - resource that need to be handledpublic boolean supportsDynamicReconfiguration()
ResourceDeployersupportsDynamicReconfiguration in interface ResourceDeployerpublic Class[] getProxyClassesForDynamicReconfiguration()
ResourceDeployergetProxyClassesForDynamicReconfiguration in interface ResourceDeployerpublic ConnectorConnectionPool createConnectorConnectionPool(JdbcConnectionPool adminPool, PoolInfo poolInfo) throws ConnectorRuntimeException
ConnectorRuntimeExceptionpublic void redeployResource(Object resource) throws Exception
redeployResource in interface ResourceDeployerresource - a resource objectException - thrown if failpublic void enableResource(Object resource) throws Exception
enableResource in interface ResourceDeployerresource - a resource objectUnsupportedOperationException - Currently we are not supporting this method.Exception - thrown if failpublic void disableResource(Object resource) throws Exception
disableResource in interface ResourceDeployerresource - a resource objectUnsupportedOperationException - Currently we are not supporting this method.Exception - thrown if failpublic void validatePreservedResource(Application oldApp, Application newApp, Resource resource, Resources allResources) throws ResourceConflictException
validatePreservedResource in interface ResourceDeployerResourceConflictExceptionCopyright © 2019. All rights reserved.