org.apache.openjpa.slice.jdbc
Class DistributedJDBCBrokerFactory

java.lang.Object
  extended by org.apache.openjpa.kernel.AbstractBrokerFactory
      extended by org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
          extended by org.apache.openjpa.slice.jdbc.DistributedJDBCBrokerFactory
All Implemented Interfaces:
Serializable, BrokerFactory, Closeable

public class DistributedJDBCBrokerFactory
extends JDBCBrokerFactory

A factory for distributed JDBC datastores.

Author:
Pinaki Poddar
See Also:
Serialized Form

Constructor Summary
DistributedJDBCBrokerFactory(DistributedJDBCConfiguration conf)
           
 
Method Summary
 DistributedJDBCConfiguration getConfiguration()
          Return the configuration for this factory.
protected  Object getFactoryInitializationBanner()
          Return an object to be written to the log when this broker factory initializes.
static JDBCBrokerFactory getInstance(ConfigurationProvider cp)
          Factory method for obtaining a possibly-pooled factory from properties.
static JDBCBrokerFactory getInstance(JDBCConfiguration conf)
          Factory method for constructing a factory from a configuration.
static DistributedJDBCBrokerFactory newInstance(ConfigurationProvider cp)
          Factory method for constructing a factory from properties.
protected  StoreManager newStoreManager()
          Return a new StoreManager for this runtime.
 
Methods inherited from class org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
getProperties, newBrokerImpl, synchronizeMappings
 
Methods inherited from class org.apache.openjpa.kernel.AbstractBrokerFactory
addLifecycleListener, addListeners, addTransactionListener, close, configureBroker, findBroker, findTransactionalBroker, getOpenBrokers, getPooledFactoryForKey, getPoolKey, getUserObject, isClosed, loadPersistentTypes, lock, makeReadOnly, newBroker, newBroker, newBroker, newBroker, newBroker, pool, putUserObject, readResolve, releaseBroker, removeLifecycleListener, removeTransactionListener, setup, toPoolKey, unlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedJDBCBrokerFactory

public DistributedJDBCBrokerFactory(DistributedJDBCConfiguration conf)
Method Detail

newInstance

public static DistributedJDBCBrokerFactory newInstance(ConfigurationProvider cp)
Factory method for constructing a factory from properties. Invoked from Bootstrap.newBrokerFactory().


getInstance

public static JDBCBrokerFactory getInstance(ConfigurationProvider cp)
Factory method for obtaining a possibly-pooled factory from properties. Invoked from Bootstrap.getBrokerFactory().


getInstance

public static JDBCBrokerFactory getInstance(JDBCConfiguration conf)
Factory method for constructing a factory from a configuration.


getConfiguration

public DistributedJDBCConfiguration getConfiguration()
Description copied from class: AbstractBrokerFactory
Return the configuration for this factory.

Specified by:
getConfiguration in interface BrokerFactory
Overrides:
getConfiguration in class AbstractBrokerFactory

newStoreManager

protected StoreManager newStoreManager()
Description copied from class: AbstractBrokerFactory
Return a new StoreManager for this runtime. Note that the instance returned here may be wrapped before being passed to the AbstractBrokerFactory.newBroker() method.

Overrides:
newStoreManager in class JDBCBrokerFactory

getFactoryInitializationBanner

protected Object getFactoryInitializationBanner()
Description copied from class: AbstractBrokerFactory
Return an object to be written to the log when this broker factory initializes. This happens after the configuration is fully loaded.

Overrides:
getFactoryInitializationBanner in class AbstractBrokerFactory


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.