incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Fri, 15 Oct 2010 22:14:00 GMT
Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS)
Page: How to Write an Output Connector (https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector)
Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector?focusedCommentId=24183167#comment-24183167

Comment added by Farzad:
---------------------------------------------------------------------

I got an error trying to unregister, I posted that under "How to build and deploy ManifoldCF"
where it talks about issuing commands.

I got around the problem by dropping the table and doing a clean build.  Now the table is
created, however it is empty, no rows.  dataManager.insertData is getting called inside addOrReplaceDocument.

The job status says Documents=9, Active=6, and Processed=9 and the job doesn't end. I am returning
DOCUMENTSTATUS_ACCEPTED.  I start the job manually.

I traced the calls and I see where deinstall and install are called initially.  When I start
the job, for some reason addOrReplaceDocument is called 45 times, and getOutputDescription
is called 48 times.  I only have 9 docs, why so many times?

In reply to a comment by Karl Wright:
I took a quick glance.  In order for your table to get created, you need to implement
the install() and uninstall() methods of the connector.  See the web connector for
an example.  These methods should call your appropriate table manager methods.

BEFORE you do this you want to unregister your output connector using the appropriate "unregisteroutput"
command via shell script.  If you don't then when you start up Manifold you will
get an exception, because it's trying to tear down a table that doesn't yet exist. 
It is at registration time that the install() method will be called.

Karl\\

Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message