Esri Geoportal Server
1.2.0

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


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,
                       TransformerException,
                       SAXException
Called uppon harvesting a single metadata.

Parameters:
unit - execution unit
record - record to publish
Throws:
IOException - if reading metadata fails
SAXException - if processing metadata fails
TransformerException - 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.0

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