|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.jdbc.EmbeddedConnectionFactoryImpl
public class EmbeddedConnectionFactoryImpl
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)
Create a Connection to the DQP. |
ApplicationService |
findService(java.lang.String type)
|
org.teiid.dqp.internal.process.DQPCore |
getDQP()
|
java.util.Properties |
getProperties()
|
long |
getStartTime()
|
void |
initialize(java.net.URL bootstrapURL,
java.util.Properties props)
When the DQP is restarted using the admin API, it only shuts it down, it gets restarted when the next time connection is made, however this factory may be holding on to a previous transport handler, so we need to check if the DQP is still alive and create a new one if necessary. |
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 |
---|
public EmbeddedConnectionFactoryImpl()
Method Detail |
---|
public java.sql.Connection createConnection(java.util.Properties props) throws java.sql.SQLException
EmbeddedConnectionFactory
createConnection
in interface EmbeddedConnectionFactory
java.sql.SQLException
com.metamatrix.jdbc.EmbeddedConnectionFactory#createConnection()
public void initialize(java.net.URL bootstrapURL, java.util.Properties props) throws java.sql.SQLException
initialize
in interface EmbeddedConnectionFactory
props
-
ApplicationInitializationException
java.sql.SQLException
public boolean isAlive()
public long getStartTime()
public java.util.Properties getProperties()
public org.teiid.dqp.internal.process.DQPCore getDQP()
public ApplicationService findService(java.lang.String type)
public void shutdown() throws java.sql.SQLException
shutdown
in interface EmbeddedConnectionFactory
java.sql.SQLException
EmbeddedConnectionFactory.shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |