Пример #1
0
 /**
  * Called on publish exception of a single metadata from the repository.
  *
  * @param repository repository
  * @param sourceUri metadata source URI
  * @param metadata metadata full text
  */
 @Override
 public void onPublishException(
     HrRecord repository, SourceUri sourceUri, String metadata, Exception ex) {
   for (Harvester.Listener l : this) {
     l.onPublishException(repository, sourceUri, metadata, ex);
   }
 }
Пример #2
0
 /**
  * Called on publish a single metadata from the repository.
  *
  * @param repository repository
  * @param sourceUri metadata source URI
  * @param uuid metadata UUID
  * @param metadata metadata full text
  */
 @Override
 public void onPublishMetadata(
     HrRecord repository, SourceUri sourceUri, String uuid, String metadata) {
   for (Harvester.Listener l : this) {
     l.onPublishMetadata(repository, sourceUri, uuid, metadata);
   }
 }
Пример #3
0
 /**
  * Called on harvest exception of a single metadata from the repository.
  *
  * @param repository repository
  * @param sourceUri metadata source URI
  */
 @Override
 public void onHarvestException(HrRecord repository, SourceUri sourceUri, Exception ex) {
   for (Harvester.Listener l : this) {
     l.onHarvestException(repository, sourceUri, ex);
   }
 }
Пример #4
0
 /**
  * Called on iteration exception of a single metadata from the repository.
  *
  * @param repository repository
  * @param sourceUri metadata source URI
  */
 @Override
 public void onIterationException(HrRecord repository, Exception ex) {
   for (Harvester.Listener l : this) {
     l.onIterationException(repository, ex);
   }
 }
Пример #5
0
 /**
  * Called on end of harvesting ofthe specific repository.
  *
  * @param repository repository
  */
 @Override
 public void onHarvestEnd(HrRecord repository) {
   for (Harvester.Listener l : this) {
     l.onHarvestEnd(repository);
   }
 }