Package org.nuxeo.ecm.core.scheduler
Class NuxeoQuartzConnectionProvider
- java.lang.Object
-
- org.nuxeo.ecm.core.scheduler.NuxeoQuartzConnectionProvider
-
- All Implemented Interfaces:
org.quartz.utils.ConnectionProvider
public class NuxeoQuartzConnectionProvider extends Object implements org.quartz.utils.ConnectionProvider
Quartz Connection Provider delegating to the Nuxeo datasource framework.- Since:
- 7.1
-
-
Field Summary
Fields Modifier and Type Field Description protected Connection
connection
protected String
dataSourceName
-
Constructor Summary
Constructors Constructor Description NuxeoQuartzConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
getConnection()
void
initialize()
void
setJndiURL(String jndiURL)
Called by reflection from StdSchedulerFactory.setBeanProps.void
shutdown()
-
-
-
Field Detail
-
dataSourceName
protected String dataSourceName
-
connection
protected Connection connection
-
-
Constructor Detail
-
NuxeoQuartzConnectionProvider
public NuxeoQuartzConnectionProvider()
-
-
Method Detail
-
setJndiURL
public void setJndiURL(String jndiURL)
Called by reflection from StdSchedulerFactory.setBeanProps.- Parameters:
jndiURL
- the JNDI URL from the Quartz configuration
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceorg.quartz.utils.ConnectionProvider
- Throws:
SQLException
-
shutdown
public void shutdown() throws SQLException
- Specified by:
shutdown
in interfaceorg.quartz.utils.ConnectionProvider
- Throws:
SQLException
-
initialize
public void initialize() throws SQLException
- Specified by:
initialize
in interfaceorg.quartz.utils.ConnectionProvider
- Throws:
SQLException
- Since:
- 7.10
-
-