com.endeca.edf.adapter
Interface Adapter

All Known Implementing Classes:
ExchangePlugin, JdbcAdapter, WebDAVPlugin

public interface Adapter

The Adapter interface provides for extracting records from a data source. Override this interface to extract records from a datasource and emit them to an adapter handler.


Method Summary
 void execute(AdapterConfig config, AdapterHandler handler)
          Uses the configuration given to construct records and emits each record to the adapter handler provided.
 

Method Detail

execute

void execute(AdapterConfig config,
             AdapterHandler handler)
             throws AdapterException
Uses the configuration given to construct records and emits each record to the adapter handler provided.

Parameters:
config - a multimap of name-value pairs, containing adapter configuration
handler - used to "emit" or "return" documents from the Adapter, call emit on this functor to return records
Throws:
AdapterException - if a problem occurs
See Also:
Record


© 2010 Endeca Technologies, Inc.
Endeca Confidential