Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest.extensions.localfolder
Class LocalFolderDataProcessor

java.lang.Object
  extended by com.esri.gpt.control.webharvest.extensions.localfolder.LocalFolderDataProcessor
All Implemented Interfaces:
DataProcessor

public class LocalFolderDataProcessor
extends Object
implements DataProcessor

Local folder data processor.


Constructor Summary
LocalFolderDataProcessor(String name, File rootFolder, MessageBroker messageBroker, String baseContextPath, Harvester.Listener listener, Suspender suspender)
          Creates instance of the 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalFolderDataProcessor

public LocalFolderDataProcessor(String name,
                                File rootFolder,
                                MessageBroker messageBroker,
                                String baseContextPath,
                                Harvester.Listener listener,
                                Suspender suspender)
Creates instance of the processor.

Parameters:
name - name of the processor
rootFolder - root folder
messageBroker - message broker
baseContextPath - base context path
listener - listener (optional)
suspender - suspender (optional)
Method Detail

getName

public String getName()
Description copied from interface: DataProcessor
Gets name of the processor.

Specified by:
getName in interface DataProcessor
Returns:
name

onEnd

public void onEnd(ExecutionUnit unit,
                  boolean success)
Description copied from interface: DataProcessor
Called upon the end of harvesting of the resource.

Specified by:
onEnd in interface DataProcessor
Parameters:
unit - execution unit

onIterationException

public void onIterationException(ExecutionUnit unit,
                                 Exception ex)
Description copied from interface: DataProcessor
Called upon iteration exception.

Specified by:
onIterationException in interface DataProcessor
Parameters:
unit - execution unit
ex - exception

onMetadata

public void onMetadata(ExecutionUnit unit,
                       Publishable record)
                throws IOException,
                       SQLException,
                       CatalogIndexException,
                       TransformerConfigurationException
Description copied from interface: DataProcessor
Called uppon harvesting a single metadata.

Specified by:
onMetadata in interface DataProcessor
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

public void onStart(ExecutionUnit unit)
Description copied from interface: DataProcessor
Called upon the start of harvesting the resource.

Specified by:
onStart in interface DataProcessor
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.