gov.nasa.pds.harvest.crawler.actions
Class AssociationPublisherAction
java.lang.Object
gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
gov.nasa.pds.harvest.crawler.actions.AssociationPublisherAction
- All Implemented Interfaces:
- gov.nasa.jpl.oodt.cas.commons.spring.SpringSetIdInjectionType
public class AssociationPublisherAction
- extends gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
Class to publish associations to the PDS Registry Service upon
successful ingestion of the product.
- Author:
- mcayanan
Fields inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
LOG, phases |
Methods inherited from class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction |
getDescription, getId, getPhases, setDescription, setId, setPhases |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssociationPublisherAction
public AssociationPublisherAction(String registryUrl)
throws RegistryClientException
- Constructor.
- Parameters:
registryUrl
- The URL to the registry service.
- Throws:
RegistryClientException
AssociationPublisherAction
public AssociationPublisherAction(String registryUrl,
String user,
String token)
throws RegistryClientException
- Constructor.
- Parameters:
registryUrl
- The URL to the registry service.user
- Name of the user authorized to publish the associations.token
- A security token associated with the user.
- Throws:
RegistryClientException
getAssociationStats
public AssociationStats getAssociationStats()
- Returns:
- the association statistics.
performAction
public boolean performAction(File product,
gov.nasa.jpl.oodt.cas.metadata.Metadata productMetadata)
throws gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
- Publish the association.
- Specified by:
performAction
in class gov.nasa.jpl.oodt.cas.crawl.action.CrawlerAction
- Parameters:
product
- The file containing the associations.productMetadata
- The metadata associated with the given product.
- Returns:
- 'true' if the associations were registered successfully.
- Throws:
gov.nasa.jpl.oodt.cas.crawl.structs.exceptions.CrawlerActionException
- If an error occured while performing
this action.
Copyright © 2010-2011 Planetary Data System. All Rights Reserved.