Node pingNode
= attributes.getNamedItem(PING);
String poolName = null;
Resource connectorConnPoolResource = new Resource(Resource.CONNECTOR_CONNECTION_POOL);
if(nameNode != null){
poolName = getScopedName(nameNode.getNodeValue(), scope);
connectorConnPoolResource.setAttribute(CONNECTION_POOL_NAME, poolName);
}
if(raConfigNode != null){
String raConfig = raConfigNode.getNodeValue();
connectorConnPoolResource.setAttribute(RESOURCE_ADAPTER_CONFIG_NAME,raConfig);
}
if(conDefNode != null){
String conDef = conDefNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_DEF_NAME,conDef);
}
if(steadyPoolSizeNode != null){
String steadyPoolSize = steadyPoolSizeNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_STEADY_POOL_SIZE,steadyPoolSize);
}
if(maxPoolSizeNode != null){
String maxPoolSize = maxPoolSizeNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_MAX_POOL_SIZE,maxPoolSize);
}
if(poolResizeNode != null){
String poolResize = poolResizeNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_POOL_RESIZE_QUANTITY,poolResize);
}
if(idleTimeOutNode != null){
String idleTimeOut = idleTimeOutNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_IDLE_TIME_OUT,idleTimeOut);
}
if(failAllConnNode != null){
String failAllConn = failAllConnNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_FAIL_ALL_CONNECTIONS,
failAllConn);
}
if(maxWaitTimeMillisNode != null){
String maxWaitTimeMillis = maxWaitTimeMillisNode.getNodeValue();
connectorConnPoolResource.setAttribute(MAX_WAIT_TIME_IN_MILLIS,
maxWaitTimeMillis);
}
if(transactionSupportNode != null){
String transactionSupport = transactionSupportNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONN_TRANSACTION_SUPPORT,
transactionSupport);
}
if(connValidationReqdNode != null){
String connValidationReqd = connValidationReqdNode.getNodeValue();
connectorConnPoolResource.setAttribute(IS_CONNECTION_VALIDATION_REQUIRED,
connValidationReqd);
}
if(validateAtmostOncePeriodNode != null){
String validateAtmostOncePeriod = validateAtmostOncePeriodNode.getNodeValue();
connectorConnPoolResource.setAttribute(VALIDATE_ATMOST_ONCE_PERIOD_IN_SECONDS,
validateAtmostOncePeriod);
}
if(connLeakTimeoutNode != null){
String connLeakTimeout = connLeakTimeoutNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONNECTION_LEAK_TIMEOUT_IN_SECONDS,
connLeakTimeout);
}
if(connLeakReclaimNode != null){
String connLeakReclaim = connLeakReclaimNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONNECTION_LEAK_RECLAIM,
connLeakReclaim);
}
if(connCreationRetryAttemptsNode != null){
String connCreationRetryAttempts = connCreationRetryAttemptsNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONNECTION_CREATION_RETRY_ATTEMPTS,
connCreationRetryAttempts);
}
if(connCreationRetryIntervalNode != null){
String connCreationRetryInterval = connCreationRetryIntervalNode.getNodeValue();
connectorConnPoolResource.setAttribute(CONNECTION_CREATION_RETRY_INTERVAL_IN_SECONDS,
connCreationRetryInterval);
}
if(lazyConnEnlistmentNode != null){
String lazyConnEnlistment = lazyConnEnlistmentNode.getNodeValue();
connectorConnPoolResource.setAttribute(LAZY_CONNECTION_ENLISTMENT,
lazyConnEnlistment);
}
if(lazyConnAssociationNode != null){
String lazyConnAssociation = lazyConnAssociationNode.getNodeValue();
connectorConnPoolResource.setAttribute(LAZY_CONNECTION_ASSOCIATION,
lazyConnAssociation);
}
if(associateWithThreadNode != null){
String associateWithThread = associateWithThreadNode.getNodeValue();
connectorConnPoolResource.setAttribute(ASSOCIATE_WITH_THREAD,
associateWithThread);
}
if(matchConnectionsNode != null){
String matchConnections = matchConnectionsNode.getNodeValue();
connectorConnPoolResource.setAttribute(MATCH_CONNECTIONS,
matchConnections);
}
if(maxConnUsageCountNode != null){
String maxConnUsageCount = maxConnUsageCountNode.getNodeValue();
connectorConnPoolResource.setAttribute(MAX_CONNECTION_USAGE_COUNT,
maxConnUsageCount);
}
if(poolingNode != null){
String pooling = poolingNode.getNodeValue();
connectorConnPoolResource.setAttribute(POOLING,pooling);
}
if(pingNode != null){
String ping = pingNode.getNodeValue();
connectorConnPoolResource.setAttribute(PING,ping);
}
NodeList children = nextKid.getChildNodes();
//get description
generatePropertyElement(connectorConnPoolResource, children);