Fields Summary |
---|
protected ConnectorDescriptorInfo | connectorDescriptorInfo_ |
protected String | steadyPoolSize_ |
protected String | maxPoolSize_ |
protected String | maxWaitTimeInMillis_ |
protected String | poolResizeQuantity_ |
protected String | idleTimeoutInSeconds_ |
protected boolean | failAllConnections_ |
protected boolean | matchConnections_ |
protected int | transactionSupport_ |
protected boolean | isConnectionValidationRequired_ |
private boolean | lazyConnectionAssoc_ |
private boolean | lazyConnectionEnlist_ |
private boolean | associateWithThread_ |
private boolean | nonTransactional_ |
private boolean | nonComponent_ |
private com.sun.enterprise.connectors.authentication.ConnectorSecurityMap[] | securityMaps |
private boolean | isAuthCredentialsDefinedInPool_ |
private String | maxConnectionUsage |
private boolean | validateAtmostEveryIdleSecs |
private String | validateAtmostOncePeriod_ |
private String | conCreationRetryAttempts_ |
private String | conCreationRetryInterval_ |
private String | connectionLeakTracingTimeout_ |
private boolean | connectionReclaim_ |
public static final String | DEFAULT_MAX_CONNECTION_USAGE |
public static final String | DEFAULT_CON_CREATION_RETRY_ATTEMPTS |
public static final String | DEFAULT_CON_CREATION_RETRY_INTERVAL |
public static final String | DEFAULT_VALIDATE_ATMOST_ONCE_PERIOD |
public static final String | DEFAULT_LEAK_TIMEOUT |
Methods Summary |
---|
protected com.sun.enterprise.repository.J2EEResource | doClone(java.lang.String name)Clone method.
ConnectorConnectionPool clone = new ConnectorConnectionPool(name);
ConnectorDescriptorInfo cdi = connectorDescriptorInfo_.doClone();
clone.setSecurityMaps(this.securityMaps);
clone.setSteadyPoolSize(getSteadyPoolSize());
clone.setMaxPoolSize(getMaxPoolSize());
clone.setMaxWaitTimeInMillis(getMaxWaitTimeInMillis());
clone.setPoolResizeQuantity(getPoolResizeQuantity());
clone.setIdleTimeoutInSeconds(getIdleTimeoutInSeconds());
clone.setConnectionValidationRequired(isConnectionValidationRequired_);
clone.setFailAllConnections(isFailAllConnections());
clone.setTransactionSupport(getTransactionSupport());
clone.setConnectorDescriptorInfo(cdi);
clone.setNonComponent(isNonComponent());
clone.setNonTransactional(isNonTransactional());
clone.setMatchConnections(matchConnections());
clone.setLazyConnectionAssoc(isLazyConnectionAssoc());
clone.setAssociateWithThread(isAssociateWithThread());
clone.setLazyConnectionEnlist(isLazyConnectionEnlist());
clone.setMaxConnectionUsage(getMaxConnectionUsage());
clone.setValidateAtmostOncePeriod(getValidateAtmostOncePeriod());
clone.setConnectionLeakTracingTimeout(
getConnectionLeakTracingTimeout());
clone.setConCreationRetryInterval
(getConCreationRetryInterval());
clone.setConCreationRetryAttempts(getConCreationRetryAttempts());
return clone;
|
public boolean | getAuthCredentialsDefinedInPool()
return this.isAuthCredentialsDefinedInPool_;
|
public java.lang.String | getConCreationRetryAttempts()Queries the connection-creation-retry-attempt pool attribute
return conCreationRetryAttempts_;
|
public java.lang.String | getConCreationRetryInterval()Queries the connection-creation-retry-interval pool attribute
return conCreationRetryInterval_;
|
public java.lang.String | getConnectionLeakTracingTimeout()Queries the connection-leak-tracing-timeout pool attribute
return connectionLeakTracingTimeout_;
|
public ConnectorDescriptorInfo | getConnectorDescriptorInfo()Getter method of ConnectorDescriptorInfo which contains some the ra.xml
values pertainining to managed connection factory
return connectorDescriptorInfo_;
|
public java.lang.String | getIdleTimeoutInSeconds()Getter method of IdleTimeoutInSeconds property
return idleTimeoutInSeconds_;
|
public java.lang.String | getMaxConnectionUsage()Queries the max-connection-usage pool attribute
return maxConnectionUsage;
|
public java.lang.String | getMaxPoolSize()Getter method of MaxPoolSize property
return maxPoolSize_;
|
public java.lang.String | getMaxWaitTimeInMillis()Getter method of MaxWaitTimeInMillis property
return maxWaitTimeInMillis_;
|
public java.lang.String | getPoolResizeQuantity()Getter method of PoolResizeQuantity property
return poolResizeQuantity_;
|
public com.sun.enterprise.connectors.authentication.ConnectorSecurityMap[] | getSecurityMaps()Getter method for Security Maps
return this.securityMaps;
|
public java.lang.String | getSteadyPoolSize()Getter method of SteadyPoolSize property
return steadyPoolSize_;
|
public int | getTransactionSupport()Returns the transaction support level for this pool
The valid values are
- ConnectorConstants.NO_TRANSACTION
- ConnectorConstants.LOCAL_TRANSACTION
- ConnectorConstants.XA_TRANSACTION
return transactionSupport_;
|
public int | getType()Getter method of the Resource Type.
return J2EEResource.JDBC_CONNECTION_POOL;
|
public java.lang.String | getValidateAtmostOncePeriod()Queries the validate-atmost-period pool attribute
return validateAtmostOncePeriod_;
|
public boolean | isAssociateWithThread()Queries the associate-with-thread pool attribute
return associateWithThread_;
|
public boolean | isConnectionReclaim()Queries the connection-reclaim attribute
return connectionReclaim_;
|
public boolean | isFailAllConnections()Getter method of FailAllConnections property
return failAllConnections_;
|
public boolean | isIsConnectionValidationRequired()Queries the connection-validation-required pool attribute
return isConnectionValidationRequired_;
|
public boolean | isLazyConnectionAssoc()Queries the lazy-connection-association pool attribute
return lazyConnectionAssoc_;
|
public boolean | isLazyConnectionEnlist()Queries the lazy-connection-enlistment pool attribute
return lazyConnectionEnlist_;
|
public boolean | isNonComponent()Queries the non-component pool attribute
return nonComponent_;
|
public boolean | isNonTransactional()Queries the non-transactional pool attribute
return nonTransactional_;
|
public boolean | isValidateAtmostEveryIdleSecs()Queries the validate-atmost-every-idle-seconds pool attribute
return validateAtmostEveryIdleSecs;
|
public boolean | matchConnections()Getter method of matchConnections property
return matchConnections_;
|
public void | setAssociateWithThread(boolean enabled)Setter method of associate-with-thread attribute
associateWithThread_ = enabled;
|
public void | setAuthCredentialsDefinedInPool(boolean authCred)
this.isAuthCredentialsDefinedInPool_ = authCred;
|
public void | setConCreationRetryAttempts(java.lang.String retryAttempts)Setter method of connection-creation-retry-attempt attribute
this.conCreationRetryAttempts_ = retryAttempts;
|
public void | setConCreationRetryInterval(java.lang.String retryInterval)Setter method of connection-creation-retry-interval attribute
this.conCreationRetryInterval_ = retryInterval;
|
public void | setConnectionLeakTracingTimeout(java.lang.String timeout)Setter method of connection-leak-tracing-timeout attribute
connectionLeakTracingTimeout_ = timeout;
|
public void | setConnectionReclaim(boolean connectionReclaim)Setter method of connection-reclaim attribute
this.connectionReclaim_ = connectionReclaim;
|
public void | setConnectionValidationRequired(boolean validation)Sets the connection-validation-required pool attribute
isConnectionValidationRequired_ = validation;
|
public void | setConnectorDescriptorInfo(ConnectorDescriptorInfo connectorDescriptorInfo)Setter method of ConnectorDescriptorInfo which contains some the ra.xml
values pertainining to managed connection factory
connectorDescriptorInfo_ = connectorDescriptorInfo;
|
public void | setFailAllConnections(boolean failAllConnections)Setter method of FailAllConnections property
failAllConnections_ = failAllConnections;
|
public void | setIdleTimeoutInSeconds(java.lang.String idleTimeoutInSeconds)Setter method of IdleTimeoutInSeconds property
idleTimeoutInSeconds_ = idleTimeoutInSeconds;
|
public void | setLazyConnectionAssoc(boolean enabled)Setter method of lazyConnectionAssociation attribute
lazyConnectionAssoc_ = enabled;
|
public void | setLazyConnectionEnlist(boolean enabled)Setter method of lazy-connection-enlistment attribute
lazyConnectionEnlist_ = enabled;
|
public void | setMatchConnections(boolean matchConnections)Setter method of matchConnections property
matchConnections_ = matchConnections;
|
public void | setMaxConnectionUsage(java.lang.String count)Setter method of max-connection-usage pool attribute
maxConnectionUsage = count;
|
public void | setMaxPoolSize(java.lang.String maxPoolSize)Setter method of MaxPoolSize property
maxPoolSize_ = maxPoolSize;
|
public void | setMaxWaitTimeInMillis(java.lang.String maxWaitTimeInMillis)Setter method of MaxWaitTimeInMillis property
maxWaitTimeInMillis_ = maxWaitTimeInMillis;
|
public void | setNonComponent(boolean enabled)Setter method of non-component attribute
nonComponent_ = enabled;
|
public void | setNonTransactional(boolean enabled)Setter method of non-transactional attribute
nonTransactional_ = enabled;
|
public void | setPoolResizeQuantity(java.lang.String poolResizeQuantity)Setter method of PoolResizeQuantity property
poolResizeQuantity_ = poolResizeQuantity;
|
public void | setSecurityMaps(com.sun.enterprise.connectors.authentication.ConnectorSecurityMap[] securityMapArray)Setter method for Security Maps
this.securityMaps = securityMapArray;
|
public void | setSteadyPoolSize(java.lang.String steadyPoolSize)Setter method of SteadyPoolSize property
steadyPoolSize_ = steadyPoolSize;
|
public void | setTransactionSupport(int transactionSupport)Sets the transaction support level for this pool
The valid values are
transactionSupport_ = transactionSupport;
|
public void | setValidateAtmostEveryIdleSecs(boolean enabled)Setter method of validate-atmost-every-idle-seconds pool attribute
this.validateAtmostEveryIdleSecs = enabled;
|
public void | setValidateAtmostOncePeriod(java.lang.String validateAtmostOncePeriod)Setter method of validate-atmost-period attribute
this.validateAtmostOncePeriod_ = validateAtmostOncePeriod;
|
public java.lang.String | toString()return the String representation of the pool.
String returnVal = null;
StringBuffer sb = new StringBuffer("ConnectorConnectionPool :: ");
try {
sb.append(getName());
sb.append("\nsteady size: ");
sb.append(getSteadyPoolSize());
sb.append("\nmax pool size: ");
sb.append(getMaxPoolSize());
sb.append("\nmax wait time: ");
sb.append(getMaxWaitTimeInMillis());
sb.append("\npool resize qty: ");
sb.append(getPoolResizeQuantity());
sb.append("\nIdle timeout: ");
sb.append(getIdleTimeoutInSeconds());
sb.append("\nfailAllConnections: ");
sb.append(isFailAllConnections());
sb.append("\nTransaction Support Level: ");
sb.append(transactionSupport_);
sb.append("\nisConnectionValidationRequired_ ");
sb.append(isConnectionValidationRequired_);
sb.append("\nmatchConnections_ ");
sb.append(matchConnections_);
sb.append("\nassociateWithThread_ ");
sb.append(associateWithThread_);
sb.append("\nlazyConnectionAssoc_ ");
sb.append(lazyConnectionAssoc_);
sb.append("\nlazyConnectionEnlist_ ");
sb.append(lazyConnectionEnlist_);
sb.append("\nmaxConnectionUsage_ ");
sb.append(maxConnectionUsage);
sb.append("\nvalidateAtmostOncePeriod_ ");
sb.append(validateAtmostOncePeriod_);
sb.append("\nconnectionLeakTracingTimeout_");
sb.append(connectionLeakTracingTimeout_);
sb.append("\nconnectionReclaim_");
sb.append(connectionReclaim_);
sb.append("\nconnectionCreationRetryAttempts_");
sb.append(conCreationRetryAttempts_);
sb.append("\nconnectionCreationRetryIntervalInMilliSeconds_");
sb.append(conCreationRetryInterval_);
sb.append("\nnonTransactional_ ");
sb.append(nonTransactional_);
sb.append("\nnonComponent_ ");
sb.append(nonComponent_);
sb.append("\nConnectorDescriptorInfo -> ");
sb.append("\nrarName: ");
if (connectorDescriptorInfo_ != null) {
sb.append(connectorDescriptorInfo_.getRarName());
sb.append("\nresource adapter class: ");
sb.append(connectorDescriptorInfo_.getResourceAdapterClassName());
sb.append("\nconnection def name: ");
sb.append(connectorDescriptorInfo_.getConnectionDefinitionName());
sb.append("\nMCF Config properties-> ");
for (Object o : connectorDescriptorInfo_.getMCFConfigProperties()) {
EnvironmentProperty ep = (EnvironmentProperty) o;
sb.append(ep.getName());
sb.append(":");
sb.append(("password".equalsIgnoreCase(ep.getName()) ?
"****" : ep.getValue()));
sb.append("\n");
}
}
if (securityMaps != null) {
sb.append("SecurityMaps -> {");
for (ConnectorSecurityMap securityMap : securityMaps) {
if (securityMap != null &&
securityMap.getName() != null) {
sb.append(securityMap.getName());
sb.append(" ");
}
}
sb.append("}");
}
returnVal = sb.toString();
} catch (Exception e) {
e.printStackTrace();
}
return returnVal;
|