Compoze Software, Inc.

com.compoze.trigger
Class JdbcTriggerServerEvents


java.lang.Object

  |

  +--com.compoze.trigger.AbstractDatabaseTriggerServerEvents

        |

        +--com.compoze.trigger.JdbcTriggerServerEvents

All Implemented Interfaces:
ITriggerPropertiesKeys, ITriggerServerEvents

public class JdbcTriggerServerEvents
extends AbstractDatabaseTriggerServerEvents
implements ITriggerPropertiesKeys

This class is used to retrieve startup events from a Jdbc connection. The properties for creating the Jdbc connection are stored in trigger.properties starting with trigger.startup.jdbc.

Property Description
trigger.startup.jdbc.driver the connection driver
trigger.startup.jdbc.password the connection password
trigger.startup.jdbc.username the connection username
trigger.startup.jdbc.pool-size the connection pool size (0 for no pooling)
trigger.startup.jdbc.url the connection url


Fields inherited from interface com.compoze.trigger.ITriggerPropertiesKeys
TRIGGER_BACKLOG_KEY, TRIGGER_BINDADDRESS_KEY, TRIGGER_DISCOVERY_GROUP_KEY, TRIGGER_DISCOVERY_MAGIC_KEY, TRIGGER_DISCOVERY_PORT_KEY, TRIGGER_DISCOVERY_SERVER_KEY, TRIGGER_DISCOVERY_TIMEOUT_KEY, TRIGGER_DISCOVERY_TTL_KEY, TRIGGER_EVENTLIST_KEY, TRIGGER_PORT_KEY, TRIGGER_STARTUP_DATASOURCE_NAME, TRIGGER_STARTUP_JDBC_DRIVER, TRIGGER_STARTUP_JDBC_PASSWORD, TRIGGER_STARTUP_JDBC_POOL_SIZE, TRIGGER_STARTUP_JDBC_URL, TRIGGER_STARTUP_JDBC_USERNAME, TRIGGER_STARTUP_KEY, TRIGGER_TIMEOUT_IMPLEMENTOR, TRIGGER_TIMEOUT_INITIAL, TRIGGER_TIMEOUT_NAGLEFACTOR, TRIGGER_TIMEOUT_RETRIES
 
Constructor Summary
JdbcTriggerServerEvents()
          Constructor.
 
Method Summary
 java.sql.Connection getConnection()
          Gets the database connection.
protected  void release(java.sql.Connection conn)
          Releases the connection.
 
Methods inherited from class com.compoze.trigger.AbstractDatabaseTriggerServerEvents
serverStart, serverStop, triggerRemoved, triggerScheduled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcTriggerServerEvents


public JdbcTriggerServerEvents()
Constructor.
Method Detail

getConnection


public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Description copied from class: AbstractDatabaseTriggerServerEvents
Gets the database connection.
Overrides:
getConnection in class AbstractDatabaseTriggerServerEvents
Following copied from class: com.compoze.trigger.AbstractDatabaseTriggerServerEvents
Returns:
the database connection

release


protected void release(java.sql.Connection conn)
                throws java.sql.SQLException
Description copied from class: AbstractDatabaseTriggerServerEvents
Releases the connection.
Overrides:
release in class AbstractDatabaseTriggerServerEvents
Following copied from class: com.compoze.trigger.AbstractDatabaseTriggerServerEvents
Parameters:
conn - the connection to release

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.