gov.nasa.pds.harvest.association
Class AssociationPublisher

java.lang.Object
  extended by gov.nasa.pds.harvest.association.AssociationPublisher

public class AssociationPublisher
extends Object

Class to publish associations to the PDS Registry Service upon successful ingestion of the product.

Author:
mcayanan

Constructor Summary
AssociationPublisher(String registryUrl, RegistryIngester ingester)
          Constructor.
 
Method Summary
 boolean publish(File product, gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
          Publish the association.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationPublisher

public AssociationPublisher(String registryUrl,
                            RegistryIngester ingester)
                     throws MalformedURLException
Constructor.

Parameters:
registryUrl - The URL to the registry service.
ingester - The registry ingester.
Throws:
gov.nasa.pds.registry.exception.RegistryClientException
MalformedURLException
Method Detail

publish

public boolean publish(File product,
                       gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
Publish the association.

Parameters:
product - The file containing the associations.
productMetadata - The metadata associated with the given product.
Returns:
'true' if the associations were registered successfully.


Copyright © 2010–2015 Planetary Data System. All rights reserved.