public interface IRegistryProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadPolicySupported(RRContext.ReadPolicy policy)
Determines if a read policy is supported by the registry provider
|
boolean |
isWritePolicySupported(RRContext.WritePolicy policy)
Determines if a write policy is supported by the registry provider
|
void |
persist(Set<Class<?>> items,
Set<String> nonUpdateVOScopes)
Stores all data items to the remote repository.
|
void |
persistDirect(Class<?> item)
Implemented by providers whose remote repository is not expressed through a Datastore type and must support
RRContext.WritePolicy.WRITE_THROUGH and RRContext.WritePolicy.WRITE_LOCAL
Stores all data item instances of a specific type residing on the local data store directly to the remote repository. |
void |
persistDirect(Class<?> item,
String id)
Implemented by providers whose remote repository is not expressed through a Datastore type and must support
RRContext.WritePolicy.WRITE_THROUGH and RRContext.WritePolicy.WRITE_LOCAL
Stores a specific data item instance residing on the local data store directly to the remote repository. |
void |
prefetchInMemoryItems()
Prefetches all data items which are marked as in-memory from the local data store and keeps them in an
InMemoryStore |
void |
readConfiguration(Properties config)
Reads provider-specific configuration
|
void |
retrieve(Set<Class<?>> items)
Retrieves all data items from the remote repository.
|
void |
retrieveDirect(Class<?> item)
Implemented by providers whose remote repository is not expressed through a Datastore type and must support
RRContext.ReadPolicy.READ_THROUGH and RRContext.ReadPolicy.READ_LOCAL
Retrieves all data item instances of a specific type from the remote repository and stores it in the local data store. |
void |
retrieveDirect(Class<?> item,
String id)
Implemented by providers whose remote repository is not expressed through a Datastore type and must support
RRContext.ReadPolicy.READ_THROUGH and RRContext.ReadPolicy.READ_LOCAL
Retrieves a specific data item instance from the remote repository and stores it in the local data store. |
void |
setInMemoryTargets(Set<Class<?>> itemTypes)
Used to specify which data item types are to be prefetched in main memory
|
void readConfiguration(Properties config) throws ResourceRegistryException
config - The configuration resourceResourceRegistryExceptionvoid setInMemoryTargets(Set<Class<?>> itemTypes) throws ResourceRegistryException
itemTypes - The set of item types to be kept in main memoryResourceRegistryExceptionboolean isReadPolicySupported(RRContext.ReadPolicy policy) throws ResourceRegistryException
policy - The read policy to be checked for supportResourceRegistryExceptionboolean isWritePolicySupported(RRContext.WritePolicy policy) throws ResourceRegistryException
policy - The write policy to be checked for supportResourceRegistryExceptionvoid prefetchInMemoryItems()
throws ResourceRegistryException
InMemoryStoreResourceRegistryExceptionvoid persist(Set<Class<?>> items, Set<String> nonUpdateVOScopes) throws ResourceRegistryException
RRContext.WritePolicy.WRITE_BEHINDitems - The set of items to be stored in the repositoryResourceRegistryExceptionvoid retrieve(Set<Class<?>> items) throws ResourceRegistryException
RRContext.ReadPolicy.REFRESH_AHEADitems - The set of items to be stored in the repositoryResourceRegistryExceptionvoid persistDirect(Class<?> item, String id) throws ResourceRegistryException
RRContext.WritePolicy.WRITE_THROUGH and RRContext.WritePolicy.WRITE_LOCAL
Stores a specific data item instance residing on the local data store directly to the remote repository.item - The item typeid - The item instance idResourceRegistryExceptionvoid persistDirect(Class<?> item) throws ResourceRegistryException
RRContext.WritePolicy.WRITE_THROUGH and RRContext.WritePolicy.WRITE_LOCAL
Stores all data item instances of a specific type residing on the local data store directly to the remote repository.item - The item typeResourceRegistryExceptionvoid retrieveDirect(Class<?> item, String id) throws ResourceRegistryException
RRContext.ReadPolicy.READ_THROUGH and RRContext.ReadPolicy.READ_LOCAL
Retrieves a specific data item instance from the remote repository and stores it in the local data store.item - The item typeid - The item instance idResourceRegistryExceptionvoid retrieveDirect(Class<?> item) throws ResourceRegistryException
RRContext.ReadPolicy.READ_THROUGH and RRContext.ReadPolicy.READ_LOCAL
Retrieves all data item instances of a specific type from the remote repository and stores it in the local data store.item - The item typeResourceRegistryExceptionCopyright © 2014. All Rights Reserved.