org.geotools.coverage.grid.io
Class DefaultHarvestedSource

Object
  extended by DefaultHarvestedSource
All Implemented Interfaces:
HarvestedSource

public class DefaultHarvestedSource
extends Object
implements HarvestedSource

Default implementation of the HarvestedSource interface

Author:
Andrea Aime - GeoSolutions

Constructor Summary
DefaultHarvestedSource(Object source, boolean success, String message)
           
 
Method Summary
 String getMessage()
          In case the file was not ingested, provides a reason why it was skipped
 Object getSource()
          The object that has been processed
 boolean success()
          If true, the file has been ingested and generated new granules in the reader, false otherwise
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHarvestedSource

public DefaultHarvestedSource(Object source,
                              boolean success,
                              String message)
Method Detail

getSource

public Object getSource()
Description copied from interface: HarvestedSource
The object that has been processed

Specified by:
getSource in interface HarvestedSource
Returns:

success

public boolean success()
Description copied from interface: HarvestedSource
If true, the file has been ingested and generated new granules in the reader, false otherwise

Specified by:
success in interface HarvestedSource
Returns:

getMessage

public String getMessage()
Description copied from interface: HarvestedSource
In case the file was not ingested, provides a reason why it was skipped

Specified by:
getMessage in interface HarvestedSource
Returns:


Copyright © 1996-2014 Geotools. All Rights Reserved.