|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRegistryProvider
| Method Summary | |
|---|---|
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)
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 |
| Method Detail |
|---|
void readConfiguration(Properties config)
throws ResourceRegistryException
config - The configuration resource
ResourceRegistryException
void setInMemoryTargets(Set<Class<?>> itemTypes)
throws ResourceRegistryException
itemTypes - The set of item types to be kept in main memory
ResourceRegistryException
boolean isReadPolicySupported(RRContext.ReadPolicy policy)
throws ResourceRegistryException
policy - The read policy to be checked for support
ResourceRegistryException
boolean isWritePolicySupported(RRContext.WritePolicy policy)
throws ResourceRegistryException
policy - The write policy to be checked for support
ResourceRegistryException
void prefetchInMemoryItems()
throws ResourceRegistryException
InMemoryStore
ResourceRegistryException
void persist(Set<Class<?>> items)
throws ResourceRegistryException
RRContext.WritePolicy.WRITE_BEHIND
items - The set of items to be stored in the repository
ResourceRegistryException
void retrieve(Set<Class<?>> items)
throws ResourceRegistryException
RRContext.ReadPolicy.REFRESH_AHEAD
items - The set of items to be stored in the repository
ResourceRegistryException
void 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 id
ResourceRegistryException
void 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 type
ResourceRegistryException
void 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 id
ResourceRegistryException
void 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 type
ResourceRegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||