|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DistributedConfiguration
A configuration for multiple data stores, each referred as slice.
This configuration allows each underlying slice be configured with its
own specific configuration properties such as JDBC Driver or connection
user/password etc.
This configuration also extends by adding a DistributionPolicy
that governs how new instances be distributed
among the slices.
Field Summary |
---|
Fields inherited from interface org.apache.openjpa.lib.conf.Configuration |
---|
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_CATEGORY, ATTRIBUTE_INTERFACE, ATTRIBUTE_ORDER, ATTRIBUTE_TYPE, ATTRIBUTE_XML, INIT_STATE_FREEZING, INIT_STATE_FROZEN, INIT_STATE_LIQUID |
Fields inherited from interface java.beans.BeanInfo |
---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Method Summary | |
---|---|
List<String> |
getActiveSliceNames()
Gets the active slice identifiers. |
List<String> |
getAvailableSliceNames()
Gets the available slice identifiers irrespective of their status. |
String |
getDistributionPolicy()
Gets the policy, as a plugin string, that governs how new instances will be distributed across the available slices. |
DistributionPolicy |
getDistributionPolicyInstance()
Gets the policy that governs how new instances will be distributed across the available slices. |
String |
getFinderTargetPolicy()
Gets the policy, as a plugin string, that governs which slices will be targeted for a given finder. |
FinderTargetPolicy |
getFinderTargetPolicyInstance()
Gets the policy that governs which slices will be targeted for a given finder. |
String |
getQueryTargetPolicy()
Gets the policy, as a plugin string, that governs which slices will be targeted for a given query. |
QueryTargetPolicy |
getQueryTargetPolicyInstance()
Gets the policy that governs which slices will be targeted for a given query. |
String |
getReplicationPolicy()
Gets the policy, as a plugin string, that governs how new replicated instances will be replicated across the available slices. |
ReplicationPolicy |
getReplicationPolicyInstance()
Gets the policy that governs how new replicated instances will be replicated across the available slices. |
Slice |
getSlice(String sliceName)
Gets the Slice for a given name. |
List<Slice> |
getSlices(Slice.Status... statuses)
Gets the slices of given status. |
boolean |
isReplicated(Class<?> type)
Affirms if the given type is replicated. |
void |
setDistributionPolicy(String policy)
Sets the policy, from the given plugin string, that governs how new instances will be distributed across the available slices. |
void |
setDistributionPolicyInstance(DistributionPolicy policy)
Sets the policy that governs how new instances will be distributed across the available slices. |
void |
setFinderTargetPolicy(String policy)
Sets the policy, from the given plugin string, that governs which slices will be targeted for a given finder. |
void |
setFinderTargetPolicyInstance(FinderTargetPolicy policy)
Sets the policy that governs which slices will be targeted for a given finder. |
void |
setQueryTargetPolicy(String policy)
Sets the policy, from the given plugin string, that governs which slices will be targeted for a given query. |
void |
setQueryTargetPolicyInstance(QueryTargetPolicy policy)
Sets the policy that governs which slices will be targeted for a given query. |
void |
setReplicationPolicy(String policy)
Sets the policy, from the given plugin string, that governs how new replicated instances will be replicated across the available slices. |
void |
setReplicationPolicyInstance(ReplicationPolicy policy)
Sets the policy that governs how new replicated instances will be replicated across the available slices. |
Methods inherited from interface org.apache.openjpa.lib.conf.Configuration |
---|
addPropertyChangeListener, addValue, clone, close, fromProperties, getConfigurationLog, getId, getLog, getLog, getLogFactory, getProductName, getPropertyKeys, getPropertyKeys, getValue, getValues, instantiateAll, isReadOnly, removePropertyChangeListener, removeValue, setId, setLog, setLogFactory, setProductName, setReadOnly, toProperties |
Methods inherited from interface java.beans.BeanInfo |
---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getPropertyDescriptors |
Method Detail |
---|
List<String> getActiveSliceNames()
openjpa.slice.Names
property or by scanning
openjpa.slice.*.*
properties.
openjpa.slice.Names
property or
ordered alphabetically when found by scanning the properties.
List<String> getAvailableSliceNames()
List<Slice> getSlices(Slice.Status... statuses)
statuses
- list of status flags. If null, returns all slices
irrespective of status.Slice getSlice(String sliceName)
DistributionPolicy getDistributionPolicyInstance()
void setDistributionPolicyInstance(DistributionPolicy policy)
String getDistributionPolicy()
void setDistributionPolicy(String policy)
ReplicationPolicy getReplicationPolicyInstance()
String getReplicationPolicy()
void setReplicationPolicyInstance(ReplicationPolicy policy)
void setReplicationPolicy(String policy)
boolean isReplicated(Class<?> type)
QueryTargetPolicy getQueryTargetPolicyInstance()
String getQueryTargetPolicy()
void setQueryTargetPolicyInstance(QueryTargetPolicy policy)
void setQueryTargetPolicy(String policy)
FinderTargetPolicy getFinderTargetPolicyInstance()
String getFinderTargetPolicy()
void setFinderTargetPolicyInstance(FinderTargetPolicy policy)
void setFinderTargetPolicy(String policy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |