Package org.apache.openjpa.slice.jdbc
Class DistributedJDBCBrokerFactory
java.lang.Object
org.apache.openjpa.kernel.AbstractBrokerFactory
org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
org.apache.openjpa.slice.jdbc.DistributedJDBCBrokerFactory
- All Implemented Interfaces:
Serializable,BrokerFactory,Closeable,DistributedBrokerFactory
public class DistributedJDBCBrokerFactory
extends JDBCBrokerFactory
implements DistributedBrokerFactory
A factory for distributed JDBC datastores.
- Author:
- Pinaki Poddar
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the given slice with the given properties.Return the configuration for this factory.protected ObjectReturn an object to be written to the log when this broker factory initializes.static JDBCBrokerFactoryFactory method for obtaining a possibly-pooled factory from properties.static JDBCBrokerFactoryFactory method for constructing a factory from a configuration.Return a broker with default settings.static DistributedJDBCBrokerFactoryFactory method for constructing a factory from properties.protected org.apache.openjpa.slice.jdbc.DistributedJDBCStoreManagerReturn a new StoreManager for this runtime.protected booleansynchronizeMappings(ClassLoader loader) Methods inherited from class org.apache.openjpa.jdbc.kernel.JDBCBrokerFactory
getInstance, getProperties, newBrokerImpl, postCreationCallback, synchronizeMappingsMethods inherited from class org.apache.openjpa.kernel.AbstractBrokerFactory
addLifecycleListener, addListeners, addTransactionListener, assertOpen, close, configureBroker, createDelegatingStoreManager, findBroker, findTransactionalBroker, getOpenBrokers, getPooledFactoryForKey, getPoolKey, getSupportedProperties, getUserObject, isClosed, loadPersistentTypes, lock, makeReadOnly, newBroker, newBroker, newBroker, newBroker, newBroker, pool, putUserObject, readResolve, releaseBroker, removeLifecycleListener, removeTransactionListener, setup, toPoolKey, unlockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.openjpa.kernel.BrokerFactory
addLifecycleListener, addTransactionListener, assertOpen, close, getProperties, getSupportedProperties, getUserObject, isClosed, lock, newBroker, newBroker, postCreationCallback, putUserObject, removeLifecycleListener, removeTransactionListener, unlock
-
Constructor Details
-
DistributedJDBCBrokerFactory
-
-
Method Details
-
newInstance
Factory method for constructing a factory from properties. Invoked fromBootstrap.newBrokerFactory(). -
getInstance
Factory method for obtaining a possibly-pooled factory from properties. Invoked fromBootstrap.getBrokerFactory(). -
getInstance
Factory method for constructing a factory from a configuration. -
getConfiguration
Description copied from class:AbstractBrokerFactoryReturn the configuration for this factory.- Specified by:
getConfigurationin interfaceBrokerFactory- Overrides:
getConfigurationin classAbstractBrokerFactory
-
addSlice
Description copied from interface:DistributedBrokerFactoryAdds the given slice with the given properties. This newly added slice will be configured to brokers constructed by this factory after this call.- Specified by:
addSlicein interfaceDistributedBrokerFactory- Parameters:
name- logical name of the to be added slice. Must be different from any currently available slices.properties- key-value pair of configuration for the slice to be added. The keys must have openjpa.slice.<name>.* as prefix.- See Also:
-
DistributedConfiguration.getAvailableSliceNames()DistributedConfiguration#addSlice(String, Map)
-
newStoreManager
protected org.apache.openjpa.slice.jdbc.DistributedJDBCStoreManager newStoreManager()Description copied from class:AbstractBrokerFactoryReturn a new StoreManager for this runtime. Note that the instance returned here may be wrapped before being passed to theAbstractBrokerFactory.newBroker()method.- Overrides:
newStoreManagerin classJDBCBrokerFactory
-
newBroker
Description copied from interface:BrokerFactoryReturn a broker with default settings.- Specified by:
newBrokerin interfaceBrokerFactory- Overrides:
newBrokerin classAbstractBrokerFactory
-
synchronizeMappings
- Overrides:
synchronizeMappingsin classJDBCBrokerFactory
-
getFactoryInitializationBanner
Description copied from class:AbstractBrokerFactoryReturn an object to be written to the log when this broker factory initializes. This happens after the configuration is fully loaded.- Overrides:
getFactoryInitializationBannerin classAbstractBrokerFactory
-