Package com.attivio.sdk.scanner
Interface DataSourceAPIErrorDescriptorsAware
- 
 public interface DataSourceAPIErrorDescriptorsAwareThe scanner should implement this interface in order to take advantage of the connector sdk framework for data source API error descriptors. To use this framework, the scanner must define the errors in a json file and have it accessible on the classpath. See a detailed example in the sdk samples.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetErrorDescriptorsJsonFileName()voidsetErrorDescriptors(DataSourceAPIErrorDescriptors errorDescriptors)The connector framework creates aDataSourceAPIErrorDescriptorsinstance from the json file it finds on the classpath and pass it to the scanner through this method.
 
- 
- 
- 
Method Detail- 
setErrorDescriptorsvoid setErrorDescriptors(DataSourceAPIErrorDescriptors errorDescriptors) The connector framework creates aDataSourceAPIErrorDescriptorsinstance from the json file it finds on the classpath and pass it to the scanner through this method.- Parameters:
- errorDescriptors-
 
 - 
getErrorDescriptorsJsonFileNamedefault java.lang.String getErrorDescriptorsJsonFileName() - Returns:
- the name of the json file. The file must be on the classpath. If null is returned the
     framework will look for on the classpath for a file called
     _errors.json. For example, if the scanner class is com.attivio.connector.MyScanner, and null is returned from getErrorDescriptorsJsonFileName(), the framework will expect file MyScanner_errors.json to be on the classpath.
 
 
- 
 
-