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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource)
     
    void
    deployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource, String applicationName, String moduleName)
     
    void
    disableResource(org.glassfish.jdbc.config.JdbcConnectionPool resource)
    Disable the resource in the server's runtime naming context
    void
    enableResource(org.glassfish.jdbc.config.JdbcConnectionPool resource)
    Enable the resource in the server's runtime naming context
    Class<?>[]
     
    boolean
    handles(Object resource)
     
    void
    redeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource)
     
    void
    undeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource)
     
    void
    undeployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource, String applicationName, String moduleName)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.glassfish.resourcebase.resources.api.ResourceDeployer

    canDeploy, supportsDynamicReconfiguration
  • Constructor Details

    • JdbcConnectionPoolDeployer

      public JdbcConnectionPoolDeployer()
  • Method Details

    • handles

      public boolean handles(Object resource)
      Specified by:
      handles in interface org.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
    • getProxyClassesForDynamicReconfiguration

      public Class<?>[] getProxyClassesForDynamicReconfiguration()
      Specified by:
      getProxyClassesForDynamicReconfiguration in interface org.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:
      validatePreservedResource in interface org.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
      Throws:
      org.glassfish.resourcebase.resources.api.ResourceConflictException
    • deployResource

      public void deployResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) throws Exception
      Specified by:
      deployResource in interface org.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:
      deployResource in interface org.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:
      undeployResource in interface org.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:
      undeployResource in interface org.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:
      redeployResource in interface org.glassfish.resourcebase.resources.api.ResourceDeployer<org.glassfish.jdbc.config.JdbcConnectionPool>
      Throws:
      Exception
    • enableResource

      public void enableResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) throws Exception
      Enable the resource in the server's runtime naming context
      Specified by:
      enableResource in interface org.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

      public void disableResource(org.glassfish.jdbc.config.JdbcConnectionPool resource) throws Exception
      Disable the resource in the server's runtime naming context
      Specified by:
      disableResource in interface org.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