com.metamatrix.jdbc
Class EmbeddedConnectionFactoryImpl

java.lang.Object
  extended by com.metamatrix.jdbc.EmbeddedConnectionFactoryImpl
All Implemented Interfaces:
EmbeddedConnectionFactory

public class EmbeddedConnectionFactoryImpl
extends java.lang.Object
implements EmbeddedConnectionFactory

A factory class which creates the connections to the embedded DQP instance. This is also responsible for initializing the DQP if the DQP instance is not already alive.


Constructor Summary
EmbeddedConnectionFactoryImpl()
           
 
Method Summary
 java.sql.Connection createConnection(java.util.Properties props)
           
 ApplicationService findService(java.lang.String type)
           
 org.teiid.dqp.internal.process.DQPCore getDQP()
           
 java.util.Properties getProperties()
           
 long getStartTime()
           
 boolean isAlive()
           
 void shutdown()
          A shutdown could happen when somebody calls stop/restart on DQP or in normal course of process, we may have just closed the last connection in both cases we want to handle the situation of graceful/proper shutdown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedConnectionFactoryImpl

public EmbeddedConnectionFactoryImpl()
Method Detail

createConnection

public java.sql.Connection createConnection(java.util.Properties props)
                                     throws java.sql.SQLException
Specified by:
createConnection in interface EmbeddedConnectionFactory
Throws:
java.sql.SQLException
See Also:
com.metamatrix.jdbc.EmbeddedConnectionFactory#createConnection()

isAlive

public boolean isAlive()

getStartTime

public long getStartTime()

getProperties

public java.util.Properties getProperties()

getDQP

public org.teiid.dqp.internal.process.DQPCore getDQP()

findService

public ApplicationService findService(java.lang.String type)

shutdown

public void shutdown()
              throws java.sql.SQLException
A shutdown could happen when somebody calls stop/restart on DQP or in normal course of process, we may have just closed the last connection in both cases we want to handle the situation of graceful/proper shutdown.

Specified by:
shutdown in interface EmbeddedConnectionFactory
Throws:
java.sql.SQLException
See Also:
EmbeddedConnectionFactory.shutdown()


Copyright © 2009. All Rights Reserved.