Interface RelationalRecordSink
- All Known Implementing Classes:
RegTapLoader
public interface RelationalRecordSink
Optional destination (e.g. the RegTAP relational database) for individual harvested resources.
Implementations exist only when the corresponding feature is enabled.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(String resourceXml) Add or replace a single resource.voidaddResource(Node resourceXml) Add or replace a single resource.voiddeleteResource(String identifier) Remove the resource with the given identifier.
-
Method Details
-
addResource
Add or replace a single resource.- Parameters:
resourceXml- anri:Resourcesdocument containing exactly oneri:Resource.- Throws:
Exception- if the resource cannot be stored; the failure affects only this resource.
-
addResource
Add or replace a single resource.- Parameters:
resourceXml- DOM of ari:Resource.- Throws:
Exception- if the resource cannot be stored; the failure affects only this resource.
-
deleteResource
Remove the resource with the given identifier.- Parameters:
identifier- the IVOA identifier.
-