Interface SharedDataStore
- All Known Subinterfaces:
- BlobTrackingStore
- All Known Implementing Classes:
- AbstractSharedCachingDataStore,- AzureDataStore,- CachingFileDataStore,- DataStoreBlobStore,- DummyDataStore,- OakFileDataStore,- S3DataStore
public interface SharedDataStore
Interface to be implemented by a shared data store.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumExplicitly identifies the type of the data store
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddMetadataRecord(File f, String name) Adds the root record.voidaddMetadataRecord(InputStream stream, String name) Adds the root record.voiddeleteAllMetadataRecords(String prefix) Deletes all records matching the given prefix.booleandeleteMetadataRecord(String name) Deletes the root record represented by the given parameters.getAllMetadataRecords(String prefix) Gets the all root records.Retrieved an iterator over all DataRecords.getMetadataRecord(String name) Retrieves the metadata record with the given nameRetrieves the record for the given identifierdefault @Nullable StringReturns the repository id (identifier for the repository in the DataStore)getType()Gets the type.booleanmetadataRecordExists(String name) Checks if the metadata record with the name existsdefault voidsetRepositoryId(String repositoryId) Sets the repository id to identify repository in the DataStore
- 
Method Details- 
addMetadataRecordAdds the root record.- Parameters:
- stream- the stream
- name- the name of the root record
- Throws:
- DataStoreException- the data store exception
 
- 
addMetadataRecordAdds the root record.- Parameters:
- f- the file
- name- the name of the root record
- Throws:
- DataStoreException- the data store exception
 
- 
getMetadataRecordRetrieves the metadata record with the given name- Parameters:
- name- the name of the record
- Returns:
 
- 
metadataRecordExistsChecks if the metadata record with the name exists- Parameters:
- name-
- Returns:
 
- 
getAllMetadataRecordsGets the all root records.- Returns:
- the all root records
 
- 
deleteMetadataRecordDeletes the root record represented by the given parameters.- Parameters:
- name- the name of the root record
- Returns:
- success/failure
 
- 
deleteAllMetadataRecordsDeletes all records matching the given prefix.- Parameters:
- prefix- metadata type identifier
 
- 
getAllRecordsRetrieved an iterator over all DataRecords.- Returns:
- iterator over DataRecords
- Throws:
- DataStoreException
 
- 
getRecordForIdRetrieves the record for the given identifier- Parameters:
- id- the if of the record
- Returns:
- data record
- Throws:
- DataStoreException
 
- 
getTypeSharedDataStore.Type getType()Gets the type.- Returns:
- the type
 
- 
getRepositoryIdReturns the repository id (identifier for the repository in the DataStore)- Returns:
- repository id
 
- 
setRepositoryIdSets the repository id to identify repository in the DataStore- Parameters:
- repositoryId-
- Throws:
- DataStoreException
 
 
-