Package org.glassfish.jdbc.deployer
Class JdbcConnectionPoolDeployer
java.lang.Object
org.glassfish.jdbc.deployer.JdbcConnectionPoolDeployer
- All Implemented Interfaces:
org.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
@Service
@Singleton
public class JdbcConnectionPoolDeployer
extends Object
implements org.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
Handles Jdbc connection pool events in the server instance. When user adds a
jdbc connection pool , the admin instance emits resource event. The jdbc
connection pool events are propagated to this object.
The methods can potentially be called concurrently, therefore implementation
need to be synchronized.
- Author:
- Tamil Vengan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) voiddeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource, String applicationName, String moduleName) voiddisableResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) Disable the resource in the server's runtime naming contextvoidenableResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) Enable the resource in the server's runtime naming contextClass<?>[]booleanvoidredeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) voidundeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) voidundeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource, String applicationName, String moduleName) voidvalidatePreservedResource(com.sun.enterprise.config.serverbeans.Application oldApp, com.sun.enterprise.config.serverbeans.Application newApp, com.sun.enterprise.config.serverbeans.Resource resource, com.sun.enterprise.config.serverbeans.Resources allResources) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.resourcebase.resources.api.ResourceDeployer
canDeploy, supportsDynamicReconfiguration
-
Constructor Details
-
JdbcConnectionPoolDeployer
public JdbcConnectionPoolDeployer()
-
-
Method Details
-
handles
- Specified by:
handlesin interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
-
getProxyClassesForDynamicReconfiguration
- Specified by:
getProxyClassesForDynamicReconfigurationin interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
-
validatePreservedResource
public void validatePreservedResource(com.sun.enterprise.config.serverbeans.Application oldApp, com.sun.enterprise.config.serverbeans.Application newApp, com.sun.enterprise.config.serverbeans.Resource resource, com.sun.enterprise.config.serverbeans.Resources allResources) throws org.glassfish.resourcebase.resources.api.ResourceConflictException - Specified by:
validatePreservedResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Throws:
org.glassfish.resourcebase.resources.api.ResourceConflictException
-
deployResource
- Specified by:
deployResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Throws:
Exception
-
deployResource
public void deployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource, String applicationName, String moduleName) throws Exception - Specified by:
deployResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Throws:
Exception
-
undeployResource
public void undeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource, String applicationName, String moduleName) throws Exception - Specified by:
undeployResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Throws:
Exception
-
undeployResource
public void undeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) throws Exception - Specified by:
undeployResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Throws:
Exception
-
redeployResource
public void redeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) throws Exception - Specified by:
redeployResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Throws:
Exception
-
enableResource
Enable the resource in the server's runtime naming context- Specified by:
enableResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Parameters:
resource- a resource object- Throws:
UnsupportedOperationException- Currently we are not supporting this method.Exception
-
disableResource
Disable the resource in the server's runtime naming context- Specified by:
disableResourcein interfaceorg.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>- Parameters:
resource- a resource object- Throws:
UnsupportedOperationException- Currently we are not supporting this method.Exception
-