Class ConnectorDescriptorInfo

  • All Implemented Interfaces:
    Serializable

    public final class ConnectorDescriptorInfo
    extends Object
    implements Serializable
    This class abstract the ra.xml values pertaining to the connection management. It contains various config properties of MCF, Resource adapter, Connection and also their respective classes and interfaces.
    Author:
    Srikanth P
    See Also:
    Serialized Form
    • Constructor Detail

      • ConnectorDescriptorInfo

        public ConnectorDescriptorInfo()
        Default constructor
      • ConnectorDescriptorInfo

        public ConnectorDescriptorInfo​(ConnectorConfigProperty[] mcfConfigProperties,
                                       ConnectorConfigProperty[] resourceAdapterConfigProperties)
        Constructor
        Parameters:
        mcfConfigProperties - Array of MCF config properties
        resourceAdapterConfigProperties - Array of Resource adapter config props
    • Method Detail

      • addMCFConfigProperty

        public void addMCFConfigProperty​(ConnectorConfigProperty configProperty)
        Adds an MCF config property to the existing array/Set of MCF config properties.
        Parameters:
        configProperty - Config property to be added.
      • removeMCFConfigProperty

        public void removeMCFConfigProperty​(ConnectorConfigProperty configProperty)
        Removes an config property from the existing array/Set of MCF config properties
        Parameters:
        configProperty - Config property to be removed.
      • setMCFConfigProperties

        public void setMCFConfigProperties​(Set configProperties)
        Setter method for MCFConfigProperties property.
        Parameters:
        configProperties - Set MCF config properties
      • setMCFConfigProperties

        public void setMCFConfigProperties​(ConnectorConfigProperty[] configProperties)
        Setter method for MCFConfigProperties property.
        Parameters:
        configProperties - Array of MCF config properties
      • getMCFConfigProperties

        public Set getMCFConfigProperties()
        Getter method for MCFConfigProperties property
        Returns:
        Set of managed connection factory config properties
      • addResourceAdapterConfigProperty

        public void addResourceAdapterConfigProperty​(ConnectorConfigProperty configProperty)
        Adds a Resource Adapter config property to the existing array/Set of Resource Adapter config properties.
        Parameters:
        configProperty - Config property to be added.
      • removeResourceAdapterConfigProperty

        public void removeResourceAdapterConfigProperty​(ConnectorConfigProperty configProperty)
        Removes a Resource Adapter config property to the existing array/Set of Resource Adapter config properties.
        Parameters:
        configProperty - Config property to be removed.
      • setResourceAdapterConfigProperties

        public void setResourceAdapterConfigProperties​(Set configProperties)
        Setter method for ResourceAdapterConfigProperties property.
        Parameters:
        configProperties - Set ResourceAdapter config properties
      • setResourceAdapterConfigProperties

        public void setResourceAdapterConfigProperties​(ConnectorConfigProperty[] configProperties)
        Setter method for ResourceAdapterConfigProperties property.
        Parameters:
        configProperties - Array ResourceAdapter config properties
      • getResourceAdapterConfigProperties

        public Set getResourceAdapterConfigProperties()
        Getter method for ResourceAdapterConfigProperties property
        Returns:
        Set of resource adapter config properties
      • getRarName

        public String getRarName()
        Getter method for RarName property
        Returns:
        rarName
      • setRarName

        public void setRarName​(String rarName)
        Setter method for RarName property
        Parameters:
        rarName - rar name
      • getResourceAdapterClassName

        public String getResourceAdapterClassName()
        Getter method for ResourceAdapterClassName property
        Returns:
        Resource adapter class name
      • setResourceAdapterClassName

        public void setResourceAdapterClassName​(String resourceAdapterClass)
        Setter method for ResourceAdapterClassName property
        Parameters:
        resourceAdapterClass - Resource adapter class name
      • getConnectionDefinitionName

        public String getConnectionDefinitionName()
        Getter method for ConnectionDefinitionName property
        Returns:
        connection definition name
      • setConnectionDefinitionName

        public void setConnectionDefinitionName​(String connectionDefinitionName)
        Setter method for ConnectionDefinitionName property
        Parameters:
        connectionDefinitionName - connection definition name
      • getManagedConnectionFactoryClass

        public String getManagedConnectionFactoryClass()
        Getter method for ManagedConnectionFactoryClass property
        Returns:
        managed connection factory class
      • setManagedConnectionFactoryClass

        public void setManagedConnectionFactoryClass​(String managedConnectionFactoryClass)
        Setter method for ManagedConnectionFactoryClass property
        Parameters:
        managedConnectionFactoryClass - managed connection factory class
      • getConnectionFactoryClass

        public String getConnectionFactoryClass()
        Getter method for ConnectionFactoryClass property
        Returns:
        connection factory class
      • setConnectionFactoryClass

        public void setConnectionFactoryClass​(String connectionFactoryClass)
        Setter method for ConnectionFactoryClass property
        Parameters:
        connectionFactoryClass - connection factory class
      • getConnectionFactoryInterface

        public String getConnectionFactoryInterface()
        Getter method for ConnectionFactoryInterface property
        Returns:
        connection factory interface class
      • setConnectionFactoryInterface

        public void setConnectionFactoryInterface​(String connectionFactoryInterface)
        Setter method for ConnectionFactoryInterface property
        Parameters:
        connectionFactoryInterface - connection factory interface class
      • getConnectionClass

        public String getConnectionClass()
        Getter method for ConnectionClass property
        Returns:
        connection class
      • setConnectionClass

        public void setConnectionClass​(String connectionClass)
        Setter method for ConnectionClass property
        Parameters:
        connectionClass - connection Class
      • getConnectionInterface

        public String getConnectionInterface()
        Getter method for ConnectionInterface property
        Returns:
        connectionInterface class
      • setConnectionInterface

        public void setConnectionInterface​(String connectionInterface)
        Setter method for ConnectionInterface property
        Parameters:
        connectionInterface - connection interface class
      • compareMCFConfigProperties

        public ConnectionPoolReconfigHelper.ReconfigAction compareMCFConfigProperties​(ConnectorDescriptorInfo cdi)
        Compare the MCF Config properties in this object with the passed ones
        Parameters:
        cdi - - The ConnDescInfo object whose MCF config props are to to be comapred against our props
        Returns:
        true - if the config properties are the same false otherwise
      • compareMCFConfigProperties

        public ConnectionPoolReconfigHelper.ReconfigAction compareMCFConfigProperties​(ConnectorDescriptorInfo cdi,
                                                                                      Set excluded)
        Compare the MCF Config properties in this object with the passed ones. The properties in the Set of excluded properties are not compared against
        Parameters:
        cdi - - The ConnDescInfo object whose MCF config props are to to be comapred against our props
        excluded - - list of properties to be excluded from comparison
        Returns:
        true - if the config properties are the same false otherwise