|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The generic [T]ype of the resource.public interface IResourceLocator<T extends ILocatableResource>
An object that knows how to resolve a resource identifier (aka namespace) to
an ILocatableResource instance. "Locating" a relation means (a)
resolving the namespace for the resource to the resource declaration as of
some timestamp; and (b) materializing (often from cache) an
ILocatableResource for that resource. Locatable resources are
essentially containers for indices, including an IRelation and an
IDatabase, which is essentially a container for IRelations.
Note: a locator does not proxy for a resource. Either the resource is locally
accessible, including the case of a resource distributed across a federation,
or it is not since the resource is accessible using the
IBigdataFederation's API. However, you CAN NOT "locate" a
local resource on another JVM or machine using this interface.
| Method Summary | |
|---|---|
void |
discard(ILocatableResource<T> instance)
Resources that hold hard references to local index objects MUST be discarded during abort processing. |
T |
locate(String namespace,
long timestamp)
Locate. |
| Method Detail |
|---|
T locate(String namespace,
long timestamp)
namespace - The resource namespace.timestamp - The timestamp for the view.
null if the resource declaration could not be
resolved.void discard(ILocatableResource<T> instance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||