Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest.engine
Interface DataProcessor

All Known Implementing Classes:
LocalFolderDataProcessor

public interface DataProcessor

Data processor.


Method Summary
 String getName()
          Gets name of the processor.
 void onEnd(ExecutionUnit unit, boolean success)
          Called upon the end of harvesting of the resource.
 void onIterationException(ExecutionUnit unit, Exception ex)
          Called upon iteration exception.
 void onMetadata(ExecutionUnit unit, Publishable record)
          Called uppon harvesting a single metadata.
 void onStart(ExecutionUnit unit)
          Called upon the start of harvesting the resource.
 

Method Detail

getName

String getName()
Gets name of the processor.

Returns:
name

onEnd

void onEnd(ExecutionUnit unit,
           boolean success)
Called upon the end of harvesting of the resource.

Parameters:
unit - execution unit

onIterationException

void onIterationException(ExecutionUnit unit,
                          Exception ex)
Called upon iteration exception.

Parameters:
unit - execution unit
ex - exception

onMetadata

void onMetadata(ExecutionUnit unit,
                Publishable record)
                throws IOException,
                       SQLException,
                       CatalogIndexException,
                       TransformerConfigurationException
Called uppon harvesting a single metadata.

Parameters:
unit - execution unit
record - record to publish
Throws:
IOException - if reading metadata fails
SQLException - if processing metadata fails
CatalogIndexException - if operation on index fails
TransformerConfigurationException - if processing metadata fails

onStart

void onStart(ExecutionUnit unit)
Called upon the start of harvesting the resource.

Parameters:
unit - execution unit

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.