Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.openjpa.slice
Interface DistributedBrokerFactory

All Superinterfaces:
  BrokerFactory, Closeable, Serializable

All Known Implementing Classes:
  DistributedJDBCBrokerFactory

    public interface DistributedBrokerFactory

extends BrokerFactory

Extension to BrokerFactory to allow dynamically add/remove slices.

Author:
  Pinaki Poddar

Method Summary
`Slice` | `addSlice(String name, Map properties)` Adds the given slice with the given properties.

Methods inherited from interface org.apache.openjpa.kernel.BrokerFactory
`addLifecycleListener, addTransactionListener, assertOpen, close, getConfiguration, getProperties, getSupportedProperties, getUserObject, isClosed, lock, newBroker, newBroker, newBroker, postCreationCallback, putUserObject, removeLifecycleListener, removeTransactionListener, unlock`

Method Detail

### addSlice

    Slice addSlice(String name,
                   Map properties)

  Adds the given slice with the given properties. This newly added slice will be configured to brokers constructed by this factory after this call.

  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)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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