public class DistributedJDBCBrokerFactory extends JDBCBrokerFactory implements DistributedBrokerFactory
Constructor and Description |
---|
DistributedJDBCBrokerFactory(DistributedJDBCConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
Slice |
addSlice(String name,
Map properties)
Adds the given slice with the given properties.
|
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(DistributedJDBCConfiguration conf)
Factory method for constructing a factory from a configuration.
|
DistributedBroker |
newBroker()
Return a broker with default settings.
|
static DistributedJDBCBrokerFactory |
newInstance(ConfigurationProvider cp)
Factory method for constructing a factory from properties.
|
protected org.apache.openjpa.slice.jdbc.DistributedJDBCStoreManager |
newStoreManager()
Return a new StoreManager for this runtime.
|
protected void |
synchronizeMappings(ClassLoader loader) |
getInstance, getProperties, newBrokerImpl, postCreationCallback, synchronizeMappings
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, unlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifecycleListener, addTransactionListener, assertOpen, close, getProperties, getSupportedProperties, getUserObject, isClosed, lock, newBroker, newBroker, postCreationCallback, putUserObject, removeLifecycleListener, removeTransactionListener, unlock
public DistributedJDBCBrokerFactory(DistributedJDBCConfiguration conf)
public static DistributedJDBCBrokerFactory newInstance(ConfigurationProvider cp)
Bootstrap.newBrokerFactory()
.public static JDBCBrokerFactory getInstance(ConfigurationProvider cp)
Bootstrap.getBrokerFactory()
.public static JDBCBrokerFactory getInstance(DistributedJDBCConfiguration conf)
public DistributedJDBCConfiguration getConfiguration()
AbstractBrokerFactory
getConfiguration
in interface BrokerFactory
getConfiguration
in class AbstractBrokerFactory
public Slice addSlice(String name, Map properties)
DistributedBrokerFactory
addSlice
in interface DistributedBrokerFactory
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.DistributedConfiguration.getAvailableSliceNames()
,
DistributedConfiguration#addSlice(String, Map)
protected org.apache.openjpa.slice.jdbc.DistributedJDBCStoreManager newStoreManager()
AbstractBrokerFactory
AbstractBrokerFactory.newBroker()
method.newStoreManager
in class JDBCBrokerFactory
public DistributedBroker newBroker()
BrokerFactory
newBroker
in interface BrokerFactory
newBroker
in class AbstractBrokerFactory
protected void synchronizeMappings(ClassLoader loader)
synchronizeMappings
in class JDBCBrokerFactory
protected Object getFactoryInitializationBanner()
AbstractBrokerFactory
getFactoryInitializationBanner
in class AbstractBrokerFactory
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.