| Package | Description |
|---|---|
| gr.uoa.di.madgik.rr | |
| gr.uoa.di.madgik.rr.access | |
| gr.uoa.di.madgik.rr.bridge | |
| gr.uoa.di.madgik.rr.element | |
| gr.uoa.di.madgik.rr.plugins | |
| gr.uoa.di.madgik.rr.utils |
| Modifier and Type | Method and Description |
|---|---|
static RRContext |
ResourceRegistry.getContext() |
javax.jdo.PersistenceManagerFactory |
RRContext.getFactoryForRead(RRContext.DatastoreType persistencyType) |
javax.jdo.PersistenceManagerFactory |
RRContext.getFactoryForWrite(RRContext.DatastoreType persistencyType) |
String |
RRContext.getLocalNodeHostname() |
String |
RRContext.getLocalNodePort() |
javax.jdo.PersistenceManager |
RRContext.getManagerForRead(RRContext.DatastoreType persistencyType) |
javax.jdo.PersistenceManager |
RRContext.getManagerForWrite(RRContext.DatastoreType persistencyType) |
static boolean |
ResourceRegistry.isInitialBridgingComplete() |
static boolean |
ResourceRegistry.isReadPolicySupported(RRContext.ReadPolicy policy) |
static boolean |
ResourceRegistry.isWritePolicySupported(RRContext.WritePolicy policy) |
void |
RRContext.reset() |
static void |
ResourceRegistry.reset() |
void |
RRContext.resetDT(RRContext.DatastoreType datastoretype) |
static void |
ResourceRegistry.retrieveDirect(Class<?> item) |
static void |
ResourceRegistry.retrieveDirect(Class<?> item,
String id) |
static void |
ResourceRegistry.startBridging() |
static void |
ResourceRegistry.storeDirect(Class<?> item) |
static void |
ResourceRegistry.storeDirect(Class<?> item,
String id) |
| Constructor and Description |
|---|
RRContext() |
| Modifier and Type | Method and Description |
|---|---|
static void |
InMemoryStore.setItem(Class<?> type,
IRRElement item) |
static void |
InMemoryStore.setItems(Class<?> type,
Set<? extends IRRElement> items) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
IRegistryProvider.isReadPolicySupported(RRContext.ReadPolicy policy)
Determines if a read policy is supported by the registry provider
|
boolean |
IRegistryProvider.isWritePolicySupported(RRContext.WritePolicy policy)
Determines if a write policy is supported by the registry provider
|
void |
IRegistryProvider.persist(Set<Class<?>> items,
Set<String> nonUpdateVOScopes)
Stores all data items to the remote repository.
|
void |
IRegistryProvider.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 |
IRegistryProvider.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 |
IRegistryProvider.prefetchInMemoryItems()
Prefetches all data items which are marked as in-memory from the local data store and keeps them in an
InMemoryStore |
void |
IRegistryProvider.readConfiguration(Properties config)
Reads provider-specific configuration
|
void |
RegistryBridge.reset() |
void |
IRegistryProvider.retrieve(Set<Class<?>> items)
Retrieves all data items from the remote repository.
|
void |
IRegistryProvider.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 |
IRegistryProvider.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 |
RegistryBridge.setIncoming(Set<String> incoming) |
void |
RegistryBridge.setInMemory(Set<String> inMemory) |
void |
IRegistryProvider.setInMemoryTargets(Set<Class<?>> itemTypes)
Used to specify which data item types are to be prefetched in main memory
|
void |
RegistryBridge.setOutgoing(Set<String> outgoing) |
void |
RegistryBridge.setUpdating(Set<String> updating) |
| Constructor and Description |
|---|
RegistryBridge(IRegistryProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
IDaoElement.apply(IDaoElement other) |
void |
RRElement.delete(boolean deleteDetails) |
void |
IRRElement.delete(boolean loadDetails) |
void |
IRRElement.delete(boolean loadDetails,
RRContext.DatastoreType persistencyType) |
void |
RRElement.delete(boolean deleteDetails,
RRContext.WritePolicy policy) |
void |
IRRElement.delete(boolean deleteDetails,
RRContext.WritePolicy policy) |
boolean |
RRElement.exists()
Checks if an
RRElement exists using the default RRContext.ReadPolicy. |
boolean |
IRRElement.exists()
Checks if an
RRElement exists using the default RRContext.ReadPolicy. |
boolean |
IRRElement.exists(RRContext.DatastoreType persistencyType) |
boolean |
RRElement.exists(RRContext.ReadPolicy policy) |
boolean |
IRRElement.exists(RRContext.ReadPolicy readPolicy) |
void |
IDaoElement.fromXML(Element element) |
String |
IDaoElement.getID() |
Long |
IDaoElement.getTimestamp() |
boolean |
IRRElement.isEqual(IRRElement f,
boolean includeDetails) |
boolean |
RRElement.load(boolean loadDetails)
Loads an
IRRElement using the default RRContext.ReadPolicy. |
boolean |
IRRElement.load(boolean loadDetails)
Loads an
IRRElement using the default RRContext.ReadPolicy. |
boolean |
IRRElement.load(boolean loadDetails,
RRContext.DatastoreType persistencyType)
Loads an
IRRElement from a specific RRContext.DatastoreType |
boolean |
RRElement.load(boolean loadDetails,
RRContext.ReadPolicy policy)
Loads an
IRRElement using a specific RRContext.ReadPolicy |
boolean |
IRRElement.load(boolean loadDetails,
RRContext.ReadPolicy policy)
Loads an
IRRElement using a specific RRContext.ReadPolicy |
void |
RRElement.store(boolean storeDetails)
Stores an
IRRElement using the default RRContext.WritePolicy. |
void |
IRRElement.store(boolean storeDetails)
Stores an
IRRElement using the default RRContext.WritePolicy. |
void |
IRRElement.store(boolean storeDetails,
RRContext.DatastoreType persistencyType) |
void |
RRElement.store(boolean storeDetails,
RRContext.WritePolicy policy) |
void |
IRRElement.store(boolean storeDetails,
RRContext.WritePolicy policy) |
String |
IDaoElement.toXML() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
Plugin.execute(Set<Class<?>> targets) |
void |
Plugin.executePlugin(Set<Class<?>> targets) |
static void |
PluginManager.executePluginsOfType(Plugin.Type type,
Set<Class<?>> targets) |
void |
Plugin.readConfiguration(String prefix,
Properties properties) |
abstract void |
Plugin.setup() |
| Modifier and Type | Method and Description |
|---|---|
static void |
DatastoreHelper.bufferItems(Set<IDaoElement> items) |
static void |
DatastoreHelper.clear(RRContext.DatastoreType target,
Set<Class<?>> objects) |
static void |
DatastoreHelper.persistItems(Set<IDaoElement> items) |
static void |
DatastoreHelper.replicate(RRContext.DatastoreType source,
RRContext.DatastoreType target,
Set<Class<?>> objects) |
static void |
DatastoreHelper.resolveUpdateConflicts(RRContext.DatastoreType source,
RRContext.DatastoreType target,
Set<Class<?>> objects)
Resolves conflicts originating from items being updated in the local datastore during the time an incoming bridging iteration is ongoing
The conflict is resolved by keeping the version in the local datastore so as to avoid having stale data in the local store and missing write-behind updates
|
static Set<IDaoElement> |
DatastoreHelper.retrieveAll(RRContext.DatastoreType target,
Class<?> object) |
Copyright © 2014. All Rights Reserved.