Author: shawkins
Date: 2009-05-12 21:01:18 -0400 (Tue, 12 May 2009)
New Revision: 921
Modified:
trunk/connector-api/src/main/java/org/teiid/connector/internal/ConnectorPropertyNames.java
trunk/connector-api/src/main/resources/connector-base.xml
trunk/connector-sdk/src/main/java/com/metamatrix/cdk/api/ConnectorHost.java
trunk/connectors/connector-jdbc/src/main/resources/connector-jdbc.xml
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java
trunk/engine/src/main/java/org/teiid/dqp/internal/pooling/connector/ConnectionPool.java
Log:
TEIID-578 TEIID-203 removing connector max threads and updating capabilities overrides
Modified:
trunk/connector-api/src/main/java/org/teiid/connector/internal/ConnectorPropertyNames.java
===================================================================
---
trunk/connector-api/src/main/java/org/teiid/connector/internal/ConnectorPropertyNames.java 2009-05-13
00:57:35 UTC (rev 920)
+++
trunk/connector-api/src/main/java/org/teiid/connector/internal/ConnectorPropertyNames.java 2009-05-13
01:01:18 UTC (rev 921)
@@ -34,7 +34,7 @@
* The environment property name whose value defines the maximum number
* of processor threads. This property is required.
*/
- public static final String MAX_THREADS = "ConnectorMaxThreads";
//$NON-NLS-1$
+ public static final String MAX_CONNECTIONS = "ConnectorMaxConnections";
//$NON-NLS-1$
/**
* This property can be used to specify the maximum number of rows to be returned
Modified: trunk/connector-api/src/main/resources/connector-base.xml
===================================================================
--- trunk/connector-api/src/main/resources/connector-base.xml 2009-05-13 00:57:35 UTC (rev
920)
+++ trunk/connector-api/src/main/resources/connector-base.xml 2009-05-13 01:01:18 UTC (rev
921)
@@ -6,11 +6,11 @@
<PropertyDefinition Name="metamatrix.service.essentialservice"
DisplayName="Essential Service" ShortDescription="Indicates if the service
is essential to operation of the Integration Server" DefaultValue="false"
Multiplicity="1" PropertyType="Boolean" IsExpert="true"
IsHidden="true" />
<PropertyDefinition Name="ServiceMonitoringEnabled"
DisplayName="Data Source Monitoring Enabled" ShortDescription="Whether to
monitor the underlying data source to see if it is available."
DefaultValue="true" Multiplicity="1" PropertyType="Boolean"
ISExpert="true" />
<PropertyDefinition Name="Immutable" DisplayName="Is
Immutable" ShortDescription="True if the source never changes."
DefaultValue="false" Multiplicity="1" PropertyType="Boolean"
IsExpert="true" />
- <PropertyDefinition Name="ConnectorMaxThreads"
DisplayName="Connector Maximum Thread Count" ShortDescription=""
DefaultValue="20" Multiplicity="1" PropertyType="Integer"
IsExpert="true" />
+ <PropertyDefinition Name="ConnectorMaxConnections"
DisplayName="Maximum Concurrent Connections" ShortDescription=""
DefaultValue="20" Multiplicity="1" PropertyType="Integer"
IsExpert="true" />
<PropertyDefinition Name="ConnectorClass"
DisplayName="Connector Class" ShortDescription=""
Multiplicity="1" IsExpert="true" IsHidden="true" />
<PropertyDefinition Name="ServiceClassName"
DisplayName="Service Class Name" ShortDescription=""
DefaultValue="com.metamatrix.server.connector.service.ConnectorService"
Multiplicity="1" IsHidden="true" />
<PropertyDefinition Name="MaxResultRows"
DisplayName="Maximum Result Rows" ShortDescription=""
DefaultValue="10000" Multiplicity="1" PropertyType="Integer"
IsExpert="true" />
- <PropertyDefinition Name="ConnectorThreadTTL"
DisplayName="Thread Time to live (milliseconds)" ShortDescription=""
DefaultValue="120000" Multiplicity="1"
PropertyType="Integer" IsExpert="true" />
+ <PropertyDefinition Name="SynchWorkers"
DisplayName="Synchronous Workers" ShortDescription="Whether worker threads
will be bound to connections. Asynch connectors should set this value to false."
DefaultValue="true" Multiplicity="1" PropertyType="Boolean"
IsExpert="true" />
<PropertyDefinition Name="ResultSetCacheEnabled"
DisplayName="ResultSet Cache Enabled" ShortDescription=""
DefaultValue="false" Multiplicity="0..1"
PropertyType="Boolean" ValueDelimiter=","
IsConstrainedToAllowedValues="true" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false" />
<PropertyDefinition Name="ResultSetCacheMaxSize"
DisplayName="ResultSet Cache Maximum Size (megabytes)"
ShortDescription="" DefaultValue="20" PropertyType="Integer"
/>
<PropertyDefinition Name="ResultSetCacheMaxAge"
DisplayName="ResultSet Cache Maximum Age (milliseconds)"
ShortDescription="" DefaultValue="3600000"
PropertyType="Long" IsExpert="true" />
@@ -18,42 +18,43 @@
<AllowedValue>vdb</AllowedValue>
<AllowedValue>session</AllowedValue>
</PropertyDefinition>
- <PropertyDefinition
Name="com.metamatrix.data.pool.max_connections" DisplayName="Pool Maximum
Connections" ShortDescription="Set the maximum number of connections for the
connection pool" DefaultValue="20" Multiplicity="1"
PropertyType="Integer" ValueDelimiter=","
IsConstrainedToAllowedValues="true" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false"/>
+ <PropertyDefinition Name="IsXA" DisplayName="Is XA"
ShortDescription="Set to true if this is an XA Connector"
DefaultValue="false" Multiplicity="1" PropertyType="Boolean"
IsExpert="true" IsHidden="false" IsMasked="false"
IsModifiable="true" IsPreferred="false"/>
+ <PropertyDefinition Name="ConnectionPoolEnabled"
DisplayName="Connection Pool Enabled" ShortDescription="Enable the use of
connection pooling with this connector." DefaultValue="true"
Multiplicity="1" PropertyType="Boolean" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false"/>
+ <PropertyDefinition Name="UseCredentialMap"
DisplayName="Requires Credential Map" ShortDescription="Set to true if this
connector requires credentials to be passed via a credential map."
DefaultValue="false" Multiplicity="1" PropertyType="Boolean"
IsExpert="true" IsHidden="false" IsMasked="false"
IsModifiable="true" IsPreferred="false"/>
+ <PropertyDefinition Name="AdminConnectionsAllowed"
DisplayName="Admin Connections Allowed" ShortDescription="Whether admin
connections without an execution context are allowed." DefaultValue="true"
Multiplicity="1" PropertyType="Boolean" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false"/>
<PropertyDefinition
Name="com.metamatrix.data.pool.max_connections_for_each_id"
DisplayName="Pool Maximum Connections for Each ID" ShortDescription="Set
the maximum number of connections for each connector ID for the connection pool"
DefaultValue="20" Multiplicity="1" PropertyType="Integer"
ValueDelimiter="," IsConstrainedToAllowedValues="true"
IsExpert="true" IsHidden="false" IsMasked="false"
IsModifiable="true" IsPreferred="false"/>
<PropertyDefinition
Name="com.metamatrix.data.pool.live_and_unused_time" DisplayName="Pool
Connection Idle Time (seconds)" ShortDescription="Set the idle time of the
connection before it should be closed if pool shrinking is enabled"
DefaultValue="60" Multiplicity="0..1" PropertyType="Integer"
ValueDelimiter="," IsConstrainedToAllowedValues="true"
IsExpert="true" IsHidden="false" IsMasked="false"
IsModifiable="true" IsPreferred="false"/>
<PropertyDefinition
Name="com.metamatrix.data.pool.wait_for_source_time" DisplayName="Pool
Connection Waiting Time (milliseconds)" ShortDescription="Set the time to wait
if the connection is not available" DefaultValue="120000"
Multiplicity="0..1" PropertyType="Integer"
ValueDelimiter="," IsConstrainedToAllowedValues="true"
IsExpert="true" IsHidden="false" IsMasked="false"
IsModifiable="true" IsPreferred="false"/>
<PropertyDefinition
Name="com.metamatrix.data.pool.cleaning_interval" DisplayName="Pool
cleaning Interval (seconds)" ShortDescription="Set the interval to cleaning the
pool" DefaultValue="60" Multiplicity="0..1"
PropertyType="Integer" ValueDelimiter=","
IsConstrainedToAllowedValues="true" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false"/>
<PropertyDefinition
Name="com.metamatrix.data.pool.enable_shrinking" DisplayName="Enable Pool
Shrinking" ShortDescription="Set whether to enable the pool shrinking"
DefaultValue="false" Multiplicity="0..1"
PropertyType="Boolean" ValueDelimiter=","
IsConstrainedToAllowedValues="true" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false"/>
- <PropertyDefinition Name="supportsAndCriteria"
DisplayName="supportsAndCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsCompareCriteria"
DisplayName="supportsCompareCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsCompareCriteriaEquals"
DisplayName="supportsCompareCriteriaEquals" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsCompareCriteriaGreaterThan"
DisplayName="supportsCompareCriteriaGreaterThan" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition
Name="supportsCompareCriteriaGreaterThanOrEqual"
DisplayName="supportsCompareCriteriaGreaterThanOrEqual"
ShortDescription="" Multiplicity="0..1"
PropertyType="Boolean" IsExpert="true" />
- <PropertyDefinition Name="supportsCompareCriteriaLessThan"
DisplayName="supportsCompareCriteriaLessThan" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition
Name="supportsCompareCriteriaLessThanOrEqual"
DisplayName="supportsCompareCriteriaLessThanOrEqual"
ShortDescription="" Multiplicity="0..1"
PropertyType="Boolean" IsExpert="true" />
- <PropertyDefinition Name="supportsCompareCriteriaNotEquals"
DisplayName="supportsCompareCriteriaNotEquals" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsCriteria"
DisplayName="supportsCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsCompareCriteriaOrdered"
DisplayName="supportsCompareCriteriaOrdered" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsInCriteria"
DisplayName="supportsInCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="getMaxInCriteriaSize"
DisplayName="getMaxInCriteriaSize" ShortDescription=""
Multiplicity="0..1" PropertyType="Integer" IsExpert="true"
/>
<PropertyDefinition Name="supportsIsNullCriteria"
DisplayName="supportsIsNullCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsJoins"
DisplayName="supportsJoins" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsLikeCriteria"
DisplayName="supportsLikeCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsLikeCriteriaEscapeCharacter"
DisplayName="supportsLikeCriteriaEscapeCharacter" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsNotCriteria"
DisplayName="supportsNotCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsOrCriteria"
DisplayName="supportsOrCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsBetweenCriteria"
DisplayName="supportsBetweenCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsSelectDistinct"
DisplayName="supportsSelectDistinct" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsSelectLiterals"
DisplayName="supportsSelectLiterals" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsSelectExpression"
DisplayName="supportsSelectExpression" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsInnerJoins"
DisplayName="supportsInnerJoins" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsAliasedGroup"
DisplayName="supportsAliasedGroup" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsSelfJoins"
DisplayName="supportsSelfJoins" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsOuterJoins"
DisplayName="supportsOuterJoins" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsFullOuterJoins"
DisplayName="supportsFullOuterJoins" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsBetweenCriteria"
DisplayName="supportsBetweenCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsLikeCriteriaEscapeCharacter"
DisplayName="supportsLikeCriteriaEscapeCharacter" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsInCriteriaSubquery"
DisplayName="supportsInCriteriaSubquery" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsExistsCriteria"
DisplayName="supportsExistsCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsQuantifiedCompareCriteria"
DisplayName="supportsQuantifiedCompareCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsQuantifiedCompareCriteriaSome"
DisplayName="supportsQuantifiedCompareCriteriaSome"
ShortDescription="" Multiplicity="0..1"
PropertyType="Boolean" IsExpert="true" />
- <PropertyDefinition Name="supportsQuantifiedCompareCriteriaAll"
DisplayName="supportsQuantifiedCompareCriteriaAll" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="getMaxFromGroups"
DisplayName="getMaxFromGroups" ShortDescription=""
Multiplicity="0..1" PropertyType="Integer" IsExpert="true"
/>
+ <PropertyDefinition Name="getSupportedJoinCriteria"
DisplayName="getSupportedJoinCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="String" IsExpert="true"
>
+ <AllowedValue>ANY</AllowedValue>
+ <AllowedValue>THETA</AllowedValue>
+ <AllowedValue>EQUI</AllowedValue>
+ <AllowedValue>KEY</AllowedValue>
+ </PropertyDefinition>
<PropertyDefinition Name="supportsOrderBy"
DisplayName="supportsOrderBy" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsAggregates"
DisplayName="supportsAggregates" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsGroupBy"
DisplayName="supportsGroupBy" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsFunctionsInGroupBy"
DisplayName="supportsFunctionsInGroupBy" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsHaving"
DisplayName="supportsHaving" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsAggregatesSum"
DisplayName="supportsAggregatesSum" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsAggregatesAvg"
DisplayName="supportsAggregatesAvg" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsAggregatesMin"
DisplayName="supportsAggregatesMin" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
@@ -61,15 +62,26 @@
<PropertyDefinition Name="supportsAggregatesCount"
DisplayName="supportsAggregatesCount" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsAggregatesCountStar"
DisplayName="supportsAggregatesCountStar" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsAggregatesDistinct"
DisplayName="supportsAggregatesDistinct" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsInCriteriaSubquery"
DisplayName="supportsInCriteriaSubquery" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsExistsCriteria"
DisplayName="supportsExistsCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsQuantifiedCompareCriteriaSome"
DisplayName="supportsQuantifiedCompareCriteriaSome"
ShortDescription="" Multiplicity="0..1"
PropertyType="Boolean" IsExpert="true" />
+ <PropertyDefinition Name="supportsQuantifiedCompareCriteriaAll"
DisplayName="supportsQuantifiedCompareCriteriaAll" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsScalarSubqueries"
DisplayName="supportsScalarSubqueries" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsCorrelatedSubqueries"
DisplayName="supportsCorrelatedSubqueries" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsCaseExpressions"
DisplayName="supportsCaseExpressions" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsSearchedCaseExpressions"
DisplayName="supportsSearchedCaseExpressions" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsScalarFunctions"
DisplayName="supportsScalarFunctions" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="getSupportedFunctions"
DisplayName="getSupportedFunctions" ShortDescription=""
Multiplicity="0..1" PropertyType="string" IsExpert="true"
/>
<PropertyDefinition Name="supportsInlineViews"
DisplayName="supportsInlineViews" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsOrderByInInlineViews"
DisplayName="supportsOrderByInInlineViews" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
- <PropertyDefinition Name="supportsUnionOrderBy"
DisplayName="supportsUnionOrderBy" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsSetQueryOrderBy"
DisplayName="supportsSetQueryOrderBy" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
<PropertyDefinition Name="supportsUnions"
DisplayName="supportsUnions" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsIntersect"
DisplayName="supportsIntersect" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsExcept"
DisplayName="supportsExcept" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="requiresCriteria"
DisplayName="requiresCriteria" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="useAnsiJoin"
DisplayName="useAnsiJoin" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsBatchedUpdates"
DisplayName="supportsBatchedUpdates" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsBulkUpdate"
DisplayName="supportsBulkUpdate" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsInsertWithQueryExpression"
DisplayName="supportsInsertWithQueryExpression" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsRowLimit"
DisplayName="supportsRowLimit" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
+ <PropertyDefinition Name="supportsRowOffset"
DisplayName="supportsRowOffset" ShortDescription=""
Multiplicity="0..1" PropertyType="Boolean" IsExpert="true"
/>
</ComponentType>
\ No newline at end of file
Modified: trunk/connector-sdk/src/main/java/com/metamatrix/cdk/api/ConnectorHost.java
===================================================================
--- trunk/connector-sdk/src/main/java/com/metamatrix/cdk/api/ConnectorHost.java 2009-05-13
00:57:35 UTC (rev 920)
+++ trunk/connector-sdk/src/main/java/com/metamatrix/cdk/api/ConnectorHost.java 2009-05-13
01:01:18 UTC (rev 921)
@@ -221,14 +221,13 @@
results.add(result);
}
break;
- } else {
- UpdateExecution rs = (UpdateExecution)execution;
- int[] result = rs.getUpdateCounts();
- for (int i = 0; i < result.length; i++) {
- results.add(Arrays.asList(result[i]));
- }
- break;
- }
+ }
+ UpdateExecution rs = (UpdateExecution)execution;
+ int[] result = rs.getUpdateCounts();
+ for (int i = 0; i < result.length; i++) {
+ results.add(Arrays.asList(result[i]));
+ }
+ break;
} catch (DataNotAvailableException e) {
try {
Thread.sleep(e.getRetryDelay());
Modified: trunk/connectors/connector-jdbc/src/main/resources/connector-jdbc.xml
===================================================================
--- trunk/connectors/connector-jdbc/src/main/resources/connector-jdbc.xml 2009-05-13
00:57:35 UTC (rev 920)
+++ trunk/connectors/connector-jdbc/src/main/resources/connector-jdbc.xml 2009-05-13
01:01:18 UTC (rev 921)
@@ -1,28 +1,21 @@
<ComponentType Name="JDBC Connector" ComponentTypeCode="2"
Deployable="true" Deprecated="false" Monitorable="false"
SuperComponentType="Connector" ParentComponentType="Connectors"
LastChangedBy="ConfigurationStartup"
LastChangedDate="2008-10-31T10:26:19.952-06:00"
CreatedBy="ConfigurationStartup"
CreationDate="2008-10-31T10:26:19.952-06:00">
- <PropertyDefinition Name="MaxSQLLength" DisplayName="Max
SQL String Length" ShortDescription="" DefaultValue="16384"
Multiplicity="0..1" PropertyType="Integer"
ValueDelimiter="," IsConstrainedToAllowedValues="true"
IsExpert="true" IsHidden="false" IsMasked="false"
IsModifiable="true" IsPreferred="false" />
- <PropertyDefinition Name="ConnectorClassPath"
DisplayName="Class Path" ShortDescription=""
Multiplicity="0..1" IsPreferred="true"/>
<PropertyDefinition Name="ConnectorTypeClassPath"
DisplayName="Connector Type Class Path" ShortDescription="Connector Type
classpath (defined by system, do not modify)"
DefaultValue="extensionjar:connector_patch.jar;extensionjar:${project.artifactId}-${project.version}.jar;${classpath}"
Multiplicity="0..1" IsExpert="true" IsModifiable="false"
IsHidden="true" />
<PropertyDefinition Name="UseBindVariables"
DisplayName="Use prepared statements and bind variables"
ShortDescription="" DefaultValue="false"
PropertyType="Boolean" IsExpert="true" />
<PropertyDefinition Name="ExtensionCapabilityClass"
DisplayName="Extension Capability Class" ShortDescription=""
IsExpert="true" />
<PropertyDefinition Name="ConnectorClass"
DisplayName="Connector Class" ShortDescription=""
DefaultValue="org.teiid.connector.jdbc.JDBCConnector" Multiplicity="1"
IsExpert="true" />
<PropertyDefinition Name="DatabaseTimeZone"
DisplayName="Database time zone" ShortDescription="Time zone of the
database, if different than Integration Server" IsExpert="true" />
- <PropertyDefinition Name="TransactionIsolationLevel"
DisplayName="Transaction Isolation Level" ShortDescription="Set the data
source transaction isolation level" DefaultValue=""
IsExpert="true" IsConstrainedToAllowedValues="true">
+ <PropertyDefinition Name="TransactionIsolationLevel"
DisplayName="Transaction Isolation Level" ShortDescription="Set the data
source transaction isolation level" Multiplicity="0..1"
IsExpert="true" IsConstrainedToAllowedValues="true">
<AllowedValue>TRANSACTION_READ_UNCOMMITTED</AllowedValue>
<AllowedValue>TRANSACTION_READ_COMMITTED</AllowedValue>
<AllowedValue>TRANSACTION_SERIALIZABLE</AllowedValue>
<AllowedValue>TRANSACTION_NONE</AllowedValue>
- <AllowedValue></AllowedValue>
</PropertyDefinition>
<PropertyDefinition Name="Password"
DisplayName="Password" ShortDescription=""
Multiplicity="0..1" IsConstrainedToAllowedValues="false"
IsMasked="true" IsPreferred="true" />
<PropertyDefinition Name="ExtensionTranslationClass"
DisplayName="Extension SQL Translation Class" ShortDescription=""
DefaultValue="org.teiid.connector.jdbc.translator.Translator"
IsExpert="true" />
- <PropertyDefinition Name="SetCriteriaBatchSize"
DisplayName="Max Values in IN Predicate" ShortDescription="Max number of
values in an IN Predicate. Must be >= 0." DefaultValue="1000"
PropertyType="Integer" IsConstrainedToAllowedValues="false"
IsExpert="true" />
<PropertyDefinition Name="ConnectionSource"
DisplayName="Connection Source Class" ShortDescription="Driver, DataSource,
or XADataSource class name" Multiplicity="1"
IsConstrainedToAllowedValues="false" IsPreferred="true" />
<PropertyDefinition Name="User" DisplayName="User
Name" ShortDescription="" Multiplicity="0..1"
IsConstrainedToAllowedValues="false" IsPreferred="true" />
<PropertyDefinition Name="TrimStrings" DisplayName="Trim
string flag" ShortDescription="Right Trim fixed character types returned as
Strings" DefaultValue="false" PropertyType="Boolean"
IsExpert="true" />
- <PropertyDefinition Name="IsXA" DisplayName="Is XA"
ShortDescription="Is XA" DefaultValue="false"
Multiplicity="1" PropertyType="Boolean"
IsConstrainedToAllowedValues="true" IsPreferred="true" />
<PropertyDefinition Name="UseCommentsInSourceQuery"
DisplayName="Use informational comments in Source Queries"
ShortDescription="This will embed /*comment*/ style comment with session/request id
in source SQL query for informational purposes" DefaultValue="false"
PropertyType="Boolean" IsPreferred="true"
IsExpert="true"/>
- <PropertyDefinition Name="ResultSetCacheEnabled"
DisplayName="ResultSet Cache Enabled" ShortDescription=""
DefaultValue="false" Multiplicity="0..1"
PropertyType="Boolean" ValueDelimiter=","
IsConstrainedToAllowedValues="true" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false"/>
- <PropertyDefinition Name="ResultSetCacheMaxSize"
DisplayName="ResultSet Cache Maximum Size (megabytes)"
ShortDescription="" DefaultValue="0" Multiplicity="0..1"
PropertyType="Integer" ValueDelimiter=","
IsConstrainedToAllowedValues="true" IsExpert="true"
IsHidden="false" IsMasked="false" IsModifiable="true"
IsPreferred="false" />
</ComponentType>
<ComponentType Name="Oracle Connector"
ComponentTypeCode="2" Deployable="true" Deprecated="false"
Monitorable="false" SuperComponentType="JDBC Connector"
ParentComponentType="Connectors" LastChangedBy="ConfigurationStartup"
CreatedBy="ConfigurationStartup">
<PropertyDefinition Name="ConnectionSource"
DisplayName="Connection Source Class" ShortDescription="Driver, DataSource,
or XADataSource class name" DefaultValue="oracle.jdbc.driver.OracleDriver"
Multiplicity="1" IsConstrainedToAllowedValues="false"
IsPreferred="true" />
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java
===================================================================
---
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java 2009-05-13
00:57:35 UTC (rev 920)
+++
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java 2009-05-13
01:01:18 UTC (rev 921)
@@ -96,7 +96,7 @@
*/
public class ConnectorManager implements ApplicationService {
- public static final int DEFAULT_MAX_PROCESSOR_THREADS = 15;
+ public static final int DEFAULT_MAX_THREADS = 20;
private static final String DEFAULT_MAX_RESULTSET_CACHE_SIZE = "20";
//$NON-NLS-1$
private static final String DEFAULT_MAX_RESULTSET_CACHE_AGE = "3600000";
//$NON-NLS-1$
@@ -308,7 +308,7 @@
throw new
ApplicationLifecycleException(DQPPlugin.Util.getString("Missing_required_property",
new Object[]{ConnectorPropertyNames.CONNECTOR_CLASS, connectorName})); //$NON-NLS-1$
}
- int maxThreads = PropertiesUtils.getIntProperty(props,
ConnectorPropertyNames.MAX_THREADS, DEFAULT_MAX_PROCESSOR_THREADS);
+ int maxThreads = PropertiesUtils.getIntProperty(props,
ConnectorPropertyNames.MAX_CONNECTIONS, DEFAULT_MAX_THREADS);
connectorWorkerPool = WorkerPoolFactory.newWorkerPool(connectorName,
maxThreads);
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/pooling/connector/ConnectionPool.java
===================================================================
---
trunk/engine/src/main/java/org/teiid/dqp/internal/pooling/connector/ConnectionPool.java 2009-05-13
00:57:35 UTC (rev 920)
+++
trunk/engine/src/main/java/org/teiid/dqp/internal/pooling/connector/ConnectionPool.java 2009-05-13
01:01:18 UTC (rev 921)
@@ -42,6 +42,7 @@
import org.teiid.connector.api.ConnectorIdentity;
import org.teiid.connector.api.ExecutionContext;
import org.teiid.connector.api.SingleIdentity;
+import org.teiid.connector.internal.ConnectorPropertyNames;
import org.teiid.connector.xa.api.TransactionContext;
import org.teiid.connector.xa.api.XAConnector;
import org.teiid.dqp.internal.datamgr.impl.ConnectorWrapper;
@@ -60,10 +61,7 @@
*/
public static final String SOURCE_CONNECTION_TEST_INTERVAL =
"SourceConnectionTestInterval"; //$NON-NLS-1$
- /**
- * Maximum connections for this pool. Default to 0, which means there is no limit.
- */
- public static final String MAX_CONNECTIONS =
"com.metamatrix.data.pool.max_connections"; //$NON-NLS-1$
+ public static final String MAX_CONNECTIONS = ConnectorPropertyNames.MAX_CONNECTIONS;
/**
* Maximum connection for each ConnectorIdentity. Default to 0, which means there is
no limit.