Methods Summary |
---|
public void | addMCFConfigProperty(com.sun.enterprise.deployment.EnvironmentProperty configProperty)Adds an MCF config property to the existing array/Set of MCF config
properties.
if(configProperty != null) {
mcfConfigProperties_.add(configProperty);
}
|
public void | addResourceAdapterConfigProperty(com.sun.enterprise.deployment.EnvironmentProperty configProperty)Adds a Resource Adapter config property to the existing array/Set
of Resource Adapter config properties.
if(configProperty != null) {
resourceAdapterConfigProperties_.add(configProperty);
}
|
public com.sun.enterprise.connectors.util.ConnectionPoolReconfigHelper.ReconfigAction | compareMCFConfigProperties(com.sun.enterprise.connectors.ConnectorDescriptorInfo cdi)Compare the MCF Config properties in this object with the
passed ones
return compareMCFConfigProperties( cdi, new HashSet() );
|
public com.sun.enterprise.connectors.util.ConnectionPoolReconfigHelper.ReconfigAction | compareMCFConfigProperties(com.sun.enterprise.connectors.ConnectorDescriptorInfo cdi, java.util.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
Set mcfConfigProps = cdi.getMCFConfigProperties();
if (mcfConfigProps.size() != mcfConfigProperties_.size() ) {
//return false;
//Cannot determine anything due to size disparity - assume restart
return ReconfigAction.RECREATE_POOL;
}
boolean same = false;
Iterator iter = mcfConfigProps.iterator();
while( iter.hasNext() ) {
EnvironmentProperty prop = (EnvironmentProperty)iter.next();
//see if this property is in our list of excludes
if (excluded.contains( prop.getName()) ) {
//_logger.finest("mcfProp ignored : " + prop.getName() );
continue;
}
Iterator iter2 = mcfConfigProperties_.iterator();
while( iter2.hasNext() ) {
if(isEnvPropEqual(prop,(EnvironmentProperty)iter2.next())){
//we have a match
same = true;
//_logger.finest("mcfprop matched : " + prop.getName());
break;
}
}
if (! same ) {
//_logger.finest("mcfprop not matched : " + prop.getName() );
//return false;
return ReconfigAction.RECREATE_POOL;
}
same = false;
}
return ReconfigAction.NO_OP;
|
public com.sun.enterprise.connectors.ConnectorDescriptorInfo | doClone()Clone method
ConnectorDescriptorInfo cdi = new ConnectorDescriptorInfo();
cdi.setMCFConfigProperties(mcfConfigProperties_);
cdi.setResourceAdapterConfigProperties(
resourceAdapterConfigProperties_);
cdi.setRarName(rarName_);
cdi.setResourceAdapterClassName(resourceAdapterClass_);
cdi.setConnectionDefinitionName(connectionDefinitionName_);
cdi.setManagedConnectionFactoryClass(managedConnectionFactoryClass_);
cdi.setConnectionFactoryClass(connectionFactoryClass_);
cdi.setConnectionFactoryInterface(connectionFactoryInterface_);
cdi.setConnectionClass(connectionClass_);
cdi.setConnectionInterface(connectionInterface_);
return cdi;
|
public java.lang.String | getConnectionClass()Getter method for ConnectionClass property
return connectionClass_;
|
public java.lang.String | getConnectionDefinitionName()Getter method for ConnectionDefinitionName property
return connectionDefinitionName_;
|
public java.lang.String | getConnectionFactoryClass()Getter method for ConnectionFactoryClass property
return connectionFactoryClass_;
|
public java.lang.String | getConnectionFactoryInterface()Getter method for ConnectionFactoryInterface property
return connectionFactoryInterface_;
|
public java.lang.String | getConnectionInterface()Getter method for ConnectionInterface property
return connectionInterface_;
|
public java.util.Set | getMCFConfigProperties()Getter method for MCFConfigProperties property
return mcfConfigProperties_;
|
public java.lang.String | getManagedConnectionFactoryClass()Getter method for ManagedConnectionFactoryClass property
return managedConnectionFactoryClass_;
|
public java.lang.String | getRarName()Getter method for RarName property
return rarName_;
|
public java.lang.String | getResourceAdapterClassName()Getter method for ResourceAdapterClassName property
return resourceAdapterClass_;
|
public java.util.Set | getResourceAdapterConfigProperties()Getter method for ResourceAdapterConfigProperties property
return resourceAdapterConfigProperties_;
|
private boolean | isEnvPropEqual(com.sun.enterprise.deployment.EnvironmentProperty e1, com.sun.enterprise.deployment.EnvironmentProperty e2)The EnvironmentProperty::equals method only checks for name equality
So we need to write a custom equals
if (e1 != null && e2 != null &&
e1.getName() != null && e2.getName() != null &&
e1.getName().equals( e2.getName())) {
if (e1.getValue() != null && e2.getValue() != null &&
e1.getValue().equals( e2.getValue() ) ) {
return true;
}
}
/*
_logger.finest("isEnvPropEqual:: " + e1.getName()+"+"+e1.getValue()+
" -- "+e2.getName() + "+"+e2.getValue());
*/
return false;
|
public void | removeMCFConfigProperty(com.sun.enterprise.deployment.EnvironmentProperty configProperty)Removes an config property from the existing array/Set of MCF config
properties
if(configProperty != null) {
mcfConfigProperties_.remove(configProperty);
}
|
public void | removeResourceAdapterConfigProperty(com.sun.enterprise.deployment.EnvironmentProperty configProperty)Removes a Resource Adapter config property to the existing array/Set
of Resource Adapter config properties.
if(configProperty != null) {
resourceAdapterConfigProperties_.remove(configProperty);
}
|
public void | setConnectionClass(java.lang.String connectionClass)Setter method for ConnectionClass property
connectionClass_ = connectionClass;
|
public void | setConnectionDefinitionName(java.lang.String connectionDefinitionName)Setter method for ConnectionDefinitionName property
connectionDefinitionName_ = connectionDefinitionName;
|
public void | setConnectionFactoryClass(java.lang.String connectionFactoryClass)Setter method for ConnectionFactoryClass property
connectionFactoryClass_ = connectionFactoryClass;
|
public void | setConnectionFactoryInterface(java.lang.String connectionFactoryInterface)Setter method for ConnectionFactoryInterface property
connectionFactoryInterface_ = connectionFactoryInterface;
|
public void | setConnectionInterface(java.lang.String connectionInterface)Setter method for ConnectionInterface property
connectionInterface_ = connectionInterface;
|
public void | setMCFConfigProperties(java.util.Set configProperties)Setter method for MCFConfigProperties property.
mcfConfigProperties_ = configProperties;
|
public void | setMCFConfigProperties(com.sun.enterprise.deployment.EnvironmentProperty[] configProperties)Setter method for MCFConfigProperties property.
if(configProperties != null) {
for(int i=0; i<configProperties.length; ++i) {
mcfConfigProperties_.add(configProperties[i]);
}
}
|
public void | setManagedConnectionFactoryClass(java.lang.String managedConnectionFactoryClass)Setter method for ManagedConnectionFactoryClass property
managedConnectionFactoryClass_ = managedConnectionFactoryClass;
|
public void | setRarName(java.lang.String rarName)Setter method for RarName property
rarName_ = rarName;
|
public void | setResourceAdapterClassName(java.lang.String resourceAdapterClass)Setter method for ResourceAdapterClassName property
resourceAdapterClass_ = resourceAdapterClass;
|
public void | setResourceAdapterConfigProperties(java.util.Set configProperties)Setter method for ResourceAdapterConfigProperties property.
resourceAdapterConfigProperties_ = configProperties;
|
public void | setResourceAdapterConfigProperties(com.sun.enterprise.deployment.EnvironmentProperty[] configProperties)Setter method for ResourceAdapterConfigProperties property.
if(configProperties != null) {
for(int i=0; i<configProperties.length; ++i) {
resourceAdapterConfigProperties_.add(configProperties[i]);
}
}
|